From c67a0382ce40e98ad6945e33735cafb145016705 Mon Sep 17 00:00:00 2001 From: Anika Maskara Date: Mon, 19 Aug 2024 08:52:49 -0400 Subject: [PATCH 01/11] enable additionalProperties and check when false --- .generator/src/generator/formatter.py | 3 ++ .../src/generator/templates/model_generic.j2 | 11 +++---- .../models/add_signal_to_incident_request.rb | 29 +++++++++++++++++-- .../models/alert_graph_widget_definition.rb | 29 +++++++++++++++++-- .../models/alert_value_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/api_error_response.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/api_key.rb | 29 +++++++++++++++++-- .../v1/models/api_key_list_response.rb | 29 +++++++++++++++++-- .../v1/models/api_key_response.rb | 29 +++++++++++++++++-- .../v1/models/apm_stats_query_column_type.rb | 29 +++++++++++++++++-- .../v1/models/apm_stats_query_definition.rb | 29 +++++++++++++++++-- .../v1/models/application_key.rb | 29 +++++++++++++++++-- .../models/application_key_list_response.rb | 29 +++++++++++++++++-- .../v1/models/application_key_response.rb | 29 +++++++++++++++++-- .../authentication_validation_response.rb | 29 +++++++++++++++++-- .../v1/models/aws_account.rb | 29 +++++++++++++++++-- .../models/aws_account_and_lambda_request.rb | 29 +++++++++++++++++-- .../v1/models/aws_account_create_response.rb | 29 +++++++++++++++++-- .../v1/models/aws_account_delete_request.rb | 29 +++++++++++++++++-- .../v1/models/aws_account_list_response.rb | 29 +++++++++++++++++-- .../aws_event_bridge_account_configuration.rb | 29 +++++++++++++++++-- .../models/aws_event_bridge_create_request.rb | 29 +++++++++++++++++-- .../aws_event_bridge_create_response.rb | 29 +++++++++++++++++-- .../models/aws_event_bridge_delete_request.rb | 29 +++++++++++++++++-- .../aws_event_bridge_delete_response.rb | 29 +++++++++++++++++-- .../models/aws_event_bridge_list_response.rb | 29 +++++++++++++++++-- .../v1/models/aws_event_bridge_source.rb | 29 +++++++++++++++++-- .../v1/models/aws_logs_async_error.rb | 29 +++++++++++++++++-- .../v1/models/aws_logs_async_response.rb | 29 +++++++++++++++++-- .../v1/models/aws_logs_lambda.rb | 29 +++++++++++++++++-- .../v1/models/aws_logs_list_response.rb | 29 +++++++++++++++++-- .../models/aws_logs_list_services_response.rb | 29 +++++++++++++++++-- .../v1/models/aws_logs_services_request.rb | 29 +++++++++++++++++-- .../v1/models/aws_tag_filter.rb | 29 +++++++++++++++++-- .../models/aws_tag_filter_create_request.rb | 29 +++++++++++++++++-- .../models/aws_tag_filter_delete_request.rb | 29 +++++++++++++++++-- .../v1/models/aws_tag_filter_list_response.rb | 29 +++++++++++++++++-- .../v1/models/azure_account.rb | 29 +++++++++++++++++-- .../v1/models/azure_account_metrics_config.rb | 29 +++++++++++++++++-- .../cancel_downtimes_by_scope_request.rb | 29 +++++++++++++++++-- .../v1/models/canceled_downtimes_ids.rb | 29 +++++++++++++++++-- .../v1/models/change_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/change_widget_request.rb | 29 +++++++++++++++++-- .../check_can_delete_monitor_response.rb | 29 +++++++++++++++++-- .../check_can_delete_monitor_response_data.rb | 29 +++++++++++++++++-- .../models/check_can_delete_slo_response.rb | 29 +++++++++++++++++-- .../check_can_delete_slo_response_data.rb | 29 +++++++++++++++++-- .../models/check_status_widget_definition.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/creator.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/dashboard.rb | 29 +++++++++++++++++-- .../v1/models/dashboard_bulk_action_data.rb | 29 +++++++++++++++++-- .../models/dashboard_bulk_delete_request.rb | 29 +++++++++++++++++-- .../v1/models/dashboard_delete_response.rb | 29 +++++++++++++++++-- .../v1/models/dashboard_global_time.rb | 29 +++++++++++++++++-- .../v1/models/dashboard_list.rb | 29 +++++++++++++++++-- .../models/dashboard_list_delete_response.rb | 29 +++++++++++++++++-- .../v1/models/dashboard_list_list_response.rb | 29 +++++++++++++++++-- .../v1/models/dashboard_restore_request.rb | 29 +++++++++++++++++-- .../v1/models/dashboard_summary.rb | 29 +++++++++++++++++-- .../v1/models/dashboard_summary_definition.rb | 29 +++++++++++++++++-- .../v1/models/dashboard_template_variable.rb | 29 +++++++++++++++++-- .../dashboard_template_variable_preset.rb | 29 +++++++++++++++++-- ...ashboard_template_variable_preset_value.rb | 29 +++++++++++++++++-- .../delete_shared_dashboard_response.rb | 29 +++++++++++++++++-- .../v1/models/deleted_monitor.rb | 29 +++++++++++++++++-- .../v1/models/distribution_points_payload.rb | 29 +++++++++++++++++-- .../v1/models/distribution_points_series.rb | 29 +++++++++++++++++-- .../models/distribution_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/distribution_widget_request.rb | 29 +++++++++++++++++-- .../v1/models/distribution_widget_x_axis.rb | 29 +++++++++++++++++-- .../v1/models/distribution_widget_y_axis.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/downtime.rb | 29 +++++++++++++++++-- .../v1/models/downtime_child.rb | 29 +++++++++++++++++-- .../v1/models/downtime_recurrence.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/event.rb | 29 +++++++++++++++++-- .../v1/models/event_create_request.rb | 29 +++++++++++++++++-- .../v1/models/event_create_response.rb | 29 +++++++++++++++++-- .../v1/models/event_list_response.rb | 29 +++++++++++++++++-- .../v1/models/event_query_definition.rb | 29 +++++++++++++++++-- .../v1/models/event_response.rb | 29 +++++++++++++++++-- .../models/event_stream_widget_definition.rb | 29 +++++++++++++++++-- .../event_timeline_widget_definition.rb | 29 +++++++++++++++++-- ...n_apm_dependency_stats_query_definition.rb | 29 +++++++++++++++++-- ...ion_apm_resource_stats_query_definition.rb | 29 +++++++++++++++++-- ...nd_function_cloud_cost_query_definition.rb | 29 +++++++++++++++++-- ...ula_and_function_event_query_definition.rb | 29 +++++++++++++++++-- ...function_event_query_definition_compute.rb | 29 +++++++++++++++++-- ..._function_event_query_definition_search.rb | 29 +++++++++++++++++-- ...rmula_and_function_event_query_group_by.rb | 29 +++++++++++++++++-- ..._and_function_event_query_group_by_sort.rb | 29 +++++++++++++++++-- ...la_and_function_metric_query_definition.rb | 29 +++++++++++++++++-- ...a_and_function_process_query_definition.rb | 29 +++++++++++++++++-- ...rmula_and_function_slo_query_definition.rb | 29 +++++++++++++++++-- .../v1/models/free_text_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/funnel_query.rb | 29 +++++++++++++++++-- .../v1/models/funnel_step.rb | 29 +++++++++++++++++-- .../v1/models/funnel_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/funnel_widget_request.rb | 29 +++++++++++++++++-- .../v1/models/gcp_account.rb | 29 +++++++++++++++++-- .../v1/models/geomap_widget_definition.rb | 29 +++++++++++++++++-- .../models/geomap_widget_definition_style.rb | 29 +++++++++++++++++-- .../models/geomap_widget_definition_view.rb | 29 +++++++++++++++++-- .../v1/models/geomap_widget_request.rb | 29 +++++++++++++++++-- .../v1/models/graph_snapshot.rb | 29 +++++++++++++++++-- .../v1/models/group_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/heat_map_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/heat_map_widget_request.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/host.rb | 29 +++++++++++++++++-- .../v1/models/host_list_response.rb | 29 +++++++++++++++++-- .../v1/models/host_map_request.rb | 29 +++++++++++++++++-- .../v1/models/host_map_widget_definition.rb | 29 +++++++++++++++++-- .../host_map_widget_definition_requests.rb | 29 +++++++++++++++++-- .../host_map_widget_definition_style.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/host_meta.rb | 29 +++++++++++++++++-- .../v1/models/host_meta_install_method.rb | 29 +++++++++++++++++-- .../v1/models/host_metrics.rb | 29 +++++++++++++++++-- .../v1/models/host_mute_response.rb | 29 +++++++++++++++++-- .../v1/models/host_mute_settings.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/host_tags.rb | 29 +++++++++++++++++-- .../v1/models/host_totals.rb | 29 +++++++++++++++++-- .../models/hourly_usage_attribution_body.rb | 29 +++++++++++++++++-- .../hourly_usage_attribution_metadata.rb | 29 +++++++++++++++++-- .../hourly_usage_attribution_pagination.rb | 29 +++++++++++++++++-- .../hourly_usage_attribution_response.rb | 29 +++++++++++++++++-- .../v1/models/http_log_error.rb | 29 +++++++++++++++++-- .../v1/models/i_frame_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/idp_form_data.rb | 29 +++++++++++++++++-- .../v1/models/idp_response.rb | 29 +++++++++++++++++-- .../v1/models/image_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/intake_payload_accepted.rb | 29 +++++++++++++++++-- .../v1/models/ip_prefixes_agents.rb | 29 +++++++++++++++++-- .../v1/models/ip_prefixes_api.rb | 29 +++++++++++++++++-- .../v1/models/ip_prefixes_apm.rb | 29 +++++++++++++++++-- .../v1/models/ip_prefixes_global.rb | 29 +++++++++++++++++-- .../v1/models/ip_prefixes_logs.rb | 29 +++++++++++++++++-- .../v1/models/ip_prefixes_orchestrator.rb | 29 +++++++++++++++++-- .../v1/models/ip_prefixes_process.rb | 29 +++++++++++++++++-- .../ip_prefixes_remote_configuration.rb | 29 +++++++++++++++++-- .../v1/models/ip_prefixes_synthetics.rb | 29 +++++++++++++++++-- ...p_prefixes_synthetics_private_locations.rb | 29 +++++++++++++++++-- .../v1/models/ip_prefixes_webhooks.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/ip_ranges.rb | 29 +++++++++++++++++-- .../v1/models/list_stream_column.rb | 29 +++++++++++++++++-- .../v1/models/list_stream_compute_items.rb | 29 +++++++++++++++++-- .../v1/models/list_stream_group_by_items.rb | 29 +++++++++++++++++-- .../v1/models/list_stream_query.rb | 29 +++++++++++++++++-- .../models/list_stream_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/list_stream_widget_request.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/log.rb | 29 +++++++++++++++++-- .../v1/models/log_content.rb | 29 +++++++++++++++++-- .../v1/models/log_query_definition.rb | 29 +++++++++++++++++-- .../models/log_query_definition_group_by.rb | 29 +++++++++++++++++-- .../log_query_definition_group_by_sort.rb | 29 +++++++++++++++++-- .../v1/models/log_query_definition_search.rb | 29 +++++++++++++++++-- .../v1/models/log_stream_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/logs_api_error.rb | 29 +++++++++++++++++-- .../v1/models/logs_api_error_response.rb | 29 +++++++++++++++++-- .../v1/models/logs_arithmetic_processor.rb | 29 +++++++++++++++++-- .../v1/models/logs_attribute_remapper.rb | 29 +++++++++++++++++-- .../v1/models/logs_by_retention.rb | 29 +++++++++++++++++-- .../models/logs_by_retention_monthly_usage.rb | 29 +++++++++++++++++-- .../v1/models/logs_by_retention_org_usage.rb | 29 +++++++++++++++++-- .../v1/models/logs_by_retention_orgs.rb | 29 +++++++++++++++++-- .../v1/models/logs_category_processor.rb | 29 +++++++++++++++++-- .../logs_category_processor_category.rb | 29 +++++++++++++++++-- .../v1/models/logs_daily_limit_reset.rb | 29 +++++++++++++++++-- .../v1/models/logs_date_remapper.rb | 29 +++++++++++++++++-- .../v1/models/logs_exclusion.rb | 29 +++++++++++++++++-- .../v1/models/logs_exclusion_filter.rb | 29 +++++++++++++++++-- .../v1/models/logs_filter.rb | 29 +++++++++++++++++-- .../v1/models/logs_geo_ip_parser.rb | 29 +++++++++++++++++-- .../v1/models/logs_grok_parser.rb | 29 +++++++++++++++++-- .../v1/models/logs_grok_parser_rules.rb | 29 +++++++++++++++++-- .../v1/models/logs_index.rb | 29 +++++++++++++++++-- .../v1/models/logs_index_list_response.rb | 29 +++++++++++++++++-- .../v1/models/logs_index_update_request.rb | 29 +++++++++++++++++-- .../v1/models/logs_indexes_order.rb | 29 +++++++++++++++++-- .../v1/models/logs_list_request.rb | 29 +++++++++++++++++-- .../v1/models/logs_list_request_time.rb | 29 +++++++++++++++++-- .../v1/models/logs_list_response.rb | 29 +++++++++++++++++-- .../v1/models/logs_lookup_processor.rb | 29 +++++++++++++++++-- .../v1/models/logs_message_remapper.rb | 29 +++++++++++++++++-- .../v1/models/logs_pipeline.rb | 29 +++++++++++++++++-- .../v1/models/logs_pipeline_processor.rb | 29 +++++++++++++++++-- .../v1/models/logs_pipelines_order.rb | 29 +++++++++++++++++-- .../v1/models/logs_query_compute.rb | 29 +++++++++++++++++-- .../v1/models/logs_retention_agg_sum_usage.rb | 29 +++++++++++++++++-- .../v1/models/logs_retention_sum_usage.rb | 29 +++++++++++++++++-- .../v1/models/logs_service_remapper.rb | 29 +++++++++++++++++-- .../v1/models/logs_status_remapper.rb | 29 +++++++++++++++++-- .../models/logs_string_builder_processor.rb | 29 +++++++++++++++++-- .../v1/models/logs_trace_remapper.rb | 29 +++++++++++++++++-- .../v1/models/logs_url_parser.rb | 29 +++++++++++++++++-- .../v1/models/logs_user_agent_parser.rb | 29 +++++++++++++++++-- .../v1/models/matching_downtime.rb | 29 +++++++++++++++++-- .../v1/models/metric_metadata.rb | 29 +++++++++++++++++-- .../v1/models/metric_search_response.rb | 29 +++++++++++++++++-- .../models/metric_search_response_results.rb | 29 +++++++++++++++++-- .../v1/models/metrics_list_response.rb | 29 +++++++++++++++++-- .../v1/models/metrics_payload.rb | 29 +++++++++++++++++-- .../v1/models/metrics_query_metadata.rb | 29 +++++++++++++++++-- .../v1/models/metrics_query_response.rb | 29 +++++++++++++++++-- .../v1/models/metrics_query_unit.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/monitor.rb | 29 +++++++++++++++++-- ...ula_and_function_event_query_definition.rb | 29 +++++++++++++++++-- ...function_event_query_definition_compute.rb | 29 +++++++++++++++++-- ..._function_event_query_definition_search.rb | 29 +++++++++++++++++-- ...rmula_and_function_event_query_group_by.rb | 29 +++++++++++++++++-- ..._and_function_event_query_group_by_sort.rb | 29 +++++++++++++++++-- .../models/monitor_group_search_response.rb | 29 +++++++++++++++++-- .../monitor_group_search_response_counts.rb | 29 +++++++++++++++++-- .../v1/models/monitor_group_search_result.rb | 29 +++++++++++++++++-- .../v1/models/monitor_options.rb | 29 +++++++++++++++++-- .../v1/models/monitor_options_aggregation.rb | 29 +++++++++++++++++-- .../models/monitor_options_custom_schedule.rb | 29 +++++++++++++++++-- ...itor_options_custom_schedule_recurrence.rb | 29 +++++++++++++++++-- .../monitor_options_scheduling_options.rb | 29 +++++++++++++++++-- ...ns_scheduling_options_evaluation_window.rb | 29 +++++++++++++++++-- .../v1/models/monitor_search_count_item.rb | 29 +++++++++++++++++-- .../v1/models/monitor_search_response.rb | 29 +++++++++++++++++-- .../models/monitor_search_response_counts.rb | 29 +++++++++++++++++-- .../monitor_search_response_metadata.rb | 29 +++++++++++++++++-- .../v1/models/monitor_search_result.rb | 29 +++++++++++++++++-- .../monitor_search_result_notification.rb | 29 +++++++++++++++++-- .../v1/models/monitor_state.rb | 29 +++++++++++++++++-- .../v1/models/monitor_state_group.rb | 29 +++++++++++++++++-- .../monitor_summary_widget_definition.rb | 29 +++++++++++++++++-- .../monitor_threshold_window_options.rb | 29 +++++++++++++++++-- .../v1/models/monitor_thresholds.rb | 29 +++++++++++++++++-- .../v1/models/monitor_update_request.rb | 29 +++++++++++++++++-- .../models/monthly_usage_attribution_body.rb | 29 +++++++++++++++++-- .../monthly_usage_attribution_metadata.rb | 29 +++++++++++++++++-- .../monthly_usage_attribution_pagination.rb | 29 +++++++++++++++++-- .../monthly_usage_attribution_response.rb | 29 +++++++++++++++++-- .../monthly_usage_attribution_values.rb | 29 +++++++++++++++++-- .../v1/models/note_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/notebook_absolute_time.rb | 29 +++++++++++++++++-- .../v1/models/notebook_author.rb | 29 +++++++++++++++++-- .../v1/models/notebook_cell_response.rb | 29 +++++++++++++++++-- .../v1/models/notebook_cell_update_request.rb | 29 +++++++++++++++++-- .../v1/models/notebook_create_data.rb | 29 +++++++++++++++++-- .../models/notebook_create_data_attributes.rb | 29 +++++++++++++++++-- .../v1/models/notebook_create_request.rb | 29 +++++++++++++++++-- .../notebook_distribution_cell_attributes.rb | 29 +++++++++++++++++-- .../notebook_heat_map_cell_attributes.rb | 29 +++++++++++++++++-- .../notebook_log_stream_cell_attributes.rb | 29 +++++++++++++++++-- .../notebook_markdown_cell_attributes.rb | 29 +++++++++++++++++-- .../notebook_markdown_cell_definition.rb | 29 +++++++++++++++++-- .../v1/models/notebook_metadata.rb | 29 +++++++++++++++++-- .../v1/models/notebook_relative_time.rb | 29 +++++++++++++++++-- .../v1/models/notebook_response.rb | 29 +++++++++++++++++-- .../v1/models/notebook_response_data.rb | 29 +++++++++++++++++-- .../notebook_response_data_attributes.rb | 29 +++++++++++++++++-- .../v1/models/notebook_split_by.rb | 29 +++++++++++++++++-- .../notebook_timeseries_cell_attributes.rb | 29 +++++++++++++++++-- .../notebook_toplist_cell_attributes.rb | 29 +++++++++++++++++-- .../v1/models/notebook_update_data.rb | 29 +++++++++++++++++-- .../models/notebook_update_data_attributes.rb | 29 +++++++++++++++++-- .../v1/models/notebook_update_request.rb | 29 +++++++++++++++++-- .../v1/models/notebooks_response.rb | 29 +++++++++++++++++-- .../v1/models/notebooks_response_data.rb | 29 +++++++++++++++++-- .../notebooks_response_data_attributes.rb | 29 +++++++++++++++++-- .../v1/models/notebooks_response_meta.rb | 29 +++++++++++++++++-- .../v1/models/notebooks_response_page.rb | 29 +++++++++++++++++-- .../v1/models/org_downgraded_response.rb | 29 +++++++++++++++++-- .../v1/models/organization.rb | 29 +++++++++++++++++-- .../v1/models/organization_billing.rb | 29 +++++++++++++++++-- .../v1/models/organization_create_body.rb | 29 +++++++++++++++++-- .../v1/models/organization_create_response.rb | 29 +++++++++++++++++-- .../v1/models/organization_list_response.rb | 29 +++++++++++++++++-- .../v1/models/organization_response.rb | 29 +++++++++++++++++-- .../v1/models/organization_settings.rb | 29 +++++++++++++++++-- .../v1/models/organization_settings_saml.rb | 29 +++++++++++++++++-- ..._settings_saml_autocreate_users_domains.rb | 29 +++++++++++++++++-- ...ation_settings_saml_idp_initiated_login.rb | 29 +++++++++++++++++-- .../organization_settings_saml_strict_mode.rb | 29 +++++++++++++++++-- .../v1/models/organization_subscription.rb | 29 +++++++++++++++++-- .../v1/models/pager_duty_service.rb | 29 +++++++++++++++++-- .../v1/models/pager_duty_service_key.rb | 29 +++++++++++++++++-- .../v1/models/pager_duty_service_name.rb | 29 +++++++++++++++++-- .../v1/models/pagination.rb | 29 +++++++++++++++++-- .../powerpack_template_variable_contents.rb | 29 +++++++++++++++++-- .../v1/models/powerpack_template_variables.rb | 29 +++++++++++++++++-- .../v1/models/powerpack_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/process_query_definition.rb | 29 +++++++++++++++++-- .../models/query_value_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/query_value_widget_request.rb | 29 +++++++++++++++++-- .../reference_table_logs_lookup_processor.rb | 29 +++++++++++++++++-- .../v1/models/response_meta_attributes.rb | 29 +++++++++++++++++-- .../models/run_workflow_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/run_workflow_widget_input.rb | 29 +++++++++++++++++-- .../v1/models/scatter_plot_request.rb | 29 +++++++++++++++++-- .../models/scatter_plot_widget_definition.rb | 29 +++++++++++++++++-- ...scatter_plot_widget_definition_requests.rb | 29 +++++++++++++++++-- .../v1/models/scatterplot_table_request.rb | 29 +++++++++++++++++-- .../v1/models/scatterplot_widget_formula.rb | 29 +++++++++++++++++-- .../models/search_service_level_objective.rb | 29 +++++++++++++++++-- ...arch_service_level_objective_attributes.rb | 29 +++++++++++++++++-- .../search_service_level_objective_data.rb | 29 +++++++++++++++++-- .../v1/models/search_slo_query.rb | 29 +++++++++++++++++-- .../v1/models/search_slo_response.rb | 29 +++++++++++++++++-- .../v1/models/search_slo_response_data.rb | 29 +++++++++++++++++-- .../search_slo_response_data_attributes.rb | 29 +++++++++++++++++-- ...rch_slo_response_data_attributes_facets.rb | 29 +++++++++++++++++-- ...ponse_data_attributes_facets_object_int.rb | 29 +++++++++++++++++-- ...se_data_attributes_facets_object_string.rb | 29 +++++++++++++++++-- .../v1/models/search_slo_response_links.rb | 29 +++++++++++++++++-- .../v1/models/search_slo_response_meta.rb | 29 +++++++++++++++++-- .../models/search_slo_response_meta_page.rb | 29 +++++++++++++++++-- .../v1/models/search_slo_threshold.rb | 29 +++++++++++++++++-- .../selectable_template_variable_items.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/series.rb | 29 +++++++++++++++++-- .../v1/models/service_check.rb | 29 +++++++++++++++++-- .../v1/models/service_level_objective.rb | 29 +++++++++++++++++-- .../models/service_level_objective_query.rb | 29 +++++++++++++++++-- .../models/service_level_objective_request.rb | 29 +++++++++++++++++-- .../models/service_map_widget_definition.rb | 29 +++++++++++++++++-- .../service_summary_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/shared_dashboard.rb | 29 +++++++++++++++++-- .../v1/models/shared_dashboard_author.rb | 29 +++++++++++++++++-- .../v1/models/shared_dashboard_invites.rb | 29 +++++++++++++++++-- .../shared_dashboard_invites_data_object.rb | 29 +++++++++++++++++-- ...ashboard_invites_data_object_attributes.rb | 29 +++++++++++++++++-- .../models/shared_dashboard_invites_meta.rb | 29 +++++++++++++++++-- .../shared_dashboard_invites_meta_page.rb | 29 +++++++++++++++++-- .../models/shared_dashboard_update_request.rb | 29 +++++++++++++++++-- ...ed_dashboard_update_request_global_time.rb | 29 +++++++++++++++++-- .../models/signal_assignee_update_request.rb | 29 +++++++++++++++++-- .../v1/models/signal_state_update_request.rb | 29 +++++++++++++++++-- .../v1/models/slack_integration_channel.rb | 29 +++++++++++++++++-- .../slack_integration_channel_display.rb | 29 +++++++++++++++++-- .../v1/models/slo_bulk_delete_error.rb | 29 +++++++++++++++++-- .../v1/models/slo_bulk_delete_response.rb | 29 +++++++++++++++++-- .../models/slo_bulk_delete_response_data.rb | 29 +++++++++++++++++-- .../v1/models/slo_correction.rb | 29 +++++++++++++++++-- .../v1/models/slo_correction_create_data.rb | 29 +++++++++++++++++-- .../models/slo_correction_create_request.rb | 29 +++++++++++++++++-- ...lo_correction_create_request_attributes.rb | 29 +++++++++++++++++-- .../v1/models/slo_correction_list_response.rb | 29 +++++++++++++++++-- .../v1/models/slo_correction_response.rb | 29 +++++++++++++++++-- .../slo_correction_response_attributes.rb | 29 +++++++++++++++++-- ...correction_response_attributes_modifier.rb | 29 +++++++++++++++++-- .../v1/models/slo_correction_update_data.rb | 29 +++++++++++++++++-- .../models/slo_correction_update_request.rb | 29 +++++++++++++++++-- ...lo_correction_update_request_attributes.rb | 29 +++++++++++++++++-- .../v1/models/slo_creator.rb | 29 +++++++++++++++++-- .../v1/models/slo_delete_response.rb | 29 +++++++++++++++++-- .../v1/models/slo_formula.rb | 29 +++++++++++++++++-- .../v1/models/slo_history_metrics.rb | 29 +++++++++++++++++-- .../v1/models/slo_history_metrics_series.rb | 29 +++++++++++++++++-- .../slo_history_metrics_series_metadata.rb | 29 +++++++++++++++++-- ...lo_history_metrics_series_metadata_unit.rb | 29 +++++++++++++++++-- .../v1/models/slo_history_monitor.rb | 29 +++++++++++++++++-- .../v1/models/slo_history_response.rb | 29 +++++++++++++++++-- .../v1/models/slo_history_response_data.rb | 29 +++++++++++++++++-- .../v1/models/slo_history_response_error.rb | 29 +++++++++++++++++-- .../slo_history_response_error_with_type.rb | 29 +++++++++++++++++-- .../v1/models/slo_history_sli_data.rb | 29 +++++++++++++++++-- .../v1/models/slo_list_response.rb | 29 +++++++++++++++++-- .../v1/models/slo_list_response_metadata.rb | 29 +++++++++++++++++-- .../models/slo_list_response_metadata_page.rb | 29 +++++++++++++++++-- .../v1/models/slo_list_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/slo_list_widget_query.rb | 29 +++++++++++++++++-- .../v1/models/slo_list_widget_request.rb | 29 +++++++++++++++++-- .../v1/models/slo_overall_statuses.rb | 29 +++++++++++++++++-- .../models/slo_raw_error_budget_remaining.rb | 29 +++++++++++++++++-- .../v1/models/slo_response.rb | 29 +++++++++++++++++-- .../v1/models/slo_response_data.rb | 29 +++++++++++++++++-- .../v1/models/slo_status.rb | 29 +++++++++++++++++-- .../v1/models/slo_threshold.rb | 29 +++++++++++++++++-- .../v1/models/slo_time_slice_condition.rb | 29 +++++++++++++++++-- .../v1/models/slo_time_slice_query.rb | 29 +++++++++++++++++-- .../v1/models/slo_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/split_config.rb | 29 +++++++++++++++++-- .../v1/models/split_config_sort_compute.rb | 29 +++++++++++++++++-- .../v1/models/split_dimension.rb | 29 +++++++++++++++++-- .../models/split_graph_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/split_sort.rb | 29 +++++++++++++++++-- .../v1/models/split_vector_entry_item.rb | 29 +++++++++++++++++-- .../successful_signal_update_response.rb | 29 +++++++++++++++++-- .../v1/models/sunburst_widget_definition.rb | 29 +++++++++++++++++-- ...sunburst_widget_legend_inline_automatic.rb | 29 +++++++++++++++++-- .../v1/models/sunburst_widget_legend_table.rb | 29 +++++++++++++++++-- .../v1/models/sunburst_widget_request.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_api_test.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_api_test_config.rb | 29 +++++++++++++++++-- .../models/synthetics_api_test_result_data.rb | 29 +++++++++++++++++-- .../synthetics_api_test_result_failure.rb | 29 +++++++++++++++++-- .../models/synthetics_api_test_result_full.rb | 29 +++++++++++++++++-- .../synthetics_api_test_result_full_check.rb | 29 +++++++++++++++++-- .../synthetics_api_test_result_short.rb | 29 +++++++++++++++++-- ...synthetics_api_test_result_short_result.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_api_test_step.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_api_wait_step.rb | 29 +++++++++++++++++-- .../synthetics_assertion_body_hash_target.rb | 29 +++++++++++++++++-- .../synthetics_assertion_json_path_target.rb | 29 +++++++++++++++++-- ...etics_assertion_json_path_target_target.rb | 29 +++++++++++++++++-- ...synthetics_assertion_json_schema_target.rb | 29 +++++++++++++++++-- ...ics_assertion_json_schema_target_target.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_assertion_target.rb | 29 +++++++++++++++++-- .../synthetics_assertion_x_path_target.rb | 29 +++++++++++++++++-- ...nthetics_assertion_x_path_target_target.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_basic_auth_digest.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_basic_auth_ntlm.rb | 29 +++++++++++++++++-- .../synthetics_basic_auth_oauth_client.rb | 29 +++++++++++++++++-- .../models/synthetics_basic_auth_oauth_rop.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_basic_auth_sigv4.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_basic_auth_web.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_batch_details.rb | 29 +++++++++++++++++-- .../models/synthetics_batch_details_data.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_batch_result.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_browser_error.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_browser_test.rb | 29 +++++++++++++++++-- .../models/synthetics_browser_test_config.rb | 29 +++++++++++++++++-- .../synthetics_browser_test_result_data.rb | 29 +++++++++++++++++-- .../synthetics_browser_test_result_failure.rb | 29 +++++++++++++++++-- .../synthetics_browser_test_result_full.rb | 29 +++++++++++++++++-- ...nthetics_browser_test_result_full_check.rb | 29 +++++++++++++++++-- .../synthetics_browser_test_result_short.rb | 29 +++++++++++++++++-- ...hetics_browser_test_result_short_result.rb | 29 +++++++++++++++++-- .../synthetics_browser_test_rum_settings.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_browser_variable.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_ci_batch_metadata.rb | 29 +++++++++++++++++-- .../models/synthetics_ci_batch_metadata_ci.rb | 29 +++++++++++++++++-- .../synthetics_ci_batch_metadata_git.rb | 29 +++++++++++++++++-- .../synthetics_ci_batch_metadata_pipeline.rb | 29 +++++++++++++++++-- .../synthetics_ci_batch_metadata_provider.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_ci_test.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_ci_test_body.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_config_variable.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_core_web_vitals.rb | 29 +++++++++++++++++-- .../models/synthetics_delete_tests_payload.rb | 29 +++++++++++++++++-- .../synthetics_delete_tests_response.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_deleted_test.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_device.rb | 29 +++++++++++++++++-- ...cs_get_api_test_latest_results_response.rb | 29 +++++++++++++++++-- ...et_browser_test_latest_results_response.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_global_variable.rb | 29 +++++++++++++++++-- .../synthetics_global_variable_attributes.rb | 29 +++++++++++++++++-- .../synthetics_global_variable_options.rb | 29 +++++++++++++++++-- ...tics_global_variable_parse_test_options.rb | 29 +++++++++++++++++-- ...thetics_global_variable_totp_parameters.rb | 29 +++++++++++++++++-- .../synthetics_global_variable_value.rb | 29 +++++++++++++++++-- ...nthetics_list_global_variables_response.rb | 29 +++++++++++++++++-- .../models/synthetics_list_tests_response.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_location.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_locations.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_parsing_options.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_patch_test_body.rb | 29 +++++++++++++++++-- .../models/synthetics_patch_test_operation.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_private_location.rb | 29 +++++++++++++++++-- ...tics_private_location_creation_response.rb | 29 +++++++++++++++++-- ...ion_creation_response_result_encryption.rb | 29 +++++++++++++++++-- .../synthetics_private_location_metadata.rb | 29 +++++++++++++++++-- .../synthetics_private_location_secrets.rb | 29 +++++++++++++++++-- ...private_location_secrets_authentication.rb | 29 +++++++++++++++++-- ...vate_location_secrets_config_decryption.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_ssl_certificate.rb | 29 +++++++++++++++++-- .../synthetics_ssl_certificate_issuer.rb | 29 +++++++++++++++++-- .../synthetics_ssl_certificate_subject.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_step.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_step_detail.rb | 29 +++++++++++++++++-- .../models/synthetics_step_detail_warning.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_test_ci_options.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_test_config.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_test_details.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_test_options.rb | 29 +++++++++++++++++-- ...synthetics_test_options_monitor_options.rb | 29 +++++++++++++++++-- .../models/synthetics_test_options_retry.rb | 29 +++++++++++++++++-- .../synthetics_test_options_scheduling.rb | 29 +++++++++++++++++-- ...etics_test_options_scheduling_timeframe.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_test_request.rb | 29 +++++++++++++++++-- .../synthetics_test_request_body_file.rb | 29 +++++++++++++++++-- .../synthetics_test_request_certificate.rb | 29 +++++++++++++++++-- ...ynthetics_test_request_certificate_item.rb | 29 +++++++++++++++++-- .../models/synthetics_test_request_proxy.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_timing.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_trigger_body.rb | 29 +++++++++++++++++-- .../synthetics_trigger_ci_test_location.rb | 29 +++++++++++++++++-- .../synthetics_trigger_ci_test_run_result.rb | 29 +++++++++++++++++-- .../synthetics_trigger_ci_tests_response.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_trigger_test.rb | 29 +++++++++++++++++-- ...hetics_update_test_pause_status_payload.rb | 29 +++++++++++++++++-- .../v1/models/synthetics_variable_parser.rb | 29 +++++++++++++++++-- .../v1/models/table_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/table_widget_request.rb | 29 +++++++++++++++++-- .../v1/models/tag_to_hosts.rb | 29 +++++++++++++++++-- .../v1/models/timeseries_background.rb | 29 +++++++++++++++++-- .../v1/models/timeseries_widget_definition.rb | 29 +++++++++++++++++-- .../timeseries_widget_expression_alias.rb | 29 +++++++++++++++++-- .../v1/models/timeseries_widget_request.rb | 29 +++++++++++++++++-- .../v1/models/toplist_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/toplist_widget_flat.rb | 29 +++++++++++++++++-- .../v1/models/toplist_widget_request.rb | 29 +++++++++++++++++-- .../v1/models/toplist_widget_stacked.rb | 29 +++++++++++++++++-- .../v1/models/toplist_widget_style.rb | 29 +++++++++++++++++-- .../models/topology_map_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/topology_query.rb | 29 +++++++++++++++++-- .../v1/models/topology_request.rb | 29 +++++++++++++++++-- .../v1/models/tree_map_widget_definition.rb | 29 +++++++++++++++++-- .../v1/models/tree_map_widget_request.rb | 29 +++++++++++++++++-- .../v1/models/usage_analyzed_logs_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_analyzed_logs_response.rb | 29 +++++++++++++++++-- .../usage_attribution_aggregates_body.rb | 29 +++++++++++++++++-- .../v1/models/usage_audit_logs_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_audit_logs_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_billable_summary_body.rb | 29 +++++++++++++++++-- .../v1/models/usage_billable_summary_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_billable_summary_keys.rb | 29 +++++++++++++++++-- .../models/usage_billable_summary_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_ci_visibility_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_ci_visibility_response.rb | 29 +++++++++++++++++-- ..._cloud_security_posture_management_hour.rb | 29 +++++++++++++++++-- ...ud_security_posture_management_response.rb | 29 +++++++++++++++++-- .../models/usage_custom_reports_attributes.rb | 29 +++++++++++++++++-- .../v1/models/usage_custom_reports_data.rb | 29 +++++++++++++++++-- .../v1/models/usage_custom_reports_meta.rb | 29 +++++++++++++++++-- .../v1/models/usage_custom_reports_page.rb | 29 +++++++++++++++++-- .../models/usage_custom_reports_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_cws_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_cws_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_dbm_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_dbm_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_fargate_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_fargate_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_host_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_hosts_response.rb | 29 +++++++++++++++++-- .../models/usage_incident_management_hour.rb | 29 +++++++++++++++++-- .../usage_incident_management_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_indexed_spans_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_indexed_spans_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_ingested_spans_hour.rb | 29 +++++++++++++++++-- .../models/usage_ingested_spans_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_iot_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_iot_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_lambda_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_lambda_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_logs_by_index_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_logs_by_index_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_logs_by_retention_hour.rb | 29 +++++++++++++++++-- .../usage_logs_by_retention_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_logs_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_logs_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_network_flows_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_network_flows_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_network_hosts_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_network_hosts_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_online_archive_hour.rb | 29 +++++++++++++++++-- .../models/usage_online_archive_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_profiling_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_profiling_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_rum_sessions_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_rum_sessions_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_rum_units_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_rum_units_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_sds_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_sds_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_snmp_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_snmp_response.rb | 29 +++++++++++++++++-- ...age_specified_custom_reports_attributes.rb | 29 +++++++++++++++++-- .../usage_specified_custom_reports_data.rb | 29 +++++++++++++++++-- .../usage_specified_custom_reports_meta.rb | 29 +++++++++++++++++-- .../usage_specified_custom_reports_page.rb | 29 +++++++++++++++++-- ...usage_specified_custom_reports_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_summary_date.rb | 29 +++++++++++++++++-- .../v1/models/usage_summary_date_org.rb | 29 +++++++++++++++++-- .../v1/models/usage_summary_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_synthetics_api_hour.rb | 29 +++++++++++++++++-- .../models/usage_synthetics_api_response.rb | 29 +++++++++++++++++-- .../models/usage_synthetics_browser_hour.rb | 29 +++++++++++++++++-- .../usage_synthetics_browser_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_synthetics_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_synthetics_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_timeseries_hour.rb | 29 +++++++++++++++++-- .../v1/models/usage_timeseries_response.rb | 29 +++++++++++++++++-- .../v1/models/usage_top_avg_metrics_hour.rb | 29 +++++++++++++++++-- .../models/usage_top_avg_metrics_metadata.rb | 29 +++++++++++++++++-- .../usage_top_avg_metrics_pagination.rb | 29 +++++++++++++++++-- .../models/usage_top_avg_metrics_response.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/user.rb | 29 +++++++++++++++++-- .../v1/models/user_disable_response.rb | 29 +++++++++++++++++-- .../v1/models/user_list_response.rb | 29 +++++++++++++++++-- .../v1/models/user_response.rb | 29 +++++++++++++++++-- .../v1/models/webhooks_integration.rb | 29 +++++++++++++++++-- .../webhooks_integration_custom_variable.rb | 29 +++++++++++++++++-- ...ks_integration_custom_variable_response.rb | 29 +++++++++++++++++-- ...egration_custom_variable_update_request.rb | 29 +++++++++++++++++-- .../webhooks_integration_update_request.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v1/models/widget.rb | 29 +++++++++++++++++-- .../v1/models/widget_axis.rb | 29 +++++++++++++++++-- .../v1/models/widget_conditional_format.rb | 29 +++++++++++++++++-- .../v1/models/widget_custom_link.rb | 29 +++++++++++++++++-- .../v1/models/widget_event.rb | 29 +++++++++++++++++-- .../v1/models/widget_field_sort.rb | 29 +++++++++++++++++-- .../v1/models/widget_formula.rb | 29 +++++++++++++++++-- .../v1/models/widget_formula_limit.rb | 29 +++++++++++++++++-- .../v1/models/widget_formula_sort.rb | 29 +++++++++++++++++-- .../v1/models/widget_formula_style.rb | 29 +++++++++++++++++-- .../v1/models/widget_group_sort.rb | 29 +++++++++++++++++-- .../v1/models/widget_layout.rb | 29 +++++++++++++++++-- .../v1/models/widget_marker.rb | 29 +++++++++++++++++-- .../v1/models/widget_request_style.rb | 29 +++++++++++++++++-- .../v1/models/widget_sort_by.rb | 29 +++++++++++++++++-- .../v1/models/widget_style.rb | 29 +++++++++++++++++-- .../v1/models/widget_time.rb | 29 +++++++++++++++++-- .../active_billing_dimensions_attributes.rb | 29 +++++++++++++++++-- .../models/active_billing_dimensions_body.rb | 29 +++++++++++++++++-- .../active_billing_dimensions_response.rb | 29 +++++++++++++++++-- .../v2/models/api_error_response.rb | 29 +++++++++++++++++-- .../v2/models/api_key_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/api_key_create_data.rb | 29 +++++++++++++++++-- .../v2/models/api_key_create_request.rb | 29 +++++++++++++++++-- .../v2/models/api_key_relationships.rb | 29 +++++++++++++++++-- .../v2/models/api_key_response.rb | 29 +++++++++++++++++-- .../v2/models/api_key_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/api_key_update_data.rb | 29 +++++++++++++++++-- .../v2/models/api_key_update_request.rb | 29 +++++++++++++++++-- .../v2/models/api_keys_response.rb | 29 +++++++++++++++++-- .../v2/models/api_keys_response_meta.rb | 29 +++++++++++++++++-- .../v2/models/api_keys_response_meta_page.rb | 29 +++++++++++++++++-- .../application_key_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/application_key_create_data.rb | 29 +++++++++++++++++-- .../models/application_key_create_request.rb | 29 +++++++++++++++++-- .../models/application_key_relationships.rb | 29 +++++++++++++++++-- .../v2/models/application_key_response.rb | 29 +++++++++++++++++-- .../models/application_key_response_meta.rb | 29 +++++++++++++++++-- .../application_key_response_meta_page.rb | 29 +++++++++++++++++-- .../application_key_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/application_key_update_data.rb | 29 +++++++++++++++++-- .../models/application_key_update_request.rb | 29 +++++++++++++++++-- .../v2/models/audit_logs_event.rb | 29 +++++++++++++++++-- .../v2/models/audit_logs_event_attributes.rb | 29 +++++++++++++++++-- .../v2/models/audit_logs_events_response.rb | 29 +++++++++++++++++-- .../v2/models/audit_logs_query_filter.rb | 29 +++++++++++++++++-- .../v2/models/audit_logs_query_options.rb | 29 +++++++++++++++++-- .../models/audit_logs_query_page_options.rb | 29 +++++++++++++++++-- .../v2/models/audit_logs_response_links.rb | 29 +++++++++++++++++-- .../v2/models/audit_logs_response_metadata.rb | 29 +++++++++++++++++-- .../v2/models/audit_logs_response_page.rb | 29 +++++++++++++++++-- .../audit_logs_search_events_request.rb | 29 +++++++++++++++++-- .../v2/models/audit_logs_warning.rb | 29 +++++++++++++++++-- .../v2/models/authn_mapping.rb | 29 +++++++++++++++++-- .../v2/models/authn_mapping_attributes.rb | 29 +++++++++++++++++-- .../models/authn_mapping_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/authn_mapping_create_data.rb | 29 +++++++++++++++++-- .../v2/models/authn_mapping_create_request.rb | 29 +++++++++++++++++-- .../authn_mapping_relationship_to_role.rb | 29 +++++++++++++++++-- .../authn_mapping_relationship_to_team.rb | 29 +++++++++++++++++-- .../v2/models/authn_mapping_relationships.rb | 29 +++++++++++++++++-- .../v2/models/authn_mapping_response.rb | 29 +++++++++++++++++-- .../v2/models/authn_mapping_team.rb | 29 +++++++++++++++++-- .../models/authn_mapping_team_attributes.rb | 29 +++++++++++++++++-- .../models/authn_mapping_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/authn_mapping_update_data.rb | 29 +++++++++++++++++-- .../v2/models/authn_mapping_update_request.rb | 29 +++++++++++++++++-- .../v2/models/authn_mappings_response.rb | 29 +++++++++++++++++-- .../v2/models/aws_cur_config.rb | 29 +++++++++++++++++-- .../v2/models/aws_cur_config_attributes.rb | 29 +++++++++++++++++-- .../v2/models/aws_cur_config_patch_data.rb | 29 +++++++++++++++++-- .../v2/models/aws_cur_config_patch_request.rb | 29 +++++++++++++++++-- ...aws_cur_config_patch_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/aws_cur_config_post_data.rb | 29 +++++++++++++++++-- .../v2/models/aws_cur_config_post_request.rb | 29 +++++++++++++++++-- .../aws_cur_config_post_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/aws_cur_config_response.rb | 29 +++++++++++++++++-- .../v2/models/aws_cur_configs_response.rb | 29 +++++++++++++++++-- .../v2/models/aws_related_account.rb | 29 +++++++++++++++++-- .../models/aws_related_account_attributes.rb | 29 +++++++++++++++++-- .../models/aws_related_accounts_response.rb | 29 +++++++++++++++++-- .../v2/models/azure_uc_config.rb | 29 +++++++++++++++++-- .../v2/models/azure_uc_config_pair.rb | 29 +++++++++++++++++-- .../models/azure_uc_config_pair_attributes.rb | 29 +++++++++++++++++-- .../models/azure_uc_config_pairs_response.rb | 29 +++++++++++++++++-- .../v2/models/azure_uc_config_patch_data.rb | 29 +++++++++++++++++-- .../models/azure_uc_config_patch_request.rb | 29 +++++++++++++++++-- ...zure_uc_config_patch_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/azure_uc_config_post_data.rb | 29 +++++++++++++++++-- .../v2/models/azure_uc_config_post_request.rb | 29 +++++++++++++++++-- ...azure_uc_config_post_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/azure_uc_configs_response.rb | 29 +++++++++++++++++-- .../v2/models/bill_config.rb | 29 +++++++++++++++++-- .../v2/models/bulk_mute_findings_request.rb | 29 +++++++++++++++++-- .../models/bulk_mute_findings_request_data.rb | 29 +++++++++++++++++-- .../models/bulk_mute_findings_request_meta.rb | 29 +++++++++++++++++-- ...ulk_mute_findings_request_meta_findings.rb | 29 +++++++++++++++++-- .../v2/models/bulk_mute_findings_response.rb | 29 +++++++++++++++++-- .../bulk_mute_findings_response_data.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/case.rb | 29 +++++++++++++++++-- .../v2/models/case_assign.rb | 29 +++++++++++++++++-- .../v2/models/case_assign_attributes.rb | 29 +++++++++++++++++-- .../v2/models/case_assign_request.rb | 29 +++++++++++++++++-- .../v2/models/case_attributes.rb | 29 +++++++++++++++++-- .../v2/models/case_create.rb | 29 +++++++++++++++++-- .../v2/models/case_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/case_create_relationships.rb | 29 +++++++++++++++++-- .../v2/models/case_create_request.rb | 29 +++++++++++++++++-- .../v2/models/case_empty.rb | 29 +++++++++++++++++-- .../v2/models/case_empty_request.rb | 29 +++++++++++++++++-- .../v2/models/case_relationships.rb | 29 +++++++++++++++++-- .../v2/models/case_response.rb | 29 +++++++++++++++++-- .../v2/models/case_update_priority.rb | 29 +++++++++++++++++-- .../models/case_update_priority_attributes.rb | 29 +++++++++++++++++-- .../v2/models/case_update_priority_request.rb | 29 +++++++++++++++++-- .../v2/models/case_update_status.rb | 29 +++++++++++++++++-- .../models/case_update_status_attributes.rb | 29 +++++++++++++++++-- .../v2/models/case_update_status_request.rb | 29 +++++++++++++++++-- .../v2/models/cases_response.rb | 29 +++++++++++++++++-- .../v2/models/cases_response_meta.rb | 29 +++++++++++++++++-- .../models/cases_response_meta_pagination.rb | 29 +++++++++++++++++-- .../v2/models/chargeback_breakdown.rb | 29 +++++++++++++++++-- ...aggregate_bucket_value_timeseries_point.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_aggregate_sort.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_ci_error.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_compute.rb | 29 +++++++++++++++++-- .../ci_app_create_pipeline_event_request.rb | 29 +++++++++++++++++-- ...reate_pipeline_event_request_attributes.rb | 29 +++++++++++++++++-- ..._app_create_pipeline_event_request_data.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_event_attributes.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_git_info.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_group_by_histogram.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_host_info.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_pipeline_event.rb | 29 +++++++++++++++++-- .../ci_app_pipeline_event_attributes.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_pipeline_event_job.rb | 29 +++++++++++++++++-- .../ci_app_pipeline_event_parent_pipeline.rb | 29 +++++++++++++++++-- .../models/ci_app_pipeline_event_pipeline.rb | 29 +++++++++++++++++-- ...ci_app_pipeline_event_previous_pipeline.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_pipeline_event_stage.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_pipeline_event_step.rb | 29 +++++++++++++++++-- .../models/ci_app_pipeline_events_request.rb | 29 +++++++++++++++++-- .../models/ci_app_pipeline_events_response.rb | 29 +++++++++++++++++-- .../ci_app_pipelines_aggregate_request.rb | 29 +++++++++++++++++-- ..._pipelines_aggregation_buckets_response.rb | 29 +++++++++++++++++-- ..._pipelines_analytics_aggregate_response.rb | 29 +++++++++++++++++-- .../ci_app_pipelines_bucket_response.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_pipelines_group_by.rb | 29 +++++++++++++++++-- .../models/ci_app_pipelines_query_filter.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_query_options.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_query_page_options.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_response_links.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_response_metadata.rb | 29 +++++++++++++++++-- ...i_app_response_metadata_with_pagination.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_response_page.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_test_event.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_test_events_request.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_test_events_response.rb | 29 +++++++++++++++++-- .../models/ci_app_tests_aggregate_request.rb | 29 +++++++++++++++++-- ..._app_tests_aggregation_buckets_response.rb | 29 +++++++++++++++++-- ..._app_tests_analytics_aggregate_response.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_tests_bucket_response.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_tests_group_by.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_tests_query_filter.rb | 29 +++++++++++++++++-- .../v2/models/ci_app_warning.rb | 29 +++++++++++++++++-- ...d_configuration_compliance_rule_options.rb | 29 +++++++++++++++++-- .../models/cloud_configuration_rego_rule.rb | 29 +++++++++++++++++-- .../cloud_configuration_rule_case_create.rb | 29 +++++++++++++++++-- ...guration_rule_compliance_signal_options.rb | 29 +++++++++++++++++-- ...cloud_configuration_rule_create_payload.rb | 29 +++++++++++++++++-- .../cloud_configuration_rule_options.rb | 29 +++++++++++++++++-- .../cloud_configuration_rule_payload.rb | 29 +++++++++++++++++-- .../v2/models/cloud_cost_activity.rb | 29 +++++++++++++++++-- .../models/cloud_cost_activity_attributes.rb | 29 +++++++++++++++++-- .../v2/models/cloud_cost_activity_response.rb | 29 +++++++++++++++++-- ...oud_workload_security_agent_rule_action.rb | 29 +++++++++++++++++-- ...workload_security_agent_rule_attributes.rb | 29 +++++++++++++++++-- ...d_security_agent_rule_create_attributes.rb | 29 +++++++++++++++++-- ...orkload_security_agent_rule_create_data.rb | 29 +++++++++++++++++-- ...load_security_agent_rule_create_request.rb | 29 +++++++++++++++++-- ..._security_agent_rule_creator_attributes.rb | 29 +++++++++++++++++-- ...cloud_workload_security_agent_rule_data.rb | 29 +++++++++++++++++-- ...cloud_workload_security_agent_rule_kill.rb | 29 +++++++++++++++++-- ...d_workload_security_agent_rule_response.rb | 29 +++++++++++++++++-- ...d_security_agent_rule_update_attributes.rb | 29 +++++++++++++++++-- ...orkload_security_agent_rule_update_data.rb | 29 +++++++++++++++++-- ...load_security_agent_rule_update_request.rb | 29 +++++++++++++++++-- ..._security_agent_rule_updater_attributes.rb | 29 +++++++++++++++++-- ...load_security_agent_rules_list_response.rb | 29 +++++++++++++++++-- .../cloudflare_account_create_request.rb | 29 +++++++++++++++++-- ...flare_account_create_request_attributes.rb | 29 +++++++++++++++++-- .../cloudflare_account_create_request_data.rb | 29 +++++++++++++++++-- .../v2/models/cloudflare_account_response.rb | 29 +++++++++++++++++-- .../cloudflare_account_response_attributes.rb | 29 +++++++++++++++++-- .../cloudflare_account_response_data.rb | 29 +++++++++++++++++-- .../cloudflare_account_update_request.rb | 29 +++++++++++++++++-- ...flare_account_update_request_attributes.rb | 29 +++++++++++++++++-- .../cloudflare_account_update_request_data.rb | 29 +++++++++++++++++-- .../v2/models/cloudflare_accounts_response.rb | 29 +++++++++++++++++-- .../confluent_account_create_request.rb | 29 +++++++++++++++++-- ...luent_account_create_request_attributes.rb | 29 +++++++++++++++++-- .../confluent_account_create_request_data.rb | 29 +++++++++++++++++-- .../confluent_account_resource_attributes.rb | 29 +++++++++++++++++-- .../v2/models/confluent_account_response.rb | 29 +++++++++++++++++-- .../confluent_account_response_attributes.rb | 29 +++++++++++++++++-- .../models/confluent_account_response_data.rb | 29 +++++++++++++++++-- .../confluent_account_update_request.rb | 29 +++++++++++++++++-- ...luent_account_update_request_attributes.rb | 29 +++++++++++++++++-- .../confluent_account_update_request_data.rb | 29 +++++++++++++++++-- .../v2/models/confluent_accounts_response.rb | 29 +++++++++++++++++-- .../v2/models/confluent_resource_request.rb | 29 +++++++++++++++++-- .../confluent_resource_request_attributes.rb | 29 +++++++++++++++++-- .../models/confluent_resource_request_data.rb | 29 +++++++++++++++++-- .../v2/models/confluent_resource_response.rb | 29 +++++++++++++++++-- .../confluent_resource_response_attributes.rb | 29 +++++++++++++++++-- .../confluent_resource_response_data.rb | 29 +++++++++++++++++-- .../v2/models/confluent_resources_response.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/container.rb | 29 +++++++++++++++++-- .../v2/models/container_attributes.rb | 29 +++++++++++++++++-- .../v2/models/container_group.rb | 29 +++++++++++++++++-- .../v2/models/container_group_attributes.rb | 29 +++++++++++++++++-- .../models/container_group_relationships.rb | 29 +++++++++++++++++-- .../container_group_relationships_link.rb | 29 +++++++++++++++++-- .../container_group_relationships_links.rb | 29 +++++++++++++++++-- .../v2/models/container_image.rb | 29 +++++++++++++++++-- .../v2/models/container_image_attributes.rb | 29 +++++++++++++++++-- .../v2/models/container_image_flavor.rb | 29 +++++++++++++++++-- .../v2/models/container_image_group.rb | 29 +++++++++++++++++-- .../container_image_group_attributes.rb | 29 +++++++++++++++++-- ...r_image_group_images_relationships_link.rb | 29 +++++++++++++++++-- .../container_image_group_relationships.rb | 29 +++++++++++++++++-- ...ntainer_image_group_relationships_links.rb | 29 +++++++++++++++++-- .../v2/models/container_image_meta.rb | 29 +++++++++++++++++-- .../v2/models/container_image_meta_page.rb | 29 +++++++++++++++++-- .../models/container_image_vulnerabilities.rb | 29 +++++++++++++++++-- .../v2/models/container_images_response.rb | 29 +++++++++++++++++-- .../models/container_images_response_links.rb | 29 +++++++++++++++++-- .../v2/models/container_meta.rb | 29 +++++++++++++++++-- .../v2/models/container_meta_page.rb | 29 +++++++++++++++++-- .../v2/models/containers_response.rb | 29 +++++++++++++++++-- .../v2/models/containers_response_links.rb | 29 +++++++++++++++++-- .../cost_attribution_aggregates_body.rb | 29 +++++++++++++++++-- .../v2/models/cost_by_org.rb | 29 +++++++++++++++++-- .../v2/models/cost_by_org_attributes.rb | 29 +++++++++++++++++-- .../v2/models/cost_by_org_response.rb | 29 +++++++++++++++++-- .../v2/models/create_open_api_response.rb | 29 +++++++++++++++++-- .../create_open_api_response_attributes.rb | 29 +++++++++++++++++-- .../models/create_open_api_response_data.rb | 29 +++++++++++++++++-- .../v2/models/create_rule_request.rb | 29 +++++++++++++++++-- .../v2/models/create_rule_request_data.rb | 29 +++++++++++++++++-- .../v2/models/create_rule_response.rb | 29 +++++++++++++++++-- .../v2/models/create_rule_response_data.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/creator.rb | 29 +++++++++++++++++-- .../models/custom_cost_get_response_meta.rb | 29 +++++++++++++++++-- .../models/custom_cost_list_response_meta.rb | 29 +++++++++++++++++-- .../custom_cost_upload_response_meta.rb | 29 +++++++++++++++++-- .../models/custom_costs_file_get_response.rb | 29 +++++++++++++++++-- .../v2/models/custom_costs_file_line_item.rb | 29 +++++++++++++++++-- .../models/custom_costs_file_list_response.rb | 29 +++++++++++++++++-- .../v2/models/custom_costs_file_metadata.rb | 29 +++++++++++++++++-- .../custom_costs_file_metadata_high_level.rb | 29 +++++++++++++++++-- ...custom_costs_file_metadata_with_content.rb | 29 +++++++++++++++++-- ...s_file_metadata_with_content_high_level.rb | 29 +++++++++++++++++-- .../custom_costs_file_upload_response.rb | 29 +++++++++++++++++-- .../custom_costs_file_usage_charge_period.rb | 29 +++++++++++++++++-- .../v2/models/custom_costs_user.rb | 29 +++++++++++++++++-- .../custom_destination_create_request.rb | 29 +++++++++++++++++-- ...m_destination_create_request_attributes.rb | 29 +++++++++++++++++-- ...m_destination_create_request_definition.rb | 29 +++++++++++++++++-- ...tination_elasticsearch_destination_auth.rb | 29 +++++++++++++++++-- ...ation_forward_destination_elasticsearch.rb | 29 +++++++++++++++++-- ...om_destination_forward_destination_http.rb | 29 +++++++++++++++++-- ..._destination_forward_destination_splunk.rb | 29 +++++++++++++++++-- ...destination_http_destination_auth_basic.rb | 29 +++++++++++++++++-- ...ion_http_destination_auth_custom_header.rb | 29 +++++++++++++++++-- .../v2/models/custom_destination_response.rb | 29 +++++++++++++++++-- .../custom_destination_response_attributes.rb | 29 +++++++++++++++++-- .../custom_destination_response_definition.rb | 29 +++++++++++++++++-- ...ponse_forward_destination_elasticsearch.rb | 29 +++++++++++++++++-- ...ation_response_forward_destination_http.rb | 29 +++++++++++++++++-- ...ion_response_forward_destination_splunk.rb | 29 +++++++++++++++++-- ...on_response_http_destination_auth_basic.rb | 29 +++++++++++++++++-- ...nse_http_destination_auth_custom_header.rb | 29 +++++++++++++++++-- .../custom_destination_update_request.rb | 29 +++++++++++++++++-- ...m_destination_update_request_attributes.rb | 29 +++++++++++++++++-- ...m_destination_update_request_definition.rb | 29 +++++++++++++++++-- .../v2/models/custom_destinations_response.rb | 29 +++++++++++++++++-- .../dashboard_list_add_items_request.rb | 29 +++++++++++++++++-- .../dashboard_list_add_items_response.rb | 29 +++++++++++++++++-- .../dashboard_list_delete_items_request.rb | 29 +++++++++++++++++-- .../dashboard_list_delete_items_response.rb | 29 +++++++++++++++++-- .../v2/models/dashboard_list_item.rb | 29 +++++++++++++++++-- .../v2/models/dashboard_list_item_request.rb | 29 +++++++++++++++++-- .../v2/models/dashboard_list_item_response.rb | 29 +++++++++++++++++-- .../v2/models/dashboard_list_items.rb | 29 +++++++++++++++++-- .../dashboard_list_update_items_request.rb | 29 +++++++++++++++++-- .../dashboard_list_update_items_response.rb | 29 +++++++++++++++++-- .../v2/models/data_scalar_column.rb | 29 +++++++++++++++++-- .../v2/models/detailed_finding.rb | 29 +++++++++++++++++-- .../v2/models/detailed_finding_attributes.rb | 29 +++++++++++++++++-- .../v2/models/device_attributes.rb | 29 +++++++++++++++++-- .../device_attributes_interface_statuses.rb | 29 +++++++++++++++++-- .../v2/models/devices_list_data.rb | 29 +++++++++++++++++-- .../v2/models/dora_deployment_request.rb | 29 +++++++++++++++++-- .../dora_deployment_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/dora_deployment_request_data.rb | 29 +++++++++++++++++-- .../v2/models/dora_deployment_response.rb | 29 +++++++++++++++++-- .../models/dora_deployment_response_data.rb | 29 +++++++++++++++++-- .../v2/models/dora_git_info.rb | 29 +++++++++++++++++-- .../v2/models/dora_incident_request.rb | 29 +++++++++++++++++-- .../dora_incident_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/dora_incident_request_data.rb | 29 +++++++++++++++++-- .../v2/models/dora_incident_response.rb | 29 +++++++++++++++++-- .../v2/models/dora_incident_response_data.rb | 29 +++++++++++++++++-- .../v2/models/downtime_create_request.rb | 29 +++++++++++++++++-- .../downtime_create_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/downtime_create_request_data.rb | 29 +++++++++++++++++-- .../v2/models/downtime_meta.rb | 29 +++++++++++++++++-- .../v2/models/downtime_meta_page.rb | 29 +++++++++++++++++-- .../models/downtime_monitor_identifier_id.rb | 29 +++++++++++++++++-- .../downtime_monitor_identifier_tags.rb | 29 +++++++++++++++++-- .../downtime_monitor_included_attributes.rb | 29 +++++++++++++++++-- .../models/downtime_monitor_included_item.rb | 29 +++++++++++++++++-- .../v2/models/downtime_relationships.rb | 29 +++++++++++++++++-- .../downtime_relationships_created_by.rb | 29 +++++++++++++++++-- .../downtime_relationships_created_by_data.rb | 29 +++++++++++++++++-- .../models/downtime_relationships_monitor.rb | 29 +++++++++++++++++-- .../downtime_relationships_monitor_data.rb | 29 +++++++++++++++++-- .../v2/models/downtime_response.rb | 29 +++++++++++++++++-- .../v2/models/downtime_response_attributes.rb | 29 +++++++++++++++++-- .../v2/models/downtime_response_data.rb | 29 +++++++++++++++++-- ...time_schedule_current_downtime_response.rb | 29 +++++++++++++++++-- .../downtime_schedule_one_time_response.rb | 29 +++++++++++++++++-- ...hedule_recurrence_create_update_request.rb | 29 +++++++++++++++++-- .../downtime_schedule_recurrence_response.rb | 29 +++++++++++++++++-- ...ime_schedule_recurrences_create_request.rb | 29 +++++++++++++++++-- .../downtime_schedule_recurrences_response.rb | 29 +++++++++++++++++-- .../v2/models/downtime_update_request.rb | 29 +++++++++++++++++-- .../downtime_update_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/downtime_update_request_data.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/event.rb | 29 +++++++++++++++++-- .../v2/models/event_attributes.rb | 29 +++++++++++++++++-- .../v2/models/event_response.rb | 29 +++++++++++++++++-- .../v2/models/event_response_attributes.rb | 29 +++++++++++++++++-- .../v2/models/events_compute.rb | 29 +++++++++++++++++-- .../v2/models/events_group_by.rb | 29 +++++++++++++++++-- .../v2/models/events_group_by_sort.rb | 29 +++++++++++++++++-- .../v2/models/events_list_request.rb | 29 +++++++++++++++++-- .../v2/models/events_list_response.rb | 29 +++++++++++++++++-- .../v2/models/events_list_response_links.rb | 29 +++++++++++++++++-- .../v2/models/events_query_filter.rb | 29 +++++++++++++++++-- .../v2/models/events_query_options.rb | 29 +++++++++++++++++-- .../v2/models/events_request_page.rb | 29 +++++++++++++++++-- .../v2/models/events_response_metadata.rb | 29 +++++++++++++++++-- .../models/events_response_metadata_page.rb | 29 +++++++++++++++++-- .../v2/models/events_scalar_query.rb | 29 +++++++++++++++++-- .../v2/models/events_search.rb | 29 +++++++++++++++++-- .../v2/models/events_timeseries_query.rb | 29 +++++++++++++++++-- .../v2/models/events_warning.rb | 29 +++++++++++++++++-- .../fastly_accoun_response_attributes.rb | 29 +++++++++++++++++-- .../models/fastly_account_create_request.rb | 29 +++++++++++++++++-- ...astly_account_create_request_attributes.rb | 29 +++++++++++++++++-- .../fastly_account_create_request_data.rb | 29 +++++++++++++++++-- .../v2/models/fastly_account_response.rb | 29 +++++++++++++++++-- .../v2/models/fastly_account_response_data.rb | 29 +++++++++++++++++-- .../models/fastly_account_update_request.rb | 29 +++++++++++++++++-- ...astly_account_update_request_attributes.rb | 29 +++++++++++++++++-- .../fastly_account_update_request_data.rb | 29 +++++++++++++++++-- .../v2/models/fastly_accounts_response.rb | 29 +++++++++++++++++-- .../v2/models/fastly_service.rb | 29 +++++++++++++++++-- .../v2/models/fastly_service_attributes.rb | 29 +++++++++++++++++-- .../v2/models/fastly_service_data.rb | 29 +++++++++++++++++-- .../v2/models/fastly_service_request.rb | 29 +++++++++++++++++-- .../v2/models/fastly_service_response.rb | 29 +++++++++++++++++-- .../v2/models/fastly_services_response.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/finding.rb | 29 +++++++++++++++++-- .../v2/models/finding_attributes.rb | 29 +++++++++++++++++-- .../v2/models/formula_limit.rb | 29 +++++++++++++++++-- .../v2/models/full_api_key.rb | 29 +++++++++++++++++-- .../v2/models/full_api_key_attributes.rb | 29 +++++++++++++++++-- .../v2/models/full_application_key.rb | 29 +++++++++++++++++-- .../models/full_application_key_attributes.rb | 29 +++++++++++++++++-- .../v2/models/gcp_service_account_meta.rb | 29 +++++++++++++++++-- .../v2/models/gcpsts_delegate_account.rb | 29 +++++++++++++++++-- .../gcpsts_delegate_account_attributes.rb | 29 +++++++++++++++++-- .../gcpsts_delegate_account_response.rb | 29 +++++++++++++++++-- .../v2/models/gcpsts_service_account.rb | 29 +++++++++++++++++-- .../gcpsts_service_account_attributes.rb | 29 +++++++++++++++++-- .../gcpsts_service_account_create_request.rb | 29 +++++++++++++++++-- .../v2/models/gcpsts_service_account_data.rb | 29 +++++++++++++++++-- .../models/gcpsts_service_account_response.rb | 29 +++++++++++++++++-- .../gcpsts_service_account_update_request.rb | 29 +++++++++++++++++-- ...sts_service_account_update_request_data.rb | 29 +++++++++++++++++-- .../gcpsts_service_accounts_response.rb | 29 +++++++++++++++++-- .../v2/models/get_device_attributes.rb | 29 +++++++++++++++++-- .../v2/models/get_device_data.rb | 29 +++++++++++++++++-- .../v2/models/get_device_response.rb | 29 +++++++++++++++++-- .../v2/models/get_finding_response.rb | 29 +++++++++++++++++-- .../v2/models/get_interfaces_data.rb | 29 +++++++++++++++++-- .../v2/models/get_interfaces_response.rb | 29 +++++++++++++++++-- .../v2/models/group_scalar_column.rb | 29 +++++++++++++++++-- .../v2/models/hourly_usage.rb | 29 +++++++++++++++++-- .../v2/models/hourly_usage_attributes.rb | 29 +++++++++++++++++-- .../v2/models/hourly_usage_measurement.rb | 29 +++++++++++++++++-- .../v2/models/hourly_usage_metadata.rb | 29 +++++++++++++++++-- .../v2/models/hourly_usage_pagination.rb | 29 +++++++++++++++++-- .../v2/models/hourly_usage_response.rb | 29 +++++++++++++++++-- .../v2/models/http_log_error.rb | 29 +++++++++++++++++-- .../v2/models/http_log_errors.rb | 29 +++++++++++++++++-- .../v2/models/httpci_app_error.rb | 29 +++++++++++++++++-- .../v2/models/httpci_app_errors.rb | 29 +++++++++++++++++-- .../v2/models/idp_metadata_form_data.rb | 29 +++++++++++++++++-- .../v2/models/incident_attachment_data.rb | 29 +++++++++++++++++-- .../incident_attachment_link_attributes.rb | 29 +++++++++++++++++-- ...hment_link_attributes_attachment_object.rb | 29 +++++++++++++++++-- ...cident_attachment_postmortem_attributes.rb | 29 +++++++++++++++++-- .../incident_attachment_relationships.rb | 29 +++++++++++++++++-- .../models/incident_attachment_update_data.rb | 29 +++++++++++++++++-- .../incident_attachment_update_request.rb | 29 +++++++++++++++++-- .../incident_attachment_update_response.rb | 29 +++++++++++++++++-- ...postmortem_attributes_attachment_object.rb | 29 +++++++++++++++++-- .../models/incident_attachments_response.rb | 29 +++++++++++++++++-- .../v2/models/incident_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/incident_create_data.rb | 29 +++++++++++++++++-- .../models/incident_create_relationships.rb | 29 +++++++++++++++++-- .../v2/models/incident_create_request.rb | 29 +++++++++++++++++-- ...ncident_field_attributes_multiple_value.rb | 29 +++++++++++++++++-- .../incident_field_attributes_single_value.rb | 29 +++++++++++++++++-- ...ncident_integration_metadata_attributes.rb | 29 +++++++++++++++++-- ...cident_integration_metadata_create_data.rb | 29 +++++++++++++++++-- ...ent_integration_metadata_create_request.rb | 29 +++++++++++++++++-- ...dent_integration_metadata_list_response.rb | 29 +++++++++++++++++-- ...ncident_integration_metadata_patch_data.rb | 29 +++++++++++++++++-- ...dent_integration_metadata_patch_request.rb | 29 +++++++++++++++++-- .../incident_integration_metadata_response.rb | 29 +++++++++++++++++-- ...dent_integration_metadata_response_data.rb | 29 +++++++++++++++++-- .../incident_integration_relationships.rb | 29 +++++++++++++++++-- .../v2/models/incident_non_datadog_creator.rb | 29 +++++++++++++++++-- .../v2/models/incident_notification_handle.rb | 29 +++++++++++++++++-- .../v2/models/incident_response.rb | 29 +++++++++++++++++-- .../v2/models/incident_response_attributes.rb | 29 +++++++++++++++++-- .../v2/models/incident_response_data.rb | 29 +++++++++++++++++-- .../v2/models/incident_response_meta.rb | 29 +++++++++++++++++-- .../incident_response_meta_pagination.rb | 29 +++++++++++++++++-- .../models/incident_response_relationships.rb | 29 +++++++++++++++++-- .../v2/models/incident_search_response.rb | 29 +++++++++++++++++-- .../incident_search_response_attributes.rb | 29 +++++++++++++++++-- .../models/incident_search_response_data.rb | 29 +++++++++++++++++-- .../incident_search_response_facets_data.rb | 29 +++++++++++++++++-- ...cident_search_response_field_facet_data.rb | 29 +++++++++++++++++-- ...incident_search_response_incidents_data.rb | 29 +++++++++++++++++-- .../models/incident_search_response_meta.rb | 29 +++++++++++++++++-- ...dent_search_response_numeric_facet_data.rb | 29 +++++++++++++++++-- ..._response_numeric_facet_data_aggregates.rb | 29 +++++++++++++++++-- ...arch_response_property_field_facet_data.rb | 29 +++++++++++++++++-- ...ncident_search_response_user_facet_data.rb | 29 +++++++++++++++++-- .../incident_service_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/incident_service_create_data.rb | 29 +++++++++++++++++-- .../models/incident_service_create_request.rb | 29 +++++++++++++++++-- .../models/incident_service_relationships.rb | 29 +++++++++++++++++-- .../v2/models/incident_service_response.rb | 29 +++++++++++++++++-- .../incident_service_response_attributes.rb | 29 +++++++++++++++++-- .../models/incident_service_response_data.rb | 29 +++++++++++++++++-- .../incident_service_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/incident_service_update_data.rb | 29 +++++++++++++++++-- .../models/incident_service_update_request.rb | 29 +++++++++++++++++-- .../v2/models/incident_services_response.rb | 29 +++++++++++++++++-- .../models/incident_team_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/incident_team_create_data.rb | 29 +++++++++++++++++-- .../v2/models/incident_team_create_request.rb | 29 +++++++++++++++++-- .../v2/models/incident_team_relationships.rb | 29 +++++++++++++++++-- .../v2/models/incident_team_response.rb | 29 +++++++++++++++++-- .../incident_team_response_attributes.rb | 29 +++++++++++++++++-- .../v2/models/incident_team_response_data.rb | 29 +++++++++++++++++-- .../models/incident_team_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/incident_team_update_data.rb | 29 +++++++++++++++++-- .../v2/models/incident_team_update_request.rb | 29 +++++++++++++++++-- .../v2/models/incident_teams_response.rb | 29 +++++++++++++++++-- ...imeline_cell_markdown_create_attributes.rb | 29 +++++++++++++++++-- ...cell_markdown_create_attributes_content.rb | 29 +++++++++++++++++-- .../incident_todo_anonymous_assignee.rb | 29 +++++++++++++++++-- .../v2/models/incident_todo_attributes.rb | 29 +++++++++++++++++-- .../v2/models/incident_todo_create_data.rb | 29 +++++++++++++++++-- .../v2/models/incident_todo_create_request.rb | 29 +++++++++++++++++-- .../v2/models/incident_todo_list_response.rb | 29 +++++++++++++++++-- .../v2/models/incident_todo_patch_data.rb | 29 +++++++++++++++++-- .../v2/models/incident_todo_patch_request.rb | 29 +++++++++++++++++-- .../v2/models/incident_todo_relationships.rb | 29 +++++++++++++++++-- .../v2/models/incident_todo_response.rb | 29 +++++++++++++++++-- .../v2/models/incident_todo_response_data.rb | 29 +++++++++++++++++-- .../v2/models/incident_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/incident_update_data.rb | 29 +++++++++++++++++-- .../models/incident_update_relationships.rb | 29 +++++++++++++++++-- .../v2/models/incident_update_request.rb | 29 +++++++++++++++++-- .../v2/models/incidents_response.rb | 29 +++++++++++++++++-- .../v2/models/intake_payload_accepted.rb | 29 +++++++++++++++++-- .../v2/models/interface_attributes.rb | 29 +++++++++++++++++-- .../v2/models/ip_allowlist_attributes.rb | 29 +++++++++++++++++-- .../v2/models/ip_allowlist_data.rb | 29 +++++++++++++++++-- .../v2/models/ip_allowlist_entry.rb | 29 +++++++++++++++++-- .../models/ip_allowlist_entry_attributes.rb | 29 +++++++++++++++++-- .../v2/models/ip_allowlist_entry_data.rb | 29 +++++++++++++++++-- .../v2/models/ip_allowlist_response.rb | 29 +++++++++++++++++-- .../v2/models/ip_allowlist_update_request.rb | 29 +++++++++++++++++-- .../v2/models/jira_integration_metadata.rb | 29 +++++++++++++++++-- .../jira_integration_metadata_issues_item.rb | 29 +++++++++++++++++-- .../v2/models/jira_issue.rb | 29 +++++++++++++++++-- .../v2/models/jira_issue_result.rb | 29 +++++++++++++++++-- .../v2/models/jsonapi_error_item.rb | 29 +++++++++++++++++-- .../v2/models/jsonapi_error_response.rb | 29 +++++++++++++++++-- .../v2/models/leaked_key.rb | 29 +++++++++++++++++-- .../v2/models/leaked_key_attributes.rb | 29 +++++++++++++++++-- .../v2/models/list_apis_response.rb | 29 +++++++++++++++++-- .../v2/models/list_apis_response_data.rb | 29 +++++++++++++++++-- .../list_apis_response_data_attributes.rb | 29 +++++++++++++++++-- .../v2/models/list_apis_response_meta.rb | 29 +++++++++++++++++-- .../list_apis_response_meta_pagination.rb | 29 +++++++++++++++++-- .../models/list_application_keys_response.rb | 29 +++++++++++++++++-- .../v2/models/list_devices_response.rb | 29 +++++++++++++++++-- .../models/list_devices_response_metadata.rb | 29 +++++++++++++++++-- .../list_devices_response_metadata_page.rb | 29 +++++++++++++++++-- .../v2/models/list_downtimes_response.rb | 29 +++++++++++++++++-- .../v2/models/list_findings_response.rb | 29 +++++++++++++++++-- .../v2/models/list_powerpacks_response.rb | 29 +++++++++++++++++-- .../v2/models/list_rules_response.rb | 29 +++++++++++++++++-- .../models/list_rules_response_data_item.rb | 29 +++++++++++++++++-- .../v2/models/list_rules_response_links.rb | 29 +++++++++++++++++-- .../v2/models/list_tags_response.rb | 29 +++++++++++++++++-- .../v2/models/list_tags_response_data.rb | 29 +++++++++++++++++-- .../list_tags_response_data_attributes.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/log.rb | 29 +++++++++++++++++-- .../v2/models/log_attributes.rb | 29 +++++++++++++++++-- .../v2/models/logs_aggregate_bucket.rb | 29 +++++++++++++++++-- ...aggregate_bucket_value_timeseries_point.rb | 29 +++++++++++++++++-- .../v2/models/logs_aggregate_request.rb | 29 +++++++++++++++++-- .../v2/models/logs_aggregate_request_page.rb | 29 +++++++++++++++++-- .../v2/models/logs_aggregate_response.rb | 29 +++++++++++++++++-- .../v2/models/logs_aggregate_response_data.rb | 29 +++++++++++++++++-- .../v2/models/logs_aggregate_sort.rb | 29 +++++++++++++++++-- .../v2/models/logs_archive.rb | 29 +++++++++++++++++-- .../v2/models/logs_archive_attributes.rb | 29 +++++++++++++++++-- .../v2/models/logs_archive_create_request.rb | 29 +++++++++++++++++-- .../logs_archive_create_request_attributes.rb | 29 +++++++++++++++++-- .../logs_archive_create_request_definition.rb | 29 +++++++++++++++++-- .../v2/models/logs_archive_definition.rb | 29 +++++++++++++++++-- .../models/logs_archive_destination_azure.rb | 29 +++++++++++++++++-- .../v2/models/logs_archive_destination_gcs.rb | 29 +++++++++++++++++-- .../v2/models/logs_archive_destination_s3.rb | 29 +++++++++++++++++-- .../models/logs_archive_integration_azure.rb | 29 +++++++++++++++++-- .../v2/models/logs_archive_integration_gcs.rb | 29 +++++++++++++++++-- .../v2/models/logs_archive_integration_s3.rb | 29 +++++++++++++++++-- .../v2/models/logs_archive_order.rb | 29 +++++++++++++++++-- .../models/logs_archive_order_attributes.rb | 29 +++++++++++++++++-- .../models/logs_archive_order_definition.rb | 29 +++++++++++++++++-- .../v2/models/logs_archives.rb | 29 +++++++++++++++++-- .../v2/models/logs_compute.rb | 29 +++++++++++++++++-- .../v2/models/logs_group_by.rb | 29 +++++++++++++++++-- .../v2/models/logs_group_by_histogram.rb | 29 +++++++++++++++++-- .../v2/models/logs_list_request.rb | 29 +++++++++++++++++-- .../v2/models/logs_list_request_page.rb | 29 +++++++++++++++++-- .../v2/models/logs_list_response.rb | 29 +++++++++++++++++-- .../v2/models/logs_list_response_links.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_compute.rb | 29 +++++++++++++++++-- .../models/logs_metric_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_create_data.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_create_request.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_filter.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_group_by.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_response.rb | 29 +++++++++++++++++-- .../models/logs_metric_response_attributes.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_response_compute.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_response_data.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_response_filter.rb | 29 +++++++++++++++++-- .../models/logs_metric_response_group_by.rb | 29 +++++++++++++++++-- .../models/logs_metric_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_update_compute.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_update_data.rb | 29 +++++++++++++++++-- .../v2/models/logs_metric_update_request.rb | 29 +++++++++++++++++-- .../v2/models/logs_metrics_response.rb | 29 +++++++++++++++++-- .../v2/models/logs_query_filter.rb | 29 +++++++++++++++++-- .../v2/models/logs_query_options.rb | 29 +++++++++++++++++-- .../v2/models/logs_response_metadata.rb | 29 +++++++++++++++++-- .../v2/models/logs_response_metadata_page.rb | 29 +++++++++++++++++-- .../v2/models/logs_warning.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/metric.rb | 29 +++++++++++++++++-- .../v2/models/metric_all_tags.rb | 29 +++++++++++++++++-- .../v2/models/metric_all_tags_attributes.rb | 29 +++++++++++++++++-- .../v2/models/metric_all_tags_response.rb | 29 +++++++++++++++++-- .../v2/models/metric_asset_attributes.rb | 29 +++++++++++++++++-- .../metric_asset_dashboard_relationship.rb | 29 +++++++++++++++++-- .../metric_asset_dashboard_relationships.rb | 29 +++++++++++++++++-- .../metric_asset_monitor_relationship.rb | 29 +++++++++++++++++-- .../metric_asset_monitor_relationships.rb | 29 +++++++++++++++++-- .../metric_asset_notebook_relationship.rb | 29 +++++++++++++++++-- .../metric_asset_notebook_relationships.rb | 29 +++++++++++++++++-- .../v2/models/metric_asset_response_data.rb | 29 +++++++++++++++++-- .../metric_asset_response_relationships.rb | 29 +++++++++++++++++-- .../models/metric_asset_slo_relationship.rb | 29 +++++++++++++++++-- .../models/metric_asset_slo_relationships.rb | 29 +++++++++++++++++-- .../v2/models/metric_assets_response.rb | 29 +++++++++++++++++-- .../models/metric_bulk_tag_config_create.rb | 29 +++++++++++++++++-- ...etric_bulk_tag_config_create_attributes.rb | 29 +++++++++++++++++-- .../metric_bulk_tag_config_create_request.rb | 29 +++++++++++++++++-- .../models/metric_bulk_tag_config_delete.rb | 29 +++++++++++++++++-- ...etric_bulk_tag_config_delete_attributes.rb | 29 +++++++++++++++++-- .../metric_bulk_tag_config_delete_request.rb | 29 +++++++++++++++++-- .../models/metric_bulk_tag_config_response.rb | 29 +++++++++++++++++-- .../models/metric_bulk_tag_config_status.rb | 29 +++++++++++++++++-- ...etric_bulk_tag_config_status_attributes.rb | 29 +++++++++++++++++-- .../v2/models/metric_custom_aggregation.rb | 29 +++++++++++++++++-- .../v2/models/metric_dashboard_asset.rb | 29 +++++++++++++++++-- .../v2/models/metric_dashboard_attributes.rb | 29 +++++++++++++++++-- .../v2/models/metric_distinct_volume.rb | 29 +++++++++++++++++-- .../metric_distinct_volume_attributes.rb | 29 +++++++++++++++++-- .../v2/models/metric_estimate.rb | 29 +++++++++++++++++-- .../v2/models/metric_estimate_attributes.rb | 29 +++++++++++++++++-- .../v2/models/metric_estimate_response.rb | 29 +++++++++++++++++-- .../models/metric_ingested_indexed_volume.rb | 29 +++++++++++++++++-- ...tric_ingested_indexed_volume_attributes.rb | 29 +++++++++++++++++-- .../v2/models/metric_metadata.rb | 29 +++++++++++++++++-- .../v2/models/metric_monitor_asset.rb | 29 +++++++++++++++++-- .../v2/models/metric_notebook_asset.rb | 29 +++++++++++++++++-- .../v2/models/metric_origin.rb | 29 +++++++++++++++++-- .../v2/models/metric_payload.rb | 29 +++++++++++++++++-- .../v2/models/metric_point.rb | 29 +++++++++++++++++-- .../v2/models/metric_resource.rb | 29 +++++++++++++++++-- .../v2/models/metric_series.rb | 29 +++++++++++++++++-- .../v2/models/metric_slo_asset.rb | 29 +++++++++++++++++-- .../metric_suggested_tags_and_aggregations.rb | 29 +++++++++++++++++-- ...uggested_tags_and_aggregations_response.rb | 29 +++++++++++++++++-- .../metric_suggested_tags_attributes.rb | 29 +++++++++++++++++-- .../v2/models/metric_tag_configuration.rb | 29 +++++++++++++++++-- .../metric_tag_configuration_attributes.rb | 29 +++++++++++++++++-- ...ric_tag_configuration_create_attributes.rb | 29 +++++++++++++++++-- .../metric_tag_configuration_create_data.rb | 29 +++++++++++++++++-- ...metric_tag_configuration_create_request.rb | 29 +++++++++++++++++-- .../metric_tag_configuration_response.rb | 29 +++++++++++++++++-- ...ric_tag_configuration_update_attributes.rb | 29 +++++++++++++++++-- .../metric_tag_configuration_update_data.rb | 29 +++++++++++++++++-- ...metric_tag_configuration_update_request.rb | 29 +++++++++++++++++-- .../v2/models/metric_volumes_response.rb | 29 +++++++++++++++++-- ..._and_metric_tag_configurations_response.rb | 29 +++++++++++++++++-- .../v2/models/metrics_scalar_query.rb | 29 +++++++++++++++++-- .../v2/models/metrics_timeseries_query.rb | 29 +++++++++++++++++-- ..._config_policy_attribute_create_request.rb | 29 +++++++++++++++++-- ...or_config_policy_attribute_edit_request.rb | 29 +++++++++++++++++-- ...onitor_config_policy_attribute_response.rb | 29 +++++++++++++++++-- .../monitor_config_policy_create_data.rb | 29 +++++++++++++++++-- .../monitor_config_policy_create_request.rb | 29 +++++++++++++++++-- .../models/monitor_config_policy_edit_data.rb | 29 +++++++++++++++++-- .../monitor_config_policy_edit_request.rb | 29 +++++++++++++++++-- .../monitor_config_policy_list_response.rb | 29 +++++++++++++++++-- .../models/monitor_config_policy_response.rb | 29 +++++++++++++++++-- .../monitor_config_policy_response_data.rb | 29 +++++++++++++++++-- .../monitor_config_policy_tag_policy.rb | 29 +++++++++++++++++-- ...config_policy_tag_policy_create_request.rb | 29 +++++++++++++++++-- .../models/monitor_downtime_match_response.rb | 29 +++++++++++++++++-- ...itor_downtime_match_response_attributes.rb | 29 +++++++++++++++++-- .../monitor_downtime_match_response_data.rb | 29 +++++++++++++++++-- .../v2/models/monitor_type.rb | 29 +++++++++++++++++-- .../monthly_cost_attribution_attributes.rb | 29 +++++++++++++++++-- .../models/monthly_cost_attribution_body.rb | 29 +++++++++++++++++-- .../models/monthly_cost_attribution_meta.rb | 29 +++++++++++++++++-- .../monthly_cost_attribution_pagination.rb | 29 +++++++++++++++++-- .../monthly_cost_attribution_response.rb | 29 +++++++++++++++++-- .../models/nullable_relationship_to_user.rb | 29 +++++++++++++++++-- .../nullable_relationship_to_user_data.rb | 29 +++++++++++++++++-- .../v2/models/nullable_user_relationship.rb | 29 +++++++++++++++++-- .../models/nullable_user_relationship_data.rb | 29 +++++++++++++++++-- .../v2/models/okta_account.rb | 29 +++++++++++++++++-- .../v2/models/okta_account_attributes.rb | 29 +++++++++++++++++-- .../v2/models/okta_account_request.rb | 29 +++++++++++++++++-- .../v2/models/okta_account_response.rb | 29 +++++++++++++++++-- .../v2/models/okta_account_response_data.rb | 29 +++++++++++++++++-- .../v2/models/okta_account_update_request.rb | 29 +++++++++++++++++-- .../okta_account_update_request_attributes.rb | 29 +++++++++++++++++-- .../okta_account_update_request_data.rb | 29 +++++++++++++++++-- .../v2/models/okta_accounts_response.rb | 29 +++++++++++++++++-- .../v2/models/on_demand_concurrency_cap.rb | 29 +++++++++++++++++-- .../on_demand_concurrency_cap_attributes.rb | 29 +++++++++++++++++-- .../on_demand_concurrency_cap_response.rb | 29 +++++++++++++++++-- .../v2/models/open_api_endpoint.rb | 29 +++++++++++++++++-- .../v2/models/open_api_file.rb | 29 +++++++++++++++++-- .../opsgenie_service_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/opsgenie_service_create_data.rb | 29 +++++++++++++++++-- .../models/opsgenie_service_create_request.rb | 29 +++++++++++++++++-- .../v2/models/opsgenie_service_response.rb | 29 +++++++++++++++++-- .../opsgenie_service_response_attributes.rb | 29 +++++++++++++++++-- .../models/opsgenie_service_response_data.rb | 29 +++++++++++++++++-- .../opsgenie_service_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/opsgenie_service_update_data.rb | 29 +++++++++++++++++-- .../models/opsgenie_service_update_request.rb | 29 +++++++++++++++++-- .../v2/models/opsgenie_services_response.rb | 29 +++++++++++++++++-- .../v2/models/org_config_get_response.rb | 29 +++++++++++++++++-- .../v2/models/org_config_list_response.rb | 29 +++++++++++++++++-- .../v2/models/org_config_read.rb | 29 +++++++++++++++++-- .../v2/models/org_config_read_attributes.rb | 29 +++++++++++++++++-- .../v2/models/org_config_write.rb | 29 +++++++++++++++++-- .../v2/models/org_config_write_attributes.rb | 29 +++++++++++++++++-- .../v2/models/org_config_write_request.rb | 29 +++++++++++++++++-- .../v2/models/organization.rb | 29 +++++++++++++++++-- .../v2/models/organization_attributes.rb | 29 +++++++++++++++++-- .../v2/models/outcomes_batch_attributes.rb | 29 +++++++++++++++++-- .../v2/models/outcomes_batch_request.rb | 29 +++++++++++++++++-- .../v2/models/outcomes_batch_request_data.rb | 29 +++++++++++++++++-- .../v2/models/outcomes_batch_request_item.rb | 29 +++++++++++++++++-- .../v2/models/outcomes_batch_response.rb | 29 +++++++++++++++++-- .../outcomes_batch_response_attributes.rb | 29 +++++++++++++++++-- .../v2/models/outcomes_batch_response_meta.rb | 29 +++++++++++++++++-- .../v2/models/outcomes_response.rb | 29 +++++++++++++++++-- .../v2/models/outcomes_response_data_item.rb | 29 +++++++++++++++++-- .../models/outcomes_response_included_item.rb | 29 +++++++++++++++++-- ...comes_response_included_rule_attributes.rb | 29 +++++++++++++++++-- .../v2/models/outcomes_response_links.rb | 29 +++++++++++++++++-- .../v2/models/pagination.rb | 29 +++++++++++++++++-- .../v2/models/partial_api_key.rb | 29 +++++++++++++++++-- .../v2/models/partial_api_key_attributes.rb | 29 +++++++++++++++++-- .../v2/models/partial_application_key.rb | 29 +++++++++++++++++-- .../partial_application_key_attributes.rb | 29 +++++++++++++++++-- .../partial_application_key_response.rb | 29 +++++++++++++++++-- .../v2/models/permission.rb | 29 +++++++++++++++++-- .../v2/models/permission_attributes.rb | 29 +++++++++++++++++-- .../v2/models/permissions_response.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/powerpack.rb | 29 +++++++++++++++++-- .../v2/models/powerpack_attributes.rb | 29 +++++++++++++++++-- .../v2/models/powerpack_data.rb | 29 +++++++++++++++++-- .../v2/models/powerpack_group_widget.rb | 29 +++++++++++++++++-- .../powerpack_group_widget_definition.rb | 29 +++++++++++++++++-- .../models/powerpack_group_widget_layout.rb | 29 +++++++++++++++++-- .../models/powerpack_inner_widget_layout.rb | 29 +++++++++++++++++-- .../v2/models/powerpack_inner_widgets.rb | 29 +++++++++++++++++-- .../v2/models/powerpack_relationships.rb | 29 +++++++++++++++++-- .../v2/models/powerpack_response.rb | 29 +++++++++++++++++-- .../v2/models/powerpack_response_links.rb | 29 +++++++++++++++++-- .../v2/models/powerpack_template_variable.rb | 29 +++++++++++++++++-- .../v2/models/powerpacks_response_meta.rb | 29 +++++++++++++++++-- .../powerpacks_response_meta_pagination.rb | 29 +++++++++++++++++-- .../v2/models/process_summaries_meta.rb | 29 +++++++++++++++++-- .../v2/models/process_summaries_meta_page.rb | 29 +++++++++++++++++-- .../v2/models/process_summaries_response.rb | 29 +++++++++++++++++-- .../v2/models/process_summary.rb | 29 +++++++++++++++++-- .../v2/models/process_summary_attributes.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/project.rb | 29 +++++++++++++++++-- .../v2/models/project_attributes.rb | 29 +++++++++++++++++-- .../v2/models/project_create.rb | 29 +++++++++++++++++-- .../v2/models/project_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/project_create_request.rb | 29 +++++++++++++++++-- .../v2/models/project_relationship.rb | 29 +++++++++++++++++-- .../v2/models/project_relationship_data.rb | 29 +++++++++++++++++-- .../v2/models/project_relationships.rb | 29 +++++++++++++++++-- .../v2/models/project_response.rb | 29 +++++++++++++++++-- .../v2/models/projected_cost.rb | 29 +++++++++++++++++-- .../v2/models/projected_cost_attributes.rb | 29 +++++++++++++++++-- .../v2/models/projected_cost_response.rb | 29 +++++++++++++++++-- .../v2/models/projects_response.rb | 29 +++++++++++++++++-- .../v2/models/query_formula.rb | 29 +++++++++++++++++-- .../relationship_to_incident_attachment.rb | 29 +++++++++++++++++-- ...elationship_to_incident_attachment_data.rb | 29 +++++++++++++++++-- .../relationship_to_incident_impact_data.rb | 29 +++++++++++++++++-- .../relationship_to_incident_impacts.rb | 29 +++++++++++++++++-- ...p_to_incident_integration_metadata_data.rb | 29 +++++++++++++++++-- ...nship_to_incident_integration_metadatas.rb | 29 +++++++++++++++++-- .../relationship_to_incident_postmortem.rb | 29 +++++++++++++++++-- ...elationship_to_incident_postmortem_data.rb | 29 +++++++++++++++++-- ...relationship_to_incident_responder_data.rb | 29 +++++++++++++++++-- .../relationship_to_incident_responders.rb | 29 +++++++++++++++++-- ...hip_to_incident_user_defined_field_data.rb | 29 +++++++++++++++++-- ...ionship_to_incident_user_defined_fields.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_organization.rb | 29 +++++++++++++++++-- .../relationship_to_organization_data.rb | 29 +++++++++++++++++-- .../models/relationship_to_organizations.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_outcome.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_outcome_data.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_permission.rb | 29 +++++++++++++++++-- .../models/relationship_to_permission_data.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_permissions.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_role.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_role_data.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_roles.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_rule.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_rule_data.rb | 29 +++++++++++++++++-- .../relationship_to_rule_data_object.rb | 29 +++++++++++++++++-- ...elationship_to_saml_assertion_attribute.rb | 29 +++++++++++++++++-- ...onship_to_saml_assertion_attribute_data.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_team.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_team_data.rb | 29 +++++++++++++++++-- .../models/relationship_to_team_link_data.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_team_links.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_user.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_user_data.rb | 29 +++++++++++++++++-- .../relationship_to_user_team_permission.rb | 29 +++++++++++++++++-- ...lationship_to_user_team_permission_data.rb | 29 +++++++++++++++++-- .../models/relationship_to_user_team_team.rb | 29 +++++++++++++++++-- .../relationship_to_user_team_team_data.rb | 29 +++++++++++++++++-- .../models/relationship_to_user_team_user.rb | 29 +++++++++++++++++-- .../relationship_to_user_team_user_data.rb | 29 +++++++++++++++++-- .../v2/models/relationship_to_users.rb | 29 +++++++++++++++++-- .../reorder_retention_filters_request.rb | 29 +++++++++++++++++-- .../v2/models/response_meta_attributes.rb | 29 +++++++++++++++++-- .../v2/models/restriction_policy.rb | 29 +++++++++++++++++-- .../models/restriction_policy_attributes.rb | 29 +++++++++++++++++-- .../v2/models/restriction_policy_binding.rb | 29 +++++++++++++++++-- .../v2/models/restriction_policy_response.rb | 29 +++++++++++++++++-- .../restriction_policy_update_request.rb | 29 +++++++++++++++++-- .../v2/models/retention_filter.rb | 29 +++++++++++++++++-- .../v2/models/retention_filter_all.rb | 29 +++++++++++++++++-- .../models/retention_filter_all_attributes.rb | 29 +++++++++++++++++-- .../v2/models/retention_filter_attributes.rb | 29 +++++++++++++++++-- .../retention_filter_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/retention_filter_create_data.rb | 29 +++++++++++++++++-- .../models/retention_filter_create_request.rb | 29 +++++++++++++++++-- .../retention_filter_create_response.rb | 29 +++++++++++++++++-- .../v2/models/retention_filter_response.rb | 29 +++++++++++++++++-- .../retention_filter_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/retention_filter_update_data.rb | 29 +++++++++++++++++-- .../models/retention_filter_update_request.rb | 29 +++++++++++++++++-- .../retention_filter_without_attributes.rb | 29 +++++++++++++++++-- .../v2/models/retention_filters_response.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/role.rb | 29 +++++++++++++++++-- .../v2/models/role_attributes.rb | 29 +++++++++++++++++-- .../v2/models/role_clone.rb | 29 +++++++++++++++++-- .../v2/models/role_clone_attributes.rb | 29 +++++++++++++++++-- .../v2/models/role_clone_request.rb | 29 +++++++++++++++++-- .../v2/models/role_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/role_create_data.rb | 29 +++++++++++++++++-- .../v2/models/role_create_request.rb | 29 +++++++++++++++++-- .../v2/models/role_create_response.rb | 29 +++++++++++++++++-- .../v2/models/role_create_response_data.rb | 29 +++++++++++++++++-- .../v2/models/role_relationships.rb | 29 +++++++++++++++++-- .../v2/models/role_response.rb | 29 +++++++++++++++++-- .../v2/models/role_response_relationships.rb | 29 +++++++++++++++++-- .../v2/models/role_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/role_update_data.rb | 29 +++++++++++++++++-- .../v2/models/role_update_request.rb | 29 +++++++++++++++++-- .../v2/models/role_update_response.rb | 29 +++++++++++++++++-- .../v2/models/role_update_response_data.rb | 29 +++++++++++++++++-- .../v2/models/roles_response.rb | 29 +++++++++++++++++-- .../v2/models/rule_attributes.rb | 29 +++++++++++++++++-- .../v2/models/rule_outcome_relationships.rb | 29 +++++++++++++++++-- ...aggregate_bucket_value_timeseries_point.rb | 29 +++++++++++++++++-- .../v2/models/rum_aggregate_request.rb | 29 +++++++++++++++++-- .../v2/models/rum_aggregate_sort.rb | 29 +++++++++++++++++-- .../rum_aggregation_buckets_response.rb | 29 +++++++++++++++++-- .../rum_analytics_aggregate_response.rb | 29 +++++++++++++++++-- .../v2/models/rum_application.rb | 29 +++++++++++++++++-- .../v2/models/rum_application_attributes.rb | 29 +++++++++++++++++-- .../v2/models/rum_application_create.rb | 29 +++++++++++++++++-- .../rum_application_create_attributes.rb | 29 +++++++++++++++++-- .../models/rum_application_create_request.rb | 29 +++++++++++++++++-- .../v2/models/rum_application_list.rb | 29 +++++++++++++++++-- .../models/rum_application_list_attributes.rb | 29 +++++++++++++++++-- .../v2/models/rum_application_response.rb | 29 +++++++++++++++++-- .../v2/models/rum_application_update.rb | 29 +++++++++++++++++-- .../rum_application_update_attributes.rb | 29 +++++++++++++++++-- .../models/rum_application_update_request.rb | 29 +++++++++++++++++-- .../v2/models/rum_applications_response.rb | 29 +++++++++++++++++-- .../v2/models/rum_bucket_response.rb | 29 +++++++++++++++++-- .../v2/models/rum_compute.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/rum_event.rb | 29 +++++++++++++++++-- .../v2/models/rum_event_attributes.rb | 29 +++++++++++++++++-- .../v2/models/rum_events_response.rb | 29 +++++++++++++++++-- .../v2/models/rum_group_by.rb | 29 +++++++++++++++++-- .../v2/models/rum_group_by_histogram.rb | 29 +++++++++++++++++-- .../v2/models/rum_query_filter.rb | 29 +++++++++++++++++-- .../v2/models/rum_query_options.rb | 29 +++++++++++++++++-- .../v2/models/rum_query_page_options.rb | 29 +++++++++++++++++-- .../v2/models/rum_response_links.rb | 29 +++++++++++++++++-- .../v2/models/rum_response_metadata.rb | 29 +++++++++++++++++-- .../v2/models/rum_response_page.rb | 29 +++++++++++++++++-- .../v2/models/rum_search_events_request.rb | 29 +++++++++++++++++-- .../v2/models/rum_warning.rb | 29 +++++++++++++++++-- .../v2/models/saml_assertion_attribute.rb | 29 +++++++++++++++++-- .../saml_assertion_attribute_attributes.rb | 29 +++++++++++++++++-- .../v2/models/scalar_formula_query_request.rb | 29 +++++++++++++++++-- .../models/scalar_formula_query_response.rb | 29 +++++++++++++++++-- .../v2/models/scalar_formula_request.rb | 29 +++++++++++++++++-- .../scalar_formula_request_attributes.rb | 29 +++++++++++++++++-- .../scalar_formula_response_atrributes.rb | 29 +++++++++++++++++-- .../v2/models/scalar_meta.rb | 29 +++++++++++++++++-- .../v2/models/scalar_response.rb | 29 +++++++++++++++++-- .../v2/models/security_filter.rb | 29 +++++++++++++++++-- .../v2/models/security_filter_attributes.rb | 29 +++++++++++++++++-- .../security_filter_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/security_filter_create_data.rb | 29 +++++++++++++++++-- .../models/security_filter_create_request.rb | 29 +++++++++++++++++-- .../security_filter_exclusion_filter.rb | 29 +++++++++++++++++-- ...curity_filter_exclusion_filter_response.rb | 29 +++++++++++++++++-- .../v2/models/security_filter_meta.rb | 29 +++++++++++++++++-- .../v2/models/security_filter_response.rb | 29 +++++++++++++++++-- .../security_filter_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/security_filter_update_data.rb | 29 +++++++++++++++++-- .../models/security_filter_update_request.rb | 29 +++++++++++++++++-- .../v2/models/security_filters_response.rb | 29 +++++++++++++++++-- .../v2/models/security_monitoring_filter.rb | 29 +++++++++++++++++-- ...security_monitoring_list_rules_response.rb | 29 +++++++++++++++++-- .../models/security_monitoring_rule_case.rb | 29 +++++++++++++++++-- .../security_monitoring_rule_case_create.rb | 29 +++++++++++++++++-- ...curity_monitoring_rule_convert_response.rb | 29 +++++++++++++++++-- ...nitoring_rule_impossible_travel_options.rb | 29 +++++++++++++++++-- ...urity_monitoring_rule_new_value_options.rb | 29 +++++++++++++++++-- .../security_monitoring_rule_options.rb | 29 +++++++++++++++++-- .../security_monitoring_rule_query_payload.rb | 29 +++++++++++++++++-- ...rity_monitoring_rule_query_payload_data.rb | 29 +++++++++++++++++-- .../security_monitoring_rule_test_request.rb | 29 +++++++++++++++++-- .../security_monitoring_rule_test_response.rb | 29 +++++++++++++++++-- ...ity_monitoring_rule_third_party_options.rb | 29 +++++++++++++++++-- ...security_monitoring_rule_update_payload.rb | 29 +++++++++++++++++-- .../v2/models/security_monitoring_signal.rb | 29 +++++++++++++++++-- ...oring_signal_assignee_update_attributes.rb | 29 +++++++++++++++++-- ..._monitoring_signal_assignee_update_data.rb | 29 +++++++++++++++++-- ...nitoring_signal_assignee_update_request.rb | 29 +++++++++++++++++-- .../security_monitoring_signal_attributes.rb | 29 +++++++++++++++++-- ...ring_signal_incidents_update_attributes.rb | 29 +++++++++++++++++-- ...monitoring_signal_incidents_update_data.rb | 29 +++++++++++++++++-- ...itoring_signal_incidents_update_request.rb | 29 +++++++++++++++++-- ...security_monitoring_signal_list_request.rb | 29 +++++++++++++++++-- ...y_monitoring_signal_list_request_filter.rb | 29 +++++++++++++++++-- ...ity_monitoring_signal_list_request_page.rb | 29 +++++++++++++++++-- .../security_monitoring_signal_response.rb | 29 +++++++++++++++++-- ...y_monitoring_signal_rule_create_payload.rb | 29 +++++++++++++++++-- ...security_monitoring_signal_rule_payload.rb | 29 +++++++++++++++++-- .../security_monitoring_signal_rule_query.rb | 29 +++++++++++++++++-- ...ecurity_monitoring_signal_rule_response.rb | 29 +++++++++++++++++-- ...y_monitoring_signal_rule_response_query.rb | 29 +++++++++++++++++-- ...nitoring_signal_state_update_attributes.rb | 29 +++++++++++++++++-- ...ity_monitoring_signal_state_update_data.rb | 29 +++++++++++++++++-- ..._monitoring_signal_state_update_request.rb | 29 +++++++++++++++++-- ...ity_monitoring_signal_triage_attributes.rb | 29 +++++++++++++++++-- ...ty_monitoring_signal_triage_update_data.rb | 29 +++++++++++++++++-- ...onitoring_signal_triage_update_response.rb | 29 +++++++++++++++++-- ...curity_monitoring_signals_list_response.rb | 29 +++++++++++++++++-- ..._monitoring_signals_list_response_links.rb | 29 +++++++++++++++++-- ...y_monitoring_signals_list_response_meta.rb | 29 +++++++++++++++++-- ...itoring_signals_list_response_meta_page.rb | 29 +++++++++++++++++-- ...monitoring_standard_rule_create_payload.rb | 29 +++++++++++++++++-- ...curity_monitoring_standard_rule_payload.rb | 29 +++++++++++++++++-- ...security_monitoring_standard_rule_query.rb | 29 +++++++++++++++++-- ...urity_monitoring_standard_rule_response.rb | 29 +++++++++++++++++-- ...y_monitoring_standard_rule_test_payload.rb | 29 +++++++++++++++++-- .../models/security_monitoring_suppression.rb | 29 +++++++++++++++++-- ...urity_monitoring_suppression_attributes.rb | 29 +++++++++++++++++-- ...onitoring_suppression_create_attributes.rb | 29 +++++++++++++++++-- ...rity_monitoring_suppression_create_data.rb | 29 +++++++++++++++++-- ...y_monitoring_suppression_create_request.rb | 29 +++++++++++++++++-- ...ecurity_monitoring_suppression_response.rb | 29 +++++++++++++++++-- ...onitoring_suppression_update_attributes.rb | 29 +++++++++++++++++-- ...rity_monitoring_suppression_update_data.rb | 29 +++++++++++++++++-- ...y_monitoring_suppression_update_request.rb | 29 +++++++++++++++++-- ...curity_monitoring_suppressions_response.rb | 29 +++++++++++++++++-- ...urity_monitoring_third_party_root_query.rb | 29 +++++++++++++++++-- ...curity_monitoring_third_party_rule_case.rb | 29 +++++++++++++++++-- ...monitoring_third_party_rule_case_create.rb | 29 +++++++++++++++++-- .../models/security_monitoring_triage_user.rb | 29 +++++++++++++++++-- .../v2/models/security_monitoring_user.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_config_request.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_configuration.rb | 29 +++++++++++++++++-- ...nsitive_data_scanner_configuration_data.rb | 29 +++++++++++++++++-- ...ata_scanner_configuration_relationships.rb | 29 +++++++++++++++++-- ...tive_data_scanner_create_group_response.rb | 29 +++++++++++++++++-- ...itive_data_scanner_create_rule_response.rb | 29 +++++++++++++++++-- .../models/sensitive_data_scanner_filter.rb | 29 +++++++++++++++++-- ...sitive_data_scanner_get_config_response.rb | 29 +++++++++++++++++-- ...e_data_scanner_get_config_response_data.rb | 29 +++++++++++++++++-- .../v2/models/sensitive_data_scanner_group.rb | 29 +++++++++++++++++-- ...sensitive_data_scanner_group_attributes.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_group_create.rb | 29 +++++++++++++++++-- ...itive_data_scanner_group_create_request.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_group_data.rb | 29 +++++++++++++++++-- ...itive_data_scanner_group_delete_request.rb | 29 +++++++++++++++++-- ...tive_data_scanner_group_delete_response.rb | 29 +++++++++++++++++-- ...sitive_data_scanner_group_included_item.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_group_item.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_group_list.rb | 29 +++++++++++++++++-- ...sitive_data_scanner_group_relationships.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_group_response.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_group_update.rb | 29 +++++++++++++++++-- ...itive_data_scanner_group_update_request.rb | 29 +++++++++++++++++-- ...tive_data_scanner_group_update_response.rb | 29 +++++++++++++++++-- ..._scanner_included_keyword_configuration.rb | 29 +++++++++++++++++-- .../v2/models/sensitive_data_scanner_meta.rb | 29 +++++++++++++++++-- ...ensitive_data_scanner_meta_version_only.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_reorder_config.rb | 29 +++++++++++++++++-- ...ve_data_scanner_reorder_groups_response.rb | 29 +++++++++++++++++-- .../v2/models/sensitive_data_scanner_rule.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_rule_attributes.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_rule_create.rb | 29 +++++++++++++++++-- ...sitive_data_scanner_rule_create_request.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_rule_data.rb | 29 +++++++++++++++++-- ...sitive_data_scanner_rule_delete_request.rb | 29 +++++++++++++++++-- ...itive_data_scanner_rule_delete_response.rb | 29 +++++++++++++++++-- ...nsitive_data_scanner_rule_included_item.rb | 29 +++++++++++++++++-- ...nsitive_data_scanner_rule_relationships.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_rule_response.rb | 29 +++++++++++++++++-- .../sensitive_data_scanner_rule_update.rb | 29 +++++++++++++++++-- ...sitive_data_scanner_rule_update_request.rb | 29 +++++++++++++++++-- ...itive_data_scanner_rule_update_response.rb | 29 +++++++++++++++++-- ...sensitive_data_scanner_standard_pattern.rb | 29 +++++++++++++++++-- ...ata_scanner_standard_pattern_attributes.rb | 29 +++++++++++++++++-- ...tive_data_scanner_standard_pattern_data.rb | 29 +++++++++++++++++-- ...scanner_standard_patterns_response_data.rb | 29 +++++++++++++++++-- ...scanner_standard_patterns_response_item.rb | 29 +++++++++++++++++-- ...sensitive_data_scanner_text_replacement.rb | 29 +++++++++++++++++-- .../service_account_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/service_account_create_data.rb | 29 +++++++++++++++++-- .../models/service_account_create_request.rb | 29 +++++++++++++++++-- .../service_definition_create_response.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_data.rb | 29 +++++++++++++++++-- .../service_definition_data_attributes.rb | 29 +++++++++++++++++-- .../models/service_definition_get_response.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_meta.rb | 29 +++++++++++++++++-- .../service_definition_meta_warnings.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v1.rb | 29 +++++++++++++++++-- .../models/service_definition_v1_contact.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v1_info.rb | 29 +++++++++++++++++-- .../service_definition_v1_integrations.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v1_org.rb | 29 +++++++++++++++++-- .../models/service_definition_v1_resource.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v2.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v2_doc.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v2_dot1.rb | 29 +++++++++++++++++-- .../service_definition_v2_dot1_email.rb | 29 +++++++++++++++++-- ...service_definition_v2_dot1_integrations.rb | 29 +++++++++++++++++-- .../models/service_definition_v2_dot1_link.rb | 29 +++++++++++++++++-- .../service_definition_v2_dot1_ms_teams.rb | 29 +++++++++++++++++-- .../service_definition_v2_dot1_opsgenie.rb | 29 +++++++++++++++++-- .../service_definition_v2_dot1_pagerduty.rb | 29 +++++++++++++++++-- .../service_definition_v2_dot1_slack.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v2_dot2.rb | 29 +++++++++++++++++-- .../service_definition_v2_dot2_contact.rb | 29 +++++++++++++++++-- ...service_definition_v2_dot2_integrations.rb | 29 +++++++++++++++++-- .../models/service_definition_v2_dot2_link.rb | 29 +++++++++++++++++-- .../service_definition_v2_dot2_opsgenie.rb | 29 +++++++++++++++++-- .../service_definition_v2_dot2_pagerduty.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v2_email.rb | 29 +++++++++++++++++-- .../service_definition_v2_integrations.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v2_link.rb | 29 +++++++++++++++++-- .../models/service_definition_v2_ms_teams.rb | 29 +++++++++++++++++-- .../models/service_definition_v2_opsgenie.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v2_repo.rb | 29 +++++++++++++++++-- .../v2/models/service_definition_v2_slack.rb | 29 +++++++++++++++++-- .../service_definitions_list_response.rb | 29 +++++++++++++++++-- .../v2/models/service_now_ticket.rb | 29 +++++++++++++++++-- .../v2/models/service_now_ticket_result.rb | 29 +++++++++++++++++-- .../v2/models/slack_integration_metadata.rb | 29 +++++++++++++++++-- ...slack_integration_metadata_channel_item.rb | 29 +++++++++++++++++-- .../v2/models/slo_report_create_request.rb | 29 +++++++++++++++++-- .../slo_report_create_request_attributes.rb | 29 +++++++++++++++++-- .../models/slo_report_create_request_data.rb | 29 +++++++++++++++++-- .../v2/models/slo_report_post_response.rb | 29 +++++++++++++++++-- .../models/slo_report_post_response_data.rb | 29 +++++++++++++++++-- .../models/slo_report_status_get_response.rb | 29 +++++++++++++++++-- ...o_report_status_get_response_attributes.rb | 29 +++++++++++++++++-- .../slo_report_status_get_response_data.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/span.rb | 29 +++++++++++++++++-- .../v2/models/spans_aggregate_bucket.rb | 29 +++++++++++++++++-- .../spans_aggregate_bucket_attributes.rb | 29 +++++++++++++++++-- ...aggregate_bucket_value_timeseries_point.rb | 29 +++++++++++++++++-- .../v2/models/spans_aggregate_data.rb | 29 +++++++++++++++++-- .../v2/models/spans_aggregate_request.rb | 29 +++++++++++++++++-- .../spans_aggregate_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/spans_aggregate_response.rb | 29 +++++++++++++++++-- .../spans_aggregate_response_metadata.rb | 29 +++++++++++++++++-- .../v2/models/spans_aggregate_sort.rb | 29 +++++++++++++++++-- .../v2/models/spans_attributes.rb | 29 +++++++++++++++++-- .../v2/models/spans_compute.rb | 29 +++++++++++++++++-- .../v2/models/spans_filter.rb | 29 +++++++++++++++++-- .../v2/models/spans_filter_create.rb | 29 +++++++++++++++++-- .../v2/models/spans_group_by.rb | 29 +++++++++++++++++-- .../v2/models/spans_group_by_histogram.rb | 29 +++++++++++++++++-- .../v2/models/spans_list_request.rb | 29 +++++++++++++++++-- .../models/spans_list_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/spans_list_request_data.rb | 29 +++++++++++++++++-- .../v2/models/spans_list_request_page.rb | 29 +++++++++++++++++-- .../v2/models/spans_list_response.rb | 29 +++++++++++++++++-- .../v2/models/spans_list_response_links.rb | 29 +++++++++++++++++-- .../v2/models/spans_list_response_metadata.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_compute.rb | 29 +++++++++++++++++-- .../models/spans_metric_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_create_data.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_create_request.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_filter.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_group_by.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_response.rb | 29 +++++++++++++++++-- .../spans_metric_response_attributes.rb | 29 +++++++++++++++++-- .../models/spans_metric_response_compute.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_response_data.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_response_filter.rb | 29 +++++++++++++++++-- .../models/spans_metric_response_group_by.rb | 29 +++++++++++++++++-- .../models/spans_metric_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_update_compute.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_update_data.rb | 29 +++++++++++++++++-- .../v2/models/spans_metric_update_request.rb | 29 +++++++++++++++++-- .../v2/models/spans_metrics_response.rb | 29 +++++++++++++++++-- .../v2/models/spans_query_filter.rb | 29 +++++++++++++++++-- .../v2/models/spans_query_options.rb | 29 +++++++++++++++++-- .../v2/models/spans_response_metadata_page.rb | 29 +++++++++++++++++-- .../v2/models/spans_warning.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/team.rb | 29 +++++++++++++++++-- .../v2/models/team_attributes.rb | 29 +++++++++++++++++-- .../v2/models/team_create.rb | 29 +++++++++++++++++-- .../v2/models/team_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/team_create_relationships.rb | 29 +++++++++++++++++-- .../v2/models/team_create_request.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/team_link.rb | 29 +++++++++++++++++-- .../v2/models/team_link_attributes.rb | 29 +++++++++++++++++-- .../v2/models/team_link_create.rb | 29 +++++++++++++++++-- .../v2/models/team_link_create_request.rb | 29 +++++++++++++++++-- .../v2/models/team_link_response.rb | 29 +++++++++++++++++-- .../v2/models/team_links_response.rb | 29 +++++++++++++++++-- .../v2/models/team_permission_setting.rb | 29 +++++++++++++++++-- .../team_permission_setting_attributes.rb | 29 +++++++++++++++++-- .../team_permission_setting_response.rb | 29 +++++++++++++++++-- .../models/team_permission_setting_update.rb | 29 +++++++++++++++++-- ...am_permission_setting_update_attributes.rb | 29 +++++++++++++++++-- .../team_permission_setting_update_request.rb | 29 +++++++++++++++++-- .../team_permission_settings_response.rb | 29 +++++++++++++++++-- .../v2/models/team_relationships.rb | 29 +++++++++++++++++-- .../v2/models/team_relationships_links.rb | 29 +++++++++++++++++-- .../v2/models/team_response.rb | 29 +++++++++++++++++-- .../v2/models/team_update.rb | 29 +++++++++++++++++-- .../v2/models/team_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/team_update_relationships.rb | 29 +++++++++++++++++-- .../v2/models/team_update_request.rb | 29 +++++++++++++++++-- .../v2/models/teams_response.rb | 29 +++++++++++++++++-- .../v2/models/teams_response_links.rb | 29 +++++++++++++++++-- .../v2/models/teams_response_meta.rb | 29 +++++++++++++++++-- .../models/teams_response_meta_pagination.rb | 29 +++++++++++++++++-- .../timeseries_formula_query_request.rb | 29 +++++++++++++++++-- .../timeseries_formula_query_response.rb | 29 +++++++++++++++++-- .../v2/models/timeseries_formula_request.rb | 29 +++++++++++++++++-- .../timeseries_formula_request_attributes.rb | 29 +++++++++++++++++-- .../v2/models/timeseries_response.rb | 29 +++++++++++++++++-- .../models/timeseries_response_attributes.rb | 29 +++++++++++++++++-- .../v2/models/timeseries_response_series.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/unit.rb | 29 +++++++++++++++++-- .../v2/models/update_open_api_response.rb | 29 +++++++++++++++++-- .../update_open_api_response_attributes.rb | 29 +++++++++++++++++-- .../models/update_open_api_response_data.rb | 29 +++++++++++++++++-- .../v2/models/update_rule_request.rb | 29 +++++++++++++++++-- .../v2/models/update_rule_request_data.rb | 29 +++++++++++++++++-- .../v2/models/update_rule_response.rb | 29 +++++++++++++++++-- .../v2/models/update_rule_response_data.rb | 29 +++++++++++++++++-- ...pplication_security_monitoring_response.rb | 29 +++++++++++++++++-- .../v2/models/usage_attributes_object.rb | 29 +++++++++++++++++-- .../v2/models/usage_data_object.rb | 29 +++++++++++++++++-- ...sage_lambda_traced_invocations_response.rb | 29 +++++++++++++++++-- .../usage_observability_pipelines_response.rb | 29 +++++++++++++++++-- .../v2/models/usage_time_series_object.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/user.rb | 29 +++++++++++++++++-- .../v2/models/user_attributes.rb | 29 +++++++++++++++++-- .../v2/models/user_create_attributes.rb | 29 +++++++++++++++++-- .../v2/models/user_create_data.rb | 29 +++++++++++++++++-- .../v2/models/user_create_request.rb | 29 +++++++++++++++++-- .../v2/models/user_invitation_data.rb | 29 +++++++++++++++++-- .../models/user_invitation_data_attributes.rb | 29 +++++++++++++++++-- .../models/user_invitation_relationships.rb | 29 +++++++++++++++++-- .../v2/models/user_invitation_response.rb | 29 +++++++++++++++++-- .../models/user_invitation_response_data.rb | 29 +++++++++++++++++-- .../v2/models/user_invitations_request.rb | 29 +++++++++++++++++-- .../v2/models/user_invitations_response.rb | 29 +++++++++++++++++-- .../v2/models/user_relationship_data.rb | 29 +++++++++++++++++-- .../v2/models/user_relationships.rb | 29 +++++++++++++++++-- .../v2/models/user_response.rb | 29 +++++++++++++++++-- .../v2/models/user_response_relationships.rb | 29 +++++++++++++++++-- lib/datadog_api_client/v2/models/user_team.rb | 29 +++++++++++++++++-- .../v2/models/user_team_attributes.rb | 29 +++++++++++++++++-- .../v2/models/user_team_create.rb | 29 +++++++++++++++++-- .../v2/models/user_team_permission.rb | 29 +++++++++++++++++-- .../models/user_team_permission_attributes.rb | 29 +++++++++++++++++-- .../v2/models/user_team_relationships.rb | 29 +++++++++++++++++-- .../v2/models/user_team_request.rb | 29 +++++++++++++++++-- .../v2/models/user_team_response.rb | 29 +++++++++++++++++-- .../v2/models/user_team_update.rb | 29 +++++++++++++++++-- .../v2/models/user_team_update_request.rb | 29 +++++++++++++++++-- .../v2/models/user_teams_response.rb | 29 +++++++++++++++++-- .../v2/models/user_update_attributes.rb | 29 +++++++++++++++++-- .../v2/models/user_update_data.rb | 29 +++++++++++++++++-- .../v2/models/user_update_request.rb | 29 +++++++++++++++++-- .../v2/models/users_relationship.rb | 29 +++++++++++++++++-- .../v2/models/users_response.rb | 29 +++++++++++++++++-- .../models/workflow_instance_create_meta.rb | 29 +++++++++++++++++-- .../workflow_instance_create_request.rb | 29 +++++++++++++++++-- .../workflow_instance_create_response.rb | 29 +++++++++++++++++-- .../workflow_instance_create_response_data.rb | 29 +++++++++++++++++-- .../v2/models/workflow_instance_list_item.rb | 29 +++++++++++++++++-- .../workflow_list_instances_response.rb | 29 +++++++++++++++++-- .../workflow_list_instances_response_meta.rb | 29 +++++++++++++++++-- ...kflow_list_instances_response_meta_page.rb | 29 +++++++++++++++++-- .../worklflow_cancel_instance_response.rb | 29 +++++++++++++++++-- ...worklflow_cancel_instance_response_data.rb | 29 +++++++++++++++++-- .../models/worklflow_get_instance_response.rb | 29 +++++++++++++++++-- .../worklflow_get_instance_response_data.rb | 29 +++++++++++++++++-- ...w_get_instance_response_data_attributes.rb | 29 +++++++++++++++++-- 1781 files changed, 48042 insertions(+), 3563 deletions(-) diff --git a/.generator/src/generator/formatter.py b/.generator/src/generator/formatter.py index d4b9233e9dd2..6bd73f03ab63 100644 --- a/.generator/src/generator/formatter.py +++ b/.generator/src/generator/formatter.py @@ -333,6 +333,9 @@ def format_data_with_schema_dict( missing = required_properties - set(data.keys()) if missing: raise ValueError(f"missing required properties: {missing}") + additionalProperties = set(data.keys()) - set(schema["properties"].keys()) + if schema.get("additionalProperties") == False and additionalProperties: + raise ValueError(f"additional properties not allowed: {additionalProperties}") for k, v in data.items(): if k not in schema["properties"]: diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 53b2922ffcf8..5782c91dd63a 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -23,7 +23,8 @@ attr_accessor :{{ attr|attribute_name }} {%- endif %} {%- endfor %} -{%- if model.get("additionalProperties") %} +{%- set additionalProperties = model.get("additionalProperties") %} +{%- if additionalProperties is not false %} attr_accessor :additional_properties {%- endif %} @@ -71,13 +72,13 @@ fail ArgumentError, "The input argument (attributes) must be a hash in `{{ module_name }}::{{ version|upper }}::{{ name }}` initialize method" end {# preserve blank line #} -{%- if model.get("additionalProperties") %} +{%- if additionalProperties is not false %} self.additional_properties = {} {%- endif %} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) -{%- if model.get("additionalProperties") %} +{%- if additionalProperties is not false %} self.additional_properties[k.to_sym] = v else h[k.to_sym] = v @@ -240,7 +241,7 @@ end {%- endif %} {%- endfor %} -{%- if model.get("additionalProperties") %} +{%- if additionalProperties is not false %} # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash @@ -272,7 +273,7 @@ {%- for attr in model.properties %} {{ attr|attribute_name }} == o.{{ attr|attribute_name }}{% if not loop.last or model.get("additionalProperties") %} &&{% endif %} {%- endfor %} -{%- if model.get("additionalProperties") %} +{%- if additionalProperties is not false %} additional_properties == o.additional_properties {%- endif %} end diff --git a/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb b/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb index edbe6730e2ef..108fa967c560 100644 --- a/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb +++ b/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb @@ -30,6 +30,8 @@ class AddSignalToIncidentRequest # Version of the updated signal. If server side version is higher, update will be rejected. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AddSignalToIncidentRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AddSignalToIncidentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'add_to_signal_timeline') @@ -97,6 +101,26 @@ def incident_id=(incident_id) @incident_id = incident_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) add_to_signal_timeline == o.add_to_signal_timeline && incident_id == o.incident_id && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb b/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb index bda9bdbf6f79..e009b3dd440a 100644 --- a/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb @@ -42,6 +42,8 @@ class AlertGraphWidgetDefinition # Whether to display the Alert Graph as a timeseries or a top list. attr_reader :viz_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AlertGraphWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AlertGraphWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'alert_id') @@ -155,6 +159,26 @@ def viz_type=(viz_type) @viz_type = viz_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,6 +192,7 @@ def ==(o) title_size == o.title_size && type == o.type && viz_type == o.viz_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb b/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb index b77710ad7a3d..60ab2fc33b67 100644 --- a/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb @@ -45,6 +45,8 @@ class AlertValueWidgetDefinition # Unit to display with the value. attr_accessor :unit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AlertValueWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AlertValueWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'alert_id') @@ -153,6 +157,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -167,6 +191,7 @@ def ==(o) title_size == o.title_size && type == o.type && unit == o.unit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/api_error_response.rb b/lib/datadog_api_client/v1/models/api_error_response.rb index 13a7281fad86..fef860614fc4 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -24,6 +24,8 @@ class APIErrorResponse # Array of errors returned by the API. attr_reader :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::APIErrorResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::APIErrorResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'errors') @@ -81,6 +85,26 @@ def errors=(errors) @errors = errors end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index 4ed73cf47e94..c1eda2c40345 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -33,6 +33,8 @@ class ApiKey # Name of your API key. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApiKey` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ApiKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created') @@ -110,6 +114,26 @@ def key=(key) @key = key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -120,6 +144,7 @@ def ==(o) created_by == o.created_by && key == o.key && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/api_key_list_response.rb b/lib/datadog_api_client/v1/models/api_key_list_response.rb index 460437168e5c..10c7034e51fc 100644 --- a/lib/datadog_api_client/v1/models/api_key_list_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_list_response.rb @@ -24,6 +24,8 @@ class ApiKeyListResponse # Array of API keys. attr_accessor :api_keys + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApiKeyListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ApiKeyListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_keys') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && api_keys == o.api_keys + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/api_key_response.rb b/lib/datadog_api_client/v1/models/api_key_response.rb index ac64769eddc2..e380a200d36f 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -24,6 +24,8 @@ class ApiKeyResponse # Datadog API key. attr_accessor :api_key + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApiKeyResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ApiKeyResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && api_key == o.api_key + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb b/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb index d1da7fbfff53..9d05bcadd665 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb @@ -33,6 +33,8 @@ class ApmStatsQueryColumnType # Widget sorting methods. attr_accessor :order + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApmStatsQueryColumnType` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ApmStatsQueryColumnType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_alias') @@ -106,6 +110,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) cell_display_mode == o.cell_display_mode && name == o.name && order == o.order + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb b/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb index 6128affd70bd..98827cc38573 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb @@ -42,6 +42,8 @@ class ApmStatsQueryDefinition # Service name. attr_reader :service + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApmStatsQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ApmStatsQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'columns') @@ -179,6 +183,26 @@ def service=(service) @service = service end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -192,6 +216,7 @@ def ==(o) resource == o.resource && row_type == o.row_type && service == o.service + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index ed3c0d02d531..21b4ea6ad39a 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -30,6 +30,8 @@ class ApplicationKey # Owner of an application key. attr_accessor :owner + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApplicationKey` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ApplicationKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_hash') @@ -101,6 +105,26 @@ def _hash=(_hash) @_hash = _hash end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) _hash == o._hash && name == o.name && owner == o.owner + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/application_key_list_response.rb b/lib/datadog_api_client/v1/models/application_key_list_response.rb index f89dff3a279f..af5706c0ea78 100644 --- a/lib/datadog_api_client/v1/models/application_key_list_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_list_response.rb @@ -24,6 +24,8 @@ class ApplicationKeyListResponse # Array of application keys. attr_accessor :application_keys + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApplicationKeyListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ApplicationKeyListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'application_keys') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && application_keys == o.application_keys + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/application_key_response.rb b/lib/datadog_api_client/v1/models/application_key_response.rb index 870b8d1cd392..821573536e2a 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -24,6 +24,8 @@ class ApplicationKeyResponse # An application key with its associated metadata. attr_accessor :application_key + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApplicationKeyResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ApplicationKeyResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'application_key') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && application_key == o.application_key + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/authentication_validation_response.rb b/lib/datadog_api_client/v1/models/authentication_validation_response.rb index 87f4f36c7c83..0baa0db35e6f 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -24,6 +24,8 @@ class AuthenticationValidationResponse # Return `true` if the authentication response is valid. attr_accessor :valid + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AuthenticationValidationResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AuthenticationValidationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'valid') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && valid == o.valid + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index 7a5f9030e49a..7d965eab6627 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -66,6 +66,8 @@ class AWSAccount # Your AWS secret access key. Only required if your AWS account is a GovCloud or China account. attr_accessor :secret_access_key + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -112,12 +114,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccount` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'access_key_id') @@ -175,6 +179,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -193,6 +217,7 @@ def ==(o) resource_collection_enabled == o.resource_collection_enabled && role_name == o.role_name && secret_access_key == o.secret_access_key + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb b/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb index 8b2784aebbea..f3933795f22c 100644 --- a/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb +++ b/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb @@ -27,6 +27,8 @@ class AWSAccountAndLambdaRequest # ARN of the Datadog Lambda created during the Datadog-Amazon Web services Log collection setup. attr_reader :lambda_arn + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountAndLambdaRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSAccountAndLambdaRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -99,6 +103,26 @@ def lambda_arn=(lambda_arn) @lambda_arn = lambda_arn end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && account_id == o.account_id && lambda_arn == o.lambda_arn + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_account_create_response.rb b/lib/datadog_api_client/v1/models/aws_account_create_response.rb index 7155d10004a5..c741aa3f62e0 100644 --- a/lib/datadog_api_client/v1/models/aws_account_create_response.rb +++ b/lib/datadog_api_client/v1/models/aws_account_create_response.rb @@ -24,6 +24,8 @@ class AWSAccountCreateResponse # AWS external_id. attr_accessor :external_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountCreateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSAccountCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'external_id') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && external_id == o.external_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_account_delete_request.rb b/lib/datadog_api_client/v1/models/aws_account_delete_request.rb index 345b8ac4bfcb..f5498bd75406 100644 --- a/lib/datadog_api_client/v1/models/aws_account_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_account_delete_request.rb @@ -30,6 +30,8 @@ class AWSAccountDeleteRequest # Your Datadog role delegation name. attr_accessor :role_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountDeleteRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSAccountDeleteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'access_key_id') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) access_key_id == o.access_key_id && account_id == o.account_id && role_name == o.role_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_account_list_response.rb b/lib/datadog_api_client/v1/models/aws_account_list_response.rb index 9176d3a65a1f..60f4637d1b23 100644 --- a/lib/datadog_api_client/v1/models/aws_account_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_account_list_response.rb @@ -24,6 +24,8 @@ class AWSAccountListResponse # List of enabled AWS accounts. attr_accessor :accounts + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSAccountListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'accounts') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && accounts == o.accounts + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb index 98687ba9075d..104249c6d615 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb @@ -31,6 +31,8 @@ class AWSEventBridgeAccountConfiguration # and metrics reporting through the main AWS integration. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSEventBridgeAccountConfiguration` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSEventBridgeAccountConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -84,6 +88,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -93,6 +117,7 @@ def ==(o) account_id == o.account_id && event_hubs == o.event_hubs && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb index 1028ba578602..a7c5a97ec17b 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb @@ -35,6 +35,8 @@ class AWSEventBridgeCreateRequest # The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). attr_accessor :region + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -65,12 +67,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSEventBridgeCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSEventBridgeCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -90,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -100,6 +124,7 @@ def ==(o) create_event_bus == o.create_event_bus && event_generator_name == o.event_generator_name && region == o.region + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb index 911398838455..8db98d22f3d0 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb @@ -33,6 +33,8 @@ class AWSEventBridgeCreateResponse # The event source status "created". attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSEventBridgeCreateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSEventBridgeCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'event_source_name') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) has_bus == o.has_bus && region == o.region && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb index 98c80eefcdde..3728a892a176 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb @@ -30,6 +30,8 @@ class AWSEventBridgeDeleteRequest # The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). attr_accessor :region + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSEventBridgeDeleteRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSEventBridgeDeleteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) account_id == o.account_id && event_generator_name == o.event_generator_name && region == o.region + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb index 067666b663cb..28202c33ecf7 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb @@ -24,6 +24,8 @@ class AWSEventBridgeDeleteResponse # The event source status "empty". attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSEventBridgeDeleteResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSEventBridgeDeleteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'status') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb index ebd060be9b3b..705edb4c795f 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb @@ -27,6 +27,8 @@ class AWSEventBridgeListResponse # True if the EventBridge sub-integration is enabled for your organization. attr_accessor :is_installed + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSEventBridgeListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSEventBridgeListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'accounts') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && accounts == o.accounts && is_installed == o.is_installed + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb index 3f9698dfa2d2..8c7a2d031ec6 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb @@ -27,6 +27,8 @@ class AWSEventBridgeSource # The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). attr_accessor :region + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSEventBridgeSource` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSEventBridgeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && name == o.name && region == o.region + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_logs_async_error.rb b/lib/datadog_api_client/v1/models/aws_logs_async_error.rb index 791c7f192f78..19c080766b0f 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_async_error.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_async_error.rb @@ -27,6 +27,8 @@ class AWSLogsAsyncError # Message content. attr_accessor :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsAsyncError` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSLogsAsyncError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && code == o.code && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_logs_async_response.rb b/lib/datadog_api_client/v1/models/aws_logs_async_response.rb index 7267522ed92c..0b865db0dbb4 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_async_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_async_response.rb @@ -27,6 +27,8 @@ class AWSLogsAsyncResponse # Status of the properties. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsAsyncResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSLogsAsyncResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'errors') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && errors == o.errors && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb index 68c7198081b3..4f05c96e1d4c 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -24,6 +24,8 @@ class AWSLogsLambda # Available ARN IDs. attr_accessor :arn + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsLambda` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSLogsLambda`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'arn') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && arn == o.arn + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_logs_list_response.rb b/lib/datadog_api_client/v1/models/aws_logs_list_response.rb index 1f93b0ec3560..608a1baee641 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_list_response.rb @@ -30,6 +30,8 @@ class AWSLogsListResponse # Array of services IDs. attr_accessor :services + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSLogsListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -83,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -92,6 +116,7 @@ def ==(o) account_id == o.account_id && lambdas == o.lambdas && services == o.services + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb b/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb index aee0c59aaa69..912c94a5b2bb 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb @@ -27,6 +27,8 @@ class AWSLogsListServicesResponse # Name of service available for configuration with Datadog logs. attr_accessor :label + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsListServicesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSLogsListServicesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && label == o.label + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_logs_services_request.rb b/lib/datadog_api_client/v1/models/aws_logs_services_request.rb index e4d6ce80574b..0dee77c43f2b 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_services_request.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_services_request.rb @@ -27,6 +27,8 @@ class AWSLogsServicesRequest # Array of services IDs set to enable automatic log collection. Discover the list of available services with the get list of AWS log ready services API endpoint. attr_reader :services + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsServicesRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSLogsServicesRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -101,6 +105,26 @@ def services=(services) @services = services end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -109,6 +133,7 @@ def ==(o) self.class == o.class && account_id == o.account_id && services == o.services + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter.rb b/lib/datadog_api_client/v1/models/aws_tag_filter.rb index 2e4328dfc1dc..727db1e7edd9 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -27,6 +27,8 @@ class AWSTagFilter # The tag filter string. attr_accessor :tag_filter_str + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSTagFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'namespace') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && namespace == o.namespace && tag_filter_str == o.tag_filter_str + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb index 1c45126542d0..213973762323 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb @@ -30,6 +30,8 @@ class AWSTagFilterCreateRequest # The tag filter string. attr_accessor :tag_filter_str + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilterCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSTagFilterCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) account_id == o.account_id && namespace == o.namespace && tag_filter_str == o.tag_filter_str + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb index 6742a2f8d96a..0825c70e6656 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb @@ -27,6 +27,8 @@ class AWSTagFilterDeleteRequest # The namespace associated with the tag filter entry. attr_accessor :namespace + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilterDeleteRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSTagFilterDeleteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && account_id == o.account_id && namespace == o.namespace + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb index 2c76548f09c1..5259978f0ed9 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb @@ -24,6 +24,8 @@ class AWSTagFilterListResponse # An array of tag filters. attr_accessor :filters + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilterListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AWSTagFilterListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filters') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && filters == o.filters + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index a690de918477..1586bfd0f78f 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -70,6 +70,8 @@ class AzureAccount # Your Azure Active Directory ID. attr_accessor :tenant_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -120,12 +122,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AzureAccount` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AzureAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'app_service_plan_filters') @@ -187,6 +191,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -207,6 +231,7 @@ def ==(o) new_tenant_name == o.new_tenant_name && resource_collection_enabled == o.resource_collection_enabled && tenant_name == o.tenant_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb b/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb index a8f334c293c3..f754e97c2309 100644 --- a/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb +++ b/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb @@ -27,6 +27,8 @@ class AzureAccountMetricsConfig # List of Microsoft Azure Resource Providers to exclude from metric collection. attr_accessor :excluded_resource_providers + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -51,12 +53,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AzureAccountMetricsConfig` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AzureAccountMetricsConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'excluded_resource_providers') @@ -66,6 +70,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -73,6 +97,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && excluded_resource_providers == o.excluded_resource_providers + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb b/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb index 6d86883eb3a6..a1ee5793a945 100644 --- a/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb +++ b/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb @@ -26,6 +26,8 @@ class CancelDowntimesByScopeRequest # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_reader :scope + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -50,12 +52,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CancelDowntimesByScopeRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::CancelDowntimesByScopeRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'scope') @@ -81,6 +85,26 @@ def scope=(scope) @scope = scope end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && scope == o.scope + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb index db1be8a88e48..40efe8b0bcdf 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -24,6 +24,8 @@ class CanceledDowntimesIds # ID of downtimes that were canceled. attr_accessor :cancelled_ids + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CanceledDowntimesIds` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::CanceledDowntimesIds`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cancelled_ids') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && cancelled_ids == o.cancelled_ids + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/change_widget_definition.rb b/lib/datadog_api_client/v1/models/change_widget_definition.rb index 525132ed3b67..0141923d6c86 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -45,6 +45,8 @@ class ChangeWidgetDefinition # Type of the change widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ChangeWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ChangeWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -159,6 +163,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -172,6 +196,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/change_widget_request.rb b/lib/datadog_api_client/v1/models/change_widget_request.rb index aba191c2c715..cf43f748421a 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -75,6 +75,8 @@ class ChangeWidgetRequest # Whether to show the present value. attr_accessor :show_present + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -133,12 +135,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ChangeWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ChangeWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_query') @@ -218,6 +222,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -242,6 +266,7 @@ def ==(o) rum_query == o.rum_query && security_query == o.security_query && show_present == o.show_present + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb index a3cabff33081..c1353d1bffd0 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb @@ -27,6 +27,8 @@ class CheckCanDeleteMonitorResponse # A mapping of Monitor ID to strings denoting where it's used. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteMonitorResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::CheckCanDeleteMonitorResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -96,6 +100,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -104,6 +128,7 @@ def ==(o) self.class == o.class && data == o.data && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb index 7a2896b86eb6..a7d69fd378d2 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb @@ -24,6 +24,8 @@ class CheckCanDeleteMonitorResponseData # An array of of Monitor IDs that can be safely deleted. attr_accessor :ok + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteMonitorResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::CheckCanDeleteMonitorResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'ok') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && ok == o.ok + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb b/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb index 619a90362839..7614aec6b0aa 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb @@ -27,6 +27,8 @@ class CheckCanDeleteSLOResponse # A mapping of SLO id to it's current usages. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteSLOResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::CheckCanDeleteSLOResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb b/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb index 67d12417ce74..18b1c7620d1d 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb @@ -24,6 +24,8 @@ class CheckCanDeleteSLOResponseData # An array of of SLO IDs that can be safely deleted. attr_accessor :ok + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteSLOResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::CheckCanDeleteSLOResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'ok') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && ok == o.ok + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/check_status_widget_definition.rb b/lib/datadog_api_client/v1/models/check_status_widget_definition.rb index e6a0a1b4d250..e216c396788f 100644 --- a/lib/datadog_api_client/v1/models/check_status_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/check_status_widget_definition.rb @@ -51,6 +51,8 @@ class CheckStatusWidgetDefinition # Type of the check status widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckStatusWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::CheckStatusWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'check') @@ -186,6 +190,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -202,6 +226,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index a416e76f2008..aa3dfd120dea 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -30,6 +30,8 @@ class Creator # Name of the creator. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -66,12 +68,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Creator` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Creator`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'email') @@ -87,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) email == o.email && handle == o.handle && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index d4771996e133..f2654dd2ab69 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -79,6 +79,8 @@ class Dashboard # List of widgets to display on the dashboard. attr_reader :widgets + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -148,12 +150,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Dashboard` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Dashboard`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'author_handle') @@ -288,6 +292,26 @@ def widgets=(widgets) @widgets = widgets end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -311,6 +335,7 @@ def ==(o) title == o.title && url == o.url && widgets == o.widgets + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb b/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb index 9fcbb7bd4847..b1efd9915a23 100644 --- a/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb +++ b/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb @@ -27,6 +27,8 @@ class DashboardBulkActionData # Dashboard resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardBulkActionData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardBulkActionData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb b/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb index 0f0c29a91b24..30930992d2ac 100644 --- a/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb @@ -24,6 +24,8 @@ class DashboardBulkDeleteRequest # List of dashboard bulk action request data objects. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardBulkDeleteRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardBulkDeleteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb index d512db3d6d53..5186678e409b 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -24,6 +24,8 @@ class DashboardDeleteResponse # ID of the deleted dashboard. attr_accessor :deleted_dashboard_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardDeleteResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardDeleteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'deleted_dashboard_id') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && deleted_dashboard_id == o.deleted_dashboard_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_global_time.rb b/lib/datadog_api_client/v1/models/dashboard_global_time.rb index b297ba16e2b4..2d815717796a 100644 --- a/lib/datadog_api_client/v1/models/dashboard_global_time.rb +++ b/lib/datadog_api_client/v1/models/dashboard_global_time.rb @@ -24,6 +24,8 @@ class DashboardGlobalTime # Dashboard global time live_span selection attr_accessor :live_span + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardGlobalTime` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardGlobalTime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'live_span') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && live_span == o.live_span + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index 0cb23fa818a4..3646242937b9 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -45,6 +45,8 @@ class DashboardList # The type of dashboard list. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardList` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'author') @@ -142,6 +146,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -156,6 +180,7 @@ def ==(o) modified == o.modified && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb b/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb index 8029d432f790..770baf631991 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb @@ -24,6 +24,8 @@ class DashboardListDeleteResponse # ID of the deleted dashboard list. attr_accessor :deleted_dashboard_list_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardListDeleteResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardListDeleteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'deleted_dashboard_list_id') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && deleted_dashboard_list_id == o.deleted_dashboard_list_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb b/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb index 31c5b57d596f..9f241a47ad6c 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb @@ -24,6 +24,8 @@ class DashboardListListResponse # List of all your dashboard lists. attr_accessor :dashboard_lists + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardListListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardListListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dashboard_lists') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && dashboard_lists == o.dashboard_lists + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb index 4df1c564ef73..2ac46e950c2c 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -24,6 +24,8 @@ class DashboardRestoreRequest # List of dashboard bulk action request data objects. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardRestoreRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardRestoreRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index a6e104074489..0c081704dc7f 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -24,6 +24,8 @@ class DashboardSummary # List of dashboard definitions. attr_accessor :dashboards + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardSummary` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dashboards') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && dashboards == o.dashboards + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb index 782364a8ef59..57135f7c20fb 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -50,6 +50,8 @@ class DashboardSummaryDefinition # URL of the dashboard. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardSummaryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardSummaryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'author_handle') @@ -143,6 +147,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -158,6 +182,7 @@ def ==(o) modified_at == o.modified_at && title == o.title && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb index 3b1b3ffd74c7..4f7dddca0821 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -36,6 +36,8 @@ class DashboardTemplateVariable # The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down. attr_accessor :prefix + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardTemplateVariable` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardTemplateVariable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'available_values') @@ -129,6 +133,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -140,6 +164,7 @@ def ==(o) defaults == o.defaults && name == o.name && prefix == o.prefix + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb index 72888eebd791..f0c085b8415d 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb @@ -27,6 +27,8 @@ class DashboardTemplateVariablePreset # List of variables. attr_accessor :template_variables + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardTemplateVariablePreset` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardTemplateVariablePreset`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && name == o.name && template_variables == o.template_variables + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb index 914849c8e140..00d5a1a41fc3 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb @@ -30,6 +30,8 @@ class DashboardTemplateVariablePresetValue # One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. Cannot be used in conjunction with `value`. attr_reader :values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardTemplateVariablePresetValue` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DashboardTemplateVariablePresetValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -99,6 +103,26 @@ def values=(values) @values = values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) name == o.name && value == o.value && values == o.values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb b/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb index ceb9648e14f7..1c413b9ae449 100644 --- a/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb +++ b/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb @@ -24,6 +24,8 @@ class DeleteSharedDashboardResponse # Token associated with the shared dashboard that was revoked. attr_accessor :deleted_public_dashboard_token + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DeleteSharedDashboardResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DeleteSharedDashboardResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'deleted_public_dashboard_token') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && deleted_public_dashboard_token == o.deleted_public_dashboard_token + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index ed91e6d74e32..de5b6e36d33a 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -24,6 +24,8 @@ class DeletedMonitor # ID of the deleted monitor. attr_accessor :deleted_monitor_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DeletedMonitor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DeletedMonitor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'deleted_monitor_id') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && deleted_monitor_id == o.deleted_monitor_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/distribution_points_payload.rb b/lib/datadog_api_client/v1/models/distribution_points_payload.rb index 0aa59c5ff878..6e965c38ad06 100644 --- a/lib/datadog_api_client/v1/models/distribution_points_payload.rb +++ b/lib/datadog_api_client/v1/models/distribution_points_payload.rb @@ -24,6 +24,8 @@ class DistributionPointsPayload # A list of distribution points series to submit to Datadog. attr_reader :series + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionPointsPayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DistributionPointsPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'series') @@ -81,6 +85,26 @@ def series=(series) @series = series end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && series == o.series + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/distribution_points_series.rb b/lib/datadog_api_client/v1/models/distribution_points_series.rb index 66823cd5e87f..a1b225ea5a8b 100644 --- a/lib/datadog_api_client/v1/models/distribution_points_series.rb +++ b/lib/datadog_api_client/v1/models/distribution_points_series.rb @@ -36,6 +36,8 @@ class DistributionPointsSeries # The type of the distribution point. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionPointsSeries` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DistributionPointsSeries`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'host') @@ -130,6 +134,26 @@ def points=(points) @points = points end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -141,6 +165,7 @@ def ==(o) points == o.points && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb index a1cf347f346f..a769952d2618 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -62,6 +62,8 @@ class DistributionWidgetDefinition # Y Axis controls for the distribution widget. attr_accessor :yaxis + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -108,12 +110,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DistributionWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -208,6 +212,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -226,6 +250,7 @@ def ==(o) type == o.type && xaxis == o.xaxis && yaxis == o.yaxis + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/distribution_widget_request.rb b/lib/datadog_api_client/v1/models/distribution_widget_request.rb index f7ef741ede33..11dc47452614 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -60,6 +60,8 @@ class DistributionWidgetRequest # Widget style definition. attr_accessor :style + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -108,12 +110,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DistributionWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_query') @@ -169,6 +173,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -188,6 +212,7 @@ def ==(o) rum_query == o.rum_query && security_query == o.security_query && style == o.style + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb b/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb index 8d6c3d2c5202..fa1da16efee1 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb @@ -33,6 +33,8 @@ class DistributionWidgetXAxis # Specifies the scale type. Possible values are `linear`. attr_accessor :scale + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetXAxis` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DistributionWidgetXAxis`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'include_zero') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) max == o.max && min == o.min && scale == o.scale + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb b/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb index af95ab065054..1bac3496ab7d 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb @@ -36,6 +36,8 @@ class DistributionWidgetYAxis # Specifies the scale type. Possible values are `linear` or `log`. attr_accessor :scale + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetYAxis` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DistributionWidgetYAxis`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'include_zero') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) max == o.max && min == o.min && scale == o.scale + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index ec8d67209f26..22974a916862 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -99,6 +99,8 @@ class Downtime # ID of the last user that updated the downtime. attr_reader :updater_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -176,12 +178,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Downtime` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Downtime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'active') @@ -313,6 +317,26 @@ def updater_id=(updater_id) @updater_id = updater_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -339,6 +363,7 @@ def ==(o) start == o.start && timezone == o.timezone && updater_id == o.updater_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 8d1715656906..6d6422c6ef55 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -93,6 +93,8 @@ class DowntimeChild # ID of the last user that updated the downtime. attr_reader :updater_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -167,12 +169,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DowntimeChild` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DowntimeChild`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'active') @@ -300,6 +304,26 @@ def updater_id=(updater_id) @updater_id = updater_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -325,6 +349,7 @@ def ==(o) start == o.start && timezone == o.timezone && updater_id == o.updater_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index f83a7b57978b..2125423da4a0 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -48,6 +48,8 @@ class DowntimeRecurrence # Only applicable when type is weeks. First letter must be capitalized. attr_accessor :week_days + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -92,12 +94,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DowntimeRecurrence` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::DowntimeRecurrence`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'period') @@ -156,6 +160,26 @@ def until_occurrences=(until_occurrences) @until_occurrences = until_occurrences end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,6 +192,7 @@ def ==(o) until_date == o.until_date && until_occurrences == o.until_occurrences && week_days == o.week_days + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 5d6411769a84..b708f8471dc7 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -68,6 +68,8 @@ class Event # URL of the event. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -124,12 +126,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Event` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Event`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'alert_type') @@ -205,6 +209,26 @@ def text=(text) @text = text end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -224,6 +248,7 @@ def ==(o) text == o.text && title == o.title && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/event_create_request.rb b/lib/datadog_api_client/v1/models/event_create_request.rb index 49fd2d3fd60b..ade07c500e7f 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -62,6 +62,8 @@ class EventCreateRequest # The event title. attr_reader :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -114,12 +116,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::EventCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation_key') @@ -213,6 +217,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -230,6 +254,7 @@ def ==(o) tags == o.tags && text == o.text && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/event_create_response.rb b/lib/datadog_api_client/v1/models/event_create_response.rb index b4c71ef16d16..bf2a43ec98c1 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -27,6 +27,8 @@ class EventCreateResponse # A status. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventCreateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::EventCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'event') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && event == o.event && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/event_list_response.rb b/lib/datadog_api_client/v1/models/event_list_response.rb index 9d9a5ee74b9d..5da4615aed40 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -27,6 +27,8 @@ class EventListResponse # A status. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::EventListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'events') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && events == o.events && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/event_query_definition.rb b/lib/datadog_api_client/v1/models/event_query_definition.rb index 5cc2df771c19..9abf8cb44a85 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -27,6 +27,8 @@ class EventQueryDefinition # The execution method for multi-value filters. Can be either and or or. attr_reader :tags_execution + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::EventQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'search') @@ -99,6 +103,26 @@ def tags_execution=(tags_execution) @tags_execution = tags_execution end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && search == o.search && tags_execution == o.tags_execution + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index e510633d3de0..995b20b12033 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -27,6 +27,8 @@ class EventResponse # A status. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::EventResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'event') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && event == o.event && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb index d78b02dba7ed..7f4e9ebc2d16 100644 --- a/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb @@ -46,6 +46,8 @@ class EventStreamWidgetDefinition # Type of the event stream widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -84,12 +86,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventStreamWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::EventStreamWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'event_size') @@ -154,6 +158,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,6 +192,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb b/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb index 277f2e166aa2..b0a110166707 100644 --- a/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb @@ -42,6 +42,8 @@ class EventTimelineWidgetDefinition # Type of the event timeline widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventTimelineWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::EventTimelineWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -144,6 +148,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -157,6 +181,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb index daa14cb4797f..df396cae702e 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb @@ -54,6 +54,8 @@ class FormulaAndFunctionApmDependencyStatsQueryDefinition # APM statistic. attr_reader :stat + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionApmDependencyStatsQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionApmDependencyStatsQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cross_org_uuids') @@ -248,6 +252,26 @@ def stat=(stat) @stat = stat end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -265,6 +289,7 @@ def ==(o) resource_name == o.resource_name && service == o.service && stat == o.stat + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb index 9291ae53822d..748a41871f75 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb @@ -54,6 +54,8 @@ class FormulaAndFunctionApmResourceStatsQueryDefinition # APM resource stat name. attr_reader :stat + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatsQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatsQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cross_org_uuids') @@ -228,6 +232,26 @@ def stat=(stat) @stat = stat end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -245,6 +269,7 @@ def ==(o) resource_name == o.resource_name && service == o.service && stat == o.stat + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb index 2d0b063a2977..0e90f9d67845 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb @@ -36,6 +36,8 @@ class FormulaAndFunctionCloudCostQueryDefinition # Query for Cloud Cost data. attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionCloudCostQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionCloudCostQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregator') @@ -150,6 +154,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -161,6 +185,7 @@ def ==(o) data_source == o.data_source && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb index 3718c1fc76d5..bcdd73690ca9 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb @@ -45,6 +45,8 @@ class FormulaAndFunctionEventQueryDefinition # Option for storage location. Feature in Private Beta. attr_accessor :storage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -181,6 +185,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -195,6 +219,7 @@ def ==(o) name == o.name && search == o.search && storage == o.storage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb index c7b16a5078de..db6712e1cc02 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb @@ -30,6 +30,8 @@ class FormulaAndFunctionEventQueryDefinitionCompute # Measurable attribute to compute. attr_accessor :metric + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -97,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) aggregation == o.aggregation && interval == o.interval && metric == o.metric + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb index ab11a61deed8..de6acaffbbda 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb @@ -24,6 +24,8 @@ class FormulaAndFunctionEventQueryDefinitionSearch # Events search string. attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionSearch` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionSearch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -79,6 +83,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb index cd01356674fb..adce09c48205 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb @@ -30,6 +30,8 @@ class FormulaAndFunctionEventQueryGroupBy # Options for sorting group by results. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -97,6 +101,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) facet == o.facet && limit == o.limit && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb index 6f9557f87db8..8e688abb571f 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb @@ -30,6 +30,8 @@ class FormulaAndFunctionEventQueryGroupBySort # Direction of sort. attr_accessor :order + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryGroupBySort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryGroupBySort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -97,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) aggregation == o.aggregation && metric == o.metric && order == o.order + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb index fe5dc245bda0..555188b911a2 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb @@ -36,6 +36,8 @@ class FormulaAndFunctionMetricQueryDefinition # Metrics query definition. attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregator') @@ -150,6 +154,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -161,6 +185,7 @@ def ==(o) data_source == o.data_source && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb index 0554174ff519..ce27a9a0d415 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb @@ -51,6 +51,8 @@ class FormulaAndFunctionProcessQueryDefinition # Text to use as filter. attr_accessor :text_filter + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionProcessQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionProcessQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregator') @@ -197,6 +201,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -213,6 +237,7 @@ def ==(o) sort == o.sort && tag_filters == o.tag_filters && text_filter == o.text_filter + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb index 744219bd86b9..097f786d229a 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb @@ -45,6 +45,8 @@ class FormulaAndFunctionSLOQueryDefinition # Name of the query for use in formulas. attr_accessor :slo_query_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionSLOQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionSLOQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'additional_query_filters') @@ -177,6 +181,26 @@ def slo_id=(slo_id) @slo_id = slo_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -191,6 +215,7 @@ def ==(o) name == o.name && slo_id == o.slo_id && slo_query_type == o.slo_query_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/free_text_widget_definition.rb b/lib/datadog_api_client/v1/models/free_text_widget_definition.rb index adc2636339e1..081df5835297 100644 --- a/lib/datadog_api_client/v1/models/free_text_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/free_text_widget_definition.rb @@ -36,6 +36,8 @@ class FreeTextWidgetDefinition # Type of the free text widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FreeTextWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FreeTextWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'color') @@ -126,6 +130,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -137,6 +161,7 @@ def ==(o) text == o.text && text_align == o.text_align && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index 2a650d78a872..d4a2323b64f6 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -30,6 +30,8 @@ class FunnelQuery # List of funnel steps. attr_reader :steps + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FunnelQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data_source') @@ -121,6 +125,26 @@ def steps=(steps) @steps = steps end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -130,6 +154,7 @@ def ==(o) data_source == o.data_source && query_string == o.query_string && steps == o.steps + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/funnel_step.rb b/lib/datadog_api_client/v1/models/funnel_step.rb index 641fa1fe6e1c..10c8c3ab002f 100644 --- a/lib/datadog_api_client/v1/models/funnel_step.rb +++ b/lib/datadog_api_client/v1/models/funnel_step.rb @@ -27,6 +27,8 @@ class FunnelStep # The value of the step. attr_reader :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelStep` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FunnelStep`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -99,6 +103,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && facet == o.facet && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb index f56b40586477..e8ff761a9db7 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -39,6 +39,8 @@ class FunnelWidgetDefinition # Type of funnel widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FunnelWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'requests') @@ -145,6 +149,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -157,6 +181,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/funnel_widget_request.rb b/lib/datadog_api_client/v1/models/funnel_widget_request.rb index 78de57a085a9..9edb99665d0c 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -27,6 +27,8 @@ class FunnelWidgetRequest # Widget request type. attr_reader :request_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FunnelWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -99,6 +103,26 @@ def request_type=(request_type) @request_type = request_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && query == o.query && request_type == o.request_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index 36a4c2de71cb..74c97b48da37 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -75,6 +75,8 @@ class GCPAccount # The value for service_account found in your JSON service account key. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -131,12 +133,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GCPAccount` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::GCPAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'auth_provider_x509_cert_url') @@ -212,6 +216,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -235,6 +259,7 @@ def ==(o) resource_collection_enabled == o.resource_collection_enabled && token_uri == o.token_uri && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb index 04494d82e9d8..765fd5a220ab 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -51,6 +51,8 @@ class GeomapWidgetDefinition # The view of the world that the map should render. attr_reader :view + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -91,12 +93,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::GeomapWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -199,6 +203,26 @@ def view=(view) @view = view end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -214,6 +238,7 @@ def ==(o) title_size == o.title_size && type == o.type && view == o.view + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb index 687b5bd98d50..3db6edbacae0 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb @@ -27,6 +27,8 @@ class GeomapWidgetDefinitionStyle # Whether to flip the palette tones. attr_reader :palette_flip + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetDefinitionStyle` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::GeomapWidgetDefinitionStyle`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'palette') @@ -99,6 +103,26 @@ def palette_flip=(palette_flip) @palette_flip = palette_flip end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && palette == o.palette && palette_flip == o.palette_flip + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb index acd66b81e792..101907f2e4aa 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb @@ -24,6 +24,8 @@ class GeomapWidgetDefinitionView # The 2-letter ISO code of a country to focus the map on. Or `WORLD`. attr_reader :focus + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetDefinitionView` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::GeomapWidgetDefinitionView`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'focus') @@ -79,6 +83,26 @@ def focus=(focus) @focus = focus end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && focus == o.focus + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/geomap_widget_request.rb b/lib/datadog_api_client/v1/models/geomap_widget_request.rb index be83daff2cd1..13f4dcf8aae7 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -51,6 +51,8 @@ class GeomapWidgetRequest # The controls for sorting the widget. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::GeomapWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'columns') @@ -148,6 +152,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -164,6 +188,7 @@ def ==(o) rum_query == o.rum_query && security_query == o.security_query && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index 56705d1c582e..6ecd5476bfa3 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -32,6 +32,8 @@ class GraphSnapshot # URL of your [graph snapshot](https://docs.datadoghq.com/metrics/explorer/#snapshot). attr_accessor :snapshot_url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -60,12 +62,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GraphSnapshot` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::GraphSnapshot`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'graph_def') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) graph_def == o.graph_def && metric_query == o.metric_query && snapshot_url == o.snapshot_url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/group_widget_definition.rb b/lib/datadog_api_client/v1/models/group_widget_definition.rb index 09974107144f..522b73bebf86 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -45,6 +45,8 @@ class GroupWidgetDefinition # List of widget groups. attr_reader :widgets + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GroupWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::GroupWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'background_color') @@ -166,6 +170,26 @@ def widgets=(widgets) @widgets = widgets end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -180,6 +204,7 @@ def ==(o) title_align == o.title_align && type == o.type && widgets == o.widgets + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb b/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb index a2877422dfe1..30a962b68784 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb @@ -54,6 +54,8 @@ class HeatMapWidgetDefinition # Axis controls for the widget. attr_accessor :yaxis + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HeatMapWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HeatMapWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -194,6 +198,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -211,6 +235,7 @@ def ==(o) title_size == o.title_size && type == o.type && yaxis == o.yaxis + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_request.rb b/lib/datadog_api_client/v1/models/heat_map_widget_request.rb index dcfdddde91fd..00abd8033dff 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_request.rb @@ -60,6 +60,8 @@ class HeatMapWidgetRequest # Widget style definition. attr_accessor :style + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -108,12 +110,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HeatMapWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HeatMapWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_query') @@ -173,6 +177,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -192,6 +216,7 @@ def ==(o) rum_query == o.rum_query && security_query == o.security_query && style == o.style + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index 0adfc3314625..3abc20c59769 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -63,6 +63,8 @@ class Host # Displays UP when the expected metrics are received and displays `???` if no metrics are received. attr_accessor :up + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -121,12 +123,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Host` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Host`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aliases') @@ -192,6 +196,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -212,6 +236,7 @@ def ==(o) sources == o.sources && tags_by_source == o.tags_by_source && up == o.up + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_list_response.rb b/lib/datadog_api_client/v1/models/host_list_response.rb index 9e6f070c009b..4ae54c173767 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -30,6 +30,8 @@ class HostListResponse # Number of host returned. attr_accessor :total_returned + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'host_list') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) host_list == o.host_list && total_matching == o.total_matching && total_returned == o.total_returned + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_map_request.rb b/lib/datadog_api_client/v1/models/host_map_request.rb index dd8c182206c9..e095cb4b2a0d 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -48,6 +48,8 @@ class HostMapRequest # The log query. attr_accessor :security_query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMapRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_query') @@ -133,6 +137,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -148,6 +172,7 @@ def ==(o) q == o.q && rum_query == o.rum_query && security_query == o.security_query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition.rb index 925e7d1f6eb5..02cf3eb59586 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition.rb @@ -60,6 +60,8 @@ class HostMapWidgetDefinition # Type of the host map widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -108,12 +110,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMapWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -204,6 +208,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -223,6 +247,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb index 2b9375631f5b..6d44fafbb08c 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb @@ -27,6 +27,8 @@ class HostMapWidgetDefinitionRequests # Updated host map. attr_accessor :size + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinitionRequests` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMapWidgetDefinitionRequests`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'fill') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && fill == o.fill && size == o.size + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb index eb52b7743876..05e28a109537 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb @@ -33,6 +33,8 @@ class HostMapWidgetDefinitionStyle # Whether to flip the palette tones. attr_accessor :palette_flip + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinitionStyle` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMapWidgetDefinitionStyle`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'fill_max') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) fill_min == o.fill_min && palette == o.palette && palette_flip == o.palette_flip + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index cd1e8cb01dc5..589045becdf2 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -66,6 +66,8 @@ class HostMeta # An array of Windows versions. attr_accessor :win_v + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -118,12 +120,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'agent_checks') @@ -197,6 +201,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -218,6 +242,7 @@ def ==(o) socket_fqdn == o.socket_fqdn && socket_hostname == o.socket_hostname && win_v == o.win_v + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_meta_install_method.rb b/lib/datadog_api_client/v1/models/host_meta_install_method.rb index 4066b9ab8495..6f240983a633 100644 --- a/lib/datadog_api_client/v1/models/host_meta_install_method.rb +++ b/lib/datadog_api_client/v1/models/host_meta_install_method.rb @@ -30,6 +30,8 @@ class HostMetaInstallMethod # The tool version. attr_accessor :tool_version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMetaInstallMethod` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMetaInstallMethod`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'installer_version') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) installer_version == o.installer_version && tool == o.tool && tool_version == o.tool_version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index ae964932d50f..47323d810a1e 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -30,6 +30,8 @@ class HostMetrics # The system load over the last 15 minutes. attr_accessor :load + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMetrics` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMetrics`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cpu') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) cpu == o.cpu && iowait == o.iowait && load == o.load + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_mute_response.rb b/lib/datadog_api_client/v1/models/host_mute_response.rb index da11cb0880b1..3d84817669c9 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -33,6 +33,8 @@ class HostMuteResponse # Message associated with the mute. attr_accessor :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMuteResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMuteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'action') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) _end == o._end && hostname == o.hostname && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_mute_settings.rb b/lib/datadog_api_client/v1/models/host_mute_settings.rb index 79c8c25074cc..8ce781ea6e6c 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -30,6 +30,8 @@ class HostMuteSettings # If true and the host is already muted, replaces existing host mute settings. attr_accessor :override + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMuteSettings` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMuteSettings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_end') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) _end == o._end && message == o.message && override == o.override + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index 1869cebf5a9a..9d2a8806aba1 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -27,6 +27,8 @@ class HostTags # A list of tags to apply to the host. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostTags` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostTags`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'host') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && host == o.host && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index 7b2d189d35e8..54905dd26aff 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -27,6 +27,8 @@ class HostTotals # Number of host that are UP and reporting to Datadog. attr_accessor :total_up + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostTotals` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostTotals`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_active') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && total_active == o.total_active && total_up == o.total_up + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb index 95c89718ff00..44aa85c98158 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb @@ -52,6 +52,8 @@ class HourlyUsageAttributionBody # Supported products for hourly usage attribution requests. attr_accessor :usage_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -100,12 +102,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HourlyUsageAttributionBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -145,6 +149,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -160,6 +184,7 @@ def ==(o) total_usage_sum == o.total_usage_sum && updated_at == o.updated_at && usage_type == o.usage_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb index e546a4c99aec..cddfa75b16f0 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb @@ -24,6 +24,8 @@ class HourlyUsageAttributionMetadata # The metadata for the current pagination. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HourlyUsageAttributionMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb index b63a54b2d16c..fb645474bd6d 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb @@ -24,6 +24,8 @@ class HourlyUsageAttributionPagination # The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`. attr_accessor :next_record_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HourlyUsageAttributionPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'next_record_id') @@ -69,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -76,6 +100,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && next_record_id == o.next_record_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb index 7f5ebca49802..5fab07b0e455 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb @@ -27,6 +27,8 @@ class HourlyUsageAttributionResponse # Get the hourly usage attribution by tag(s). attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HourlyUsageAttributionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'metadata') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && metadata == o.metadata && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/http_log_error.rb b/lib/datadog_api_client/v1/models/http_log_error.rb index 3d4bb09f9f78..b6e4ea116df8 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -27,6 +27,8 @@ class HTTPLogError # Error message. attr_reader :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HTTPLogError` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HTTPLogError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -103,6 +107,26 @@ def message=(message) @message = message end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) self.class == o.class && code == o.code && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb b/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb index 2c18515c19ab..561c79874b63 100644 --- a/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb @@ -27,6 +27,8 @@ class IFrameWidgetDefinition # URL of the iframe. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IFrameWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IFrameWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -99,6 +103,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && type == o.type && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/idp_form_data.rb b/lib/datadog_api_client/v1/models/idp_form_data.rb index 60c5c35bf5a9..a2e7ce7b141c 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -24,6 +24,8 @@ class IdpFormData # The path to the XML metadata file you wish to upload. attr_reader :idp_file + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IdpFormData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IdpFormData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'idp_file') @@ -79,6 +83,26 @@ def idp_file=(idp_file) @idp_file = idp_file end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && idp_file == o.idp_file + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index 74ea8ddd07fe..ef87dc4ff1f1 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -24,6 +24,8 @@ class IdpResponse # Identity provider response. attr_reader :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IdpResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IdpResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'message') @@ -79,6 +83,26 @@ def message=(message) @message = message end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/image_widget_definition.rb b/lib/datadog_api_client/v1/models/image_widget_definition.rb index b03ac7b77187..614555c1950d 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -50,6 +50,8 @@ class ImageWidgetDefinition # Vertical alignment. attr_accessor :vertical_align + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -90,12 +92,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ImageWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ImageWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'has_background') @@ -164,6 +168,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -179,6 +203,7 @@ def ==(o) url == o.url && url_dark_theme == o.url_dark_theme && vertical_align == o.vertical_align + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb index 01833228a60b..57a485e6d67f 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -24,6 +24,8 @@ class IntakePayloadAccepted # The status of the intake payload. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IntakePayloadAccepted` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IntakePayloadAccepted`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'status') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb index 614367ae874a..07d7c5237620 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -27,6 +27,8 @@ class IPPrefixesAgents # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesAgents` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesAgents`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb index af318f30bf57..bce7c4405a0c 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -27,6 +27,8 @@ class IPPrefixesAPI # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesAPI` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesAPI`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb index be1dbfc3648c..d1b286d417eb 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -27,6 +27,8 @@ class IPPrefixesAPM # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesAPM` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesAPM`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_global.rb b/lib/datadog_api_client/v1/models/ip_prefixes_global.rb index e57f07864f9a..1d8121d169cf 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_global.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_global.rb @@ -27,6 +27,8 @@ class IPPrefixesGlobal # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesGlobal` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesGlobal`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb index 3bac4c94fc41..720e8a615e50 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -27,6 +27,8 @@ class IPPrefixesLogs # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesLogs` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesLogs`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb b/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb index e6b3727c489b..d71219513bd2 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb @@ -27,6 +27,8 @@ class IPPrefixesOrchestrator # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesOrchestrator` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesOrchestrator`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb index f1756adc2164..859947b2d3ac 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -27,6 +27,8 @@ class IPPrefixesProcess # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesProcess` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesProcess`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb b/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb index d13a51c4ba8d..c7a50b387d09 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb @@ -27,6 +27,8 @@ class IPPrefixesRemoteConfiguration # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesRemoteConfiguration` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesRemoteConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb index 3c9ef4ae4fe4..4cba41597f79 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -33,6 +33,8 @@ class IPPrefixesSynthetics # List of IPv6 prefixes by location. attr_accessor :prefixes_ipv6_by_location + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesSynthetics` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesSynthetics`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -92,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -102,6 +126,7 @@ def ==(o) prefixes_ipv4_by_location == o.prefixes_ipv4_by_location && prefixes_ipv6 == o.prefixes_ipv6 && prefixes_ipv6_by_location == o.prefixes_ipv6_by_location + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb index 96d847f0de90..1030e1aafcea 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb @@ -27,6 +27,8 @@ class IPPrefixesSyntheticsPrivateLocations # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesSyntheticsPrivateLocations` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesSyntheticsPrivateLocations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb index 374973d96bf6..b59468b7a29b 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -27,6 +27,8 @@ class IPPrefixesWebhooks # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesWebhooks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesWebhooks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'prefixes_ipv4') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && prefixes_ipv4 == o.prefixes_ipv4 && prefixes_ipv6 == o.prefixes_ipv6 + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index 1c2bbaebc898..f624d6b97d4c 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -60,6 +60,8 @@ class IPRanges # Available prefix information for the Webhook endpoints. attr_accessor :webhooks + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -108,12 +110,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPRanges` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPRanges`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'agents') @@ -169,6 +173,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -188,6 +212,7 @@ def ==(o) synthetics_private_locations == o.synthetics_private_locations && version == o.version && webhooks == o.webhooks + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/list_stream_column.rb b/lib/datadog_api_client/v1/models/list_stream_column.rb index f0ff05a35f37..3b6b75de166a 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -27,6 +27,8 @@ class ListStreamColumn # Widget column width. attr_reader :width + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamColumn` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ListStreamColumn`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'field') @@ -99,6 +103,26 @@ def width=(width) @width = width end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && field == o.field && width == o.width + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/list_stream_compute_items.rb b/lib/datadog_api_client/v1/models/list_stream_compute_items.rb index 1937de69111f..a20ce22c3c74 100644 --- a/lib/datadog_api_client/v1/models/list_stream_compute_items.rb +++ b/lib/datadog_api_client/v1/models/list_stream_compute_items.rb @@ -27,6 +27,8 @@ class ListStreamComputeItems # Facet name. attr_accessor :facet + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamComputeItems` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ListStreamComputeItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -88,6 +92,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && aggregation == o.aggregation && facet == o.facet + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb b/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb index c2289ce27555..b12ba4993139 100644 --- a/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb +++ b/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb @@ -24,6 +24,8 @@ class ListStreamGroupByItems # Facet name. attr_reader :facet + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamGroupByItems` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ListStreamGroupByItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -79,6 +83,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && facet == o.facet + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/list_stream_query.rb b/lib/datadog_api_client/v1/models/list_stream_query.rb index c15336adcc37..ca577a2b83f4 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -45,6 +45,8 @@ class ListStreamQuery # Option for storage location. Feature in Private Beta. attr_accessor :storage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ListStreamQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -185,6 +189,26 @@ def query_string=(query_string) @query_string = query_string end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -199,6 +223,7 @@ def ==(o) query_string == o.query_string && sort == o.sort && storage == o.storage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb index 07b6034a1946..66d5a8beb4de 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb @@ -46,6 +46,8 @@ class ListStreamWidgetDefinition # Type of the list stream widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -84,12 +86,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ListStreamWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'legend_size') @@ -164,6 +168,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -178,6 +202,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_request.rb b/lib/datadog_api_client/v1/models/list_stream_widget_request.rb index 8c53c9d7fe4f..d19a0d9dba43 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_request.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_request.rb @@ -30,6 +30,8 @@ class ListStreamWidgetRequest # Widget response format. attr_reader :response_format + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ListStreamWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'columns') @@ -121,6 +125,26 @@ def response_format=(response_format) @response_format = response_format end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -130,6 +154,7 @@ def ==(o) columns == o.columns && query == o.query && response_format == o.response_format + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index f299e06a45ba..c8f2550dbab1 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -27,6 +27,8 @@ class Log # ID of the Log. attr_accessor :id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Log` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Log`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'content') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && content == o.content && id == o.id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index f46a9285aa6f..1e9229b27e2e 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -43,6 +43,8 @@ class LogContent # Timestamp of your log. attr_accessor :timestamp + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -77,12 +79,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogContent` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -112,6 +116,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -124,6 +148,7 @@ def ==(o) service == o.service && tags == o.tags && timestamp == o.timestamp + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/log_query_definition.rb b/lib/datadog_api_client/v1/models/log_query_definition.rb index edd12fb801f0..78723d373e43 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -36,6 +36,8 @@ class LogQueryDefinition # The query being made on the logs. attr_accessor :search + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -101,6 +105,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -112,6 +136,7 @@ def ==(o) index == o.index && multi_compute == o.multi_compute && search == o.search + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb b/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb index 4df5891a0092..2c3e61fae435 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb @@ -30,6 +30,8 @@ class LogQueryDefinitionGroupBy # Define a sorting method. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinitionGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogQueryDefinitionGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -97,6 +101,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) facet == o.facet && limit == o.limit && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb b/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb index f7a26197c792..aefbea213a35 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb @@ -30,6 +30,8 @@ class LogQueryDefinitionGroupBySort # Widget sorting methods. attr_reader :order + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinitionGroupBySort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogQueryDefinitionGroupBySort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -108,6 +112,26 @@ def order=(order) @order = order end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) aggregation == o.aggregation && facet == o.facet && order == o.order + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/log_query_definition_search.rb b/lib/datadog_api_client/v1/models/log_query_definition_search.rb index a3e642dd0217..2153510b93fd 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_search.rb @@ -24,6 +24,8 @@ class LogQueryDefinitionSearch # Search value to apply. attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinitionSearch` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogQueryDefinitionSearch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -79,6 +83,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb index 0072b7d3e22c..96cf59ec4bc1 100644 --- a/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb @@ -60,6 +60,8 @@ class LogStreamWidgetDefinition # Type of the log stream widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -108,12 +110,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogStreamWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogStreamWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'columns') @@ -191,6 +195,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -210,6 +234,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_api_error.rb b/lib/datadog_api_client/v1/models/logs_api_error.rb index 2d6c33243dee..a00f848cdbcf 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -30,6 +30,8 @@ class LogsAPIError # Error message attr_accessor :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsAPIError` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsAPIError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) code == o.code && details == o.details && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_api_error_response.rb b/lib/datadog_api_client/v1/models/logs_api_error_response.rb index c0e44b13dfce..5f788492a16e 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error_response.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error_response.rb @@ -24,6 +24,8 @@ class LogsAPIErrorResponse # Error returned by the Logs API attr_accessor :error + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsAPIErrorResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsAPIErrorResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'error') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && error == o.error + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb index c69b41c40d5b..4595b28663fa 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -60,6 +60,8 @@ class LogsArithmeticProcessor # Type of logs arithmetic processor. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -94,12 +96,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsArithmeticProcessor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsArithmeticProcessor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'expression') @@ -167,6 +171,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -179,6 +203,7 @@ def ==(o) name == o.name && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb index 7e7c50635d17..c029abb9e49f 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -55,6 +55,8 @@ class LogsAttributeRemapper # Type of logs attribute remapper. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -97,12 +99,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsAttributeRemapper` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsAttributeRemapper`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -188,6 +192,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -204,6 +228,7 @@ def ==(o) target_format == o.target_format && target_type == o.target_type && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_by_retention.rb b/lib/datadog_api_client/v1/models/logs_by_retention.rb index 2e56441a1026..02e1b6d44969 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -30,6 +30,8 @@ class LogsByRetention # Object containing a summary of indexed logs usage by retention period for a single month. attr_accessor :usage_by_month + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetention` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsByRetention`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'orgs') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) orgs == o.orgs && usage == o.usage && usage_by_month == o.usage_by_month + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb b/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb index e66e246b9671..725e6aa57f58 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb @@ -27,6 +27,8 @@ class LogsByRetentionMonthlyUsage # Indexed logs usage for each active retention for the month. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetentionMonthlyUsage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsByRetentionMonthlyUsage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'date') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && date == o.date && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb b/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb index c18fe90fe123..4476a1823261 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb @@ -24,6 +24,8 @@ class LogsByRetentionOrgUsage # Indexed logs usage for each active retention for the organization. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetentionOrgUsage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsByRetentionOrgUsage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb b/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb index bc5e511df93d..53a8060db3bf 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb @@ -24,6 +24,8 @@ class LogsByRetentionOrgs # Indexed logs usage summary for each organization. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetentionOrgs` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsByRetentionOrgs`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_category_processor.rb b/lib/datadog_api_client/v1/models/logs_category_processor.rb index d42dba9ebcd3..77b4c3d91b38 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -49,6 +49,8 @@ class LogsCategoryProcessor # Type of logs category processor. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsCategoryProcessor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsCategoryProcessor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'categories') @@ -152,6 +156,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -163,6 +187,7 @@ def ==(o) name == o.name && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_category_processor_category.rb b/lib/datadog_api_client/v1/models/logs_category_processor_category.rb index de3beec5ff98..abd1343d272e 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor_category.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor_category.rb @@ -27,6 +27,8 @@ class LogsCategoryProcessorCategory # Value to assign to the target attribute. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsCategoryProcessorCategory` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsCategoryProcessorCategory`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && filter == o.filter && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb b/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb index 8525bdffbaed..5cf3d60e76d6 100644 --- a/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb +++ b/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb @@ -27,6 +27,8 @@ class LogsDailyLimitReset # String in `(-|+)HH:00` format representing the UTC offset to apply to the given reset time. The hours must be between -12 and +14 (inclusive). attr_accessor :reset_utc_offset + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsDailyLimitReset` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsDailyLimitReset`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'reset_time') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && reset_time == o.reset_time && reset_utc_offset == o.reset_utc_offset + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_date_remapper.rb b/lib/datadog_api_client/v1/models/logs_date_remapper.rb index 4ed525083043..60438974aff9 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -51,6 +51,8 @@ class LogsDateRemapper # Type of logs date remapper. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsDateRemapper` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsDateRemapper`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -137,6 +141,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -147,6 +171,7 @@ def ==(o) name == o.name && sources == o.sources && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index e7cf8f773d36..455a6404fcdf 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -30,6 +30,8 @@ class LogsExclusion # Name of the index exclusion filter. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsExclusion` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsExclusion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -97,6 +101,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) filter == o.filter && is_enabled == o.is_enabled && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb index f7bc665dbc55..a845c14eaa3c 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -29,6 +29,8 @@ class LogsExclusionFilter # a value of 1.0 excludes all logs matching the query. attr_reader :sample_rate + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -55,12 +57,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsExclusionFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsExclusionFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -90,6 +94,26 @@ def sample_rate=(sample_rate) @sample_rate = sample_rate end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && query == o.query && sample_rate == o.sample_rate + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index b5ba2a939621..97fc5f2438ad 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -24,6 +24,8 @@ class LogsFilter # The filter query. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb b/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb index d9e4df2666c7..214b31bc0000 100644 --- a/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb @@ -37,6 +37,8 @@ class LogsGeoIPParser # Type of GeoIP parser. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsGeoIPParser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsGeoIPParser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -140,6 +144,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -151,6 +175,7 @@ def ==(o) sources == o.sources && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser.rb b/lib/datadog_api_client/v1/models/logs_grok_parser.rb index e948998b4c68..e434ecbf3f71 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -40,6 +40,8 @@ class LogsGrokParser # Type of logs grok parser. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -74,12 +76,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsGrokParser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsGrokParser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'grok') @@ -160,6 +164,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -172,6 +196,7 @@ def ==(o) samples == o.samples && source == o.source && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb b/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb index e10407a98d16..9ae7c16fce73 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb @@ -27,6 +27,8 @@ class LogsGrokParserRules # List of support rules for the grok parser, separated by a new line. attr_accessor :support_rules + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsGrokParserRules` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsGrokParserRules`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'match_rules') @@ -88,6 +92,26 @@ def match_rules=(match_rules) @match_rules = match_rules end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && match_rules == o.match_rules && support_rules == o.support_rules + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index 759ef329d785..00f1bd645270 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -49,6 +49,8 @@ class LogsIndex # retention plans specified in your organization's contract/subscriptions. attr_accessor :num_retention_days + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -87,12 +89,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndex` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsIndex`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'daily_limit') @@ -174,6 +178,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -188,6 +212,7 @@ def ==(o) is_rate_limited == o.is_rate_limited && name == o.name && num_retention_days == o.num_retention_days + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_index_list_response.rb b/lib/datadog_api_client/v1/models/logs_index_list_response.rb index 378dcf9190f6..cf79b55547b8 100644 --- a/lib/datadog_api_client/v1/models/logs_index_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_index_list_response.rb @@ -24,6 +24,8 @@ class LogsIndexListResponse # Array of Log index configurations. attr_accessor :indexes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndexListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsIndexListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'indexes') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && indexes == o.indexes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_index_update_request.rb b/lib/datadog_api_client/v1/models/logs_index_update_request.rb index c674a94722e9..da5bd8a89338 100644 --- a/lib/datadog_api_client/v1/models/logs_index_update_request.rb +++ b/lib/datadog_api_client/v1/models/logs_index_update_request.rb @@ -50,6 +50,8 @@ class LogsIndexUpdateRequest # already in this index. It may also affect billing. attr_accessor :num_retention_days + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -86,12 +88,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndexUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsIndexUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'daily_limit') @@ -158,6 +162,26 @@ def filter=(filter) @filter = filter end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,6 +195,7 @@ def ==(o) exclusion_filters == o.exclusion_filters && filter == o.filter && num_retention_days == o.num_retention_days + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_indexes_order.rb b/lib/datadog_api_client/v1/models/logs_indexes_order.rb index 43c0b6db29d3..7ee65b175664 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -26,6 +26,8 @@ class LogsIndexesOrder # Logs are eventually stored in the first matching index. attr_reader :index_names + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -50,12 +52,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndexesOrder` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsIndexesOrder`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'index_names') @@ -83,6 +87,26 @@ def index_names=(index_names) @index_names = index_names end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && index_names == o.index_names + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_list_request.rb b/lib/datadog_api_client/v1/models/logs_list_request.rb index b6a63a971c99..24a4fcc6e66e 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -44,6 +44,8 @@ class LogsListRequest # Timeframe to retrieve the log from. attr_reader :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsListRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsListRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'index') @@ -140,6 +144,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -152,6 +176,7 @@ def ==(o) sort == o.sort && start_at == o.start_at && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_list_request_time.rb b/lib/datadog_api_client/v1/models/logs_list_request_time.rb index 269969d65c85..5ca63a0f07f9 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request_time.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request_time.rb @@ -31,6 +31,8 @@ class LogsListRequestTime # Maximum timestamp for requested logs. attr_reader :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsListRequestTime` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsListRequestTime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -109,6 +113,26 @@ def to=(to) @to = to end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) from == o.from && timezone == o.timezone && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_list_response.rb b/lib/datadog_api_client/v1/models/logs_list_response.rb index 921459f09c30..b26ed61c5336 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -31,6 +31,8 @@ class LogsListResponse # Status of the response. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -67,12 +69,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'logs') @@ -90,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) logs == o.logs && next_log_id == o.next_log_id && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb index 050ac72da192..d7ab1c7eccd8 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -49,6 +49,8 @@ class LogsLookupProcessor # Type of logs lookup processor. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -85,12 +87,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsLookupProcessor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsLookupProcessor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'default_lookup') @@ -175,6 +179,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -188,6 +212,7 @@ def ==(o) source == o.source && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_message_remapper.rb b/lib/datadog_api_client/v1/models/logs_message_remapper.rb index d19ed99348bc..f03a0fbcbc2e 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -38,6 +38,8 @@ class LogsMessageRemapper # Type of logs message remapper. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsMessageRemapper` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsMessageRemapper`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -124,6 +128,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -134,6 +158,7 @@ def ==(o) name == o.name && sources == o.sources && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index 25cc87571ac6..21b4311aa9c9 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -46,6 +46,8 @@ class LogsPipeline # Type of pipeline. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -82,12 +84,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipeline` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsPipeline`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -139,6 +143,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -152,6 +176,7 @@ def ==(o) name == o.name && processors == o.processors && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb index 3fb914e4f293..1eb5a9d5cf6f 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -40,6 +40,8 @@ class LogsPipelineProcessor # Type of logs pipeline processor. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -72,12 +74,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipelineProcessor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsPipelineProcessor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -121,6 +125,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -132,6 +156,7 @@ def ==(o) name == o.name && processors == o.processors && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb index fd8a58358d32..5b46bf9f3539 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -25,6 +25,8 @@ class LogsPipelinesOrder # define the overall Pipelines order for Datadog. attr_reader :pipeline_ids + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipelinesOrder` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsPipelinesOrder`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pipeline_ids') @@ -82,6 +86,26 @@ def pipeline_ids=(pipeline_ids) @pipeline_ids = pipeline_ids end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -89,6 +113,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pipeline_ids == o.pipeline_ids + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_query_compute.rb b/lib/datadog_api_client/v1/models/logs_query_compute.rb index 8f23c5df9e3d..5794bebf2bbf 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -30,6 +30,8 @@ class LogsQueryCompute # Define a time interval in seconds. attr_accessor :interval + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsQueryCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsQueryCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -97,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) aggregation == o.aggregation && facet == o.facet && interval == o.interval + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb b/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb index 7ae3473af9fe..0462e7773ea6 100644 --- a/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb @@ -33,6 +33,8 @@ class LogsRetentionAggSumUsage # The retention period in days or "custom" for all custom retention periods. attr_accessor :retention + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsRetentionAggSumUsage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsRetentionAggSumUsage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'logs_indexed_logs_usage_agg_sum') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) logs_live_indexed_logs_usage_agg_sum == o.logs_live_indexed_logs_usage_agg_sum && logs_rehydrated_indexed_logs_usage_agg_sum == o.logs_rehydrated_indexed_logs_usage_agg_sum && retention == o.retention + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb b/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb index 53dc75953506..e785659998cb 100644 --- a/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb @@ -33,6 +33,8 @@ class LogsRetentionSumUsage # The retention period in days or "custom" for all custom retention periods. attr_accessor :retention + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsRetentionSumUsage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsRetentionSumUsage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'logs_indexed_logs_usage_sum') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) logs_live_indexed_logs_usage_sum == o.logs_live_indexed_logs_usage_sum && logs_rehydrated_indexed_logs_usage_sum == o.logs_rehydrated_indexed_logs_usage_sum && retention == o.retention + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_service_remapper.rb b/lib/datadog_api_client/v1/models/logs_service_remapper.rb index a5f794eba20c..e6e01309c240 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -36,6 +36,8 @@ class LogsServiceRemapper # Type of logs service remapper. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -66,12 +68,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsServiceRemapper` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsServiceRemapper`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -122,6 +126,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -132,6 +156,7 @@ def ==(o) name == o.name && sources == o.sources && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_status_remapper.rb b/lib/datadog_api_client/v1/models/logs_status_remapper.rb index 416b65964260..4b5f17b3a424 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -50,6 +50,8 @@ class LogsStatusRemapper # Type of logs status remapper. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -80,12 +82,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsStatusRemapper` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsStatusRemapper`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -136,6 +140,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -146,6 +170,7 @@ def ==(o) name == o.name && sources == o.sources && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb b/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb index d49a8839ed91..14111a87b3ac 100644 --- a/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb @@ -52,6 +52,8 @@ class LogsStringBuilderProcessor # Type of logs string builder processor. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -86,12 +88,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsStringBuilderProcessor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsStringBuilderProcessor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -159,6 +163,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,6 +195,7 @@ def ==(o) target == o.target && template == o.template && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb index 710a07247a1e..b0f7eabac385 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -38,6 +38,8 @@ class LogsTraceRemapper # Type of logs trace remapper. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsTraceRemapper` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsTraceRemapper`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -113,6 +117,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -123,6 +147,7 @@ def ==(o) name == o.name && sources == o.sources && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_url_parser.rb b/lib/datadog_api_client/v1/models/logs_url_parser.rb index 8bdb05e51ae4..8cd713bbc4b8 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -39,6 +39,8 @@ class LogsURLParser # Type of logs URL parser. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsURLParser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsURLParser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -156,6 +160,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,6 +192,7 @@ def ==(o) sources == o.sources && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb b/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb index 0db58c6c4d69..ac3bfa804553 100644 --- a/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb @@ -40,6 +40,8 @@ class LogsUserAgentParser # Type of logs User-Agent parser. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -74,12 +76,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsUserAgentParser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::LogsUserAgentParser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -149,6 +153,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -161,6 +185,7 @@ def ==(o) sources == o.sources && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/matching_downtime.rb b/lib/datadog_api_client/v1/models/matching_downtime.rb index 6bf6b774a91d..bcde14a8a9e8 100644 --- a/lib/datadog_api_client/v1/models/matching_downtime.rb +++ b/lib/datadog_api_client/v1/models/matching_downtime.rb @@ -35,6 +35,8 @@ class MatchingDowntime # POSIX timestamp to start the downtime. attr_accessor :start + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MatchingDowntime` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MatchingDowntime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_end') @@ -118,6 +122,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) id == o.id && scope == o.scope && start == o.start + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index 3277e2a486ab..f898083b548b 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -42,6 +42,8 @@ class MetricMetadata # Primary unit of the metric such as `byte` or `operation`. attr_accessor :unit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MetricMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -115,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) statsd_interval == o.statsd_interval && type == o.type && unit == o.unit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/metric_search_response.rb b/lib/datadog_api_client/v1/models/metric_search_response.rb index 453a2aea90d2..9330396e70e2 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -24,6 +24,8 @@ class MetricSearchResponse # Search result. attr_accessor :results + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricSearchResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MetricSearchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'results') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && results == o.results + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/metric_search_response_results.rb b/lib/datadog_api_client/v1/models/metric_search_response_results.rb index 609b469d7ccb..afc6d3460e75 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response_results.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response_results.rb @@ -24,6 +24,8 @@ class MetricSearchResponseResults # List of metrics that match the search query. attr_accessor :metrics + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricSearchResponseResults` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MetricSearchResponseResults`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'metrics') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && metrics == o.metrics + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/metrics_list_response.rb b/lib/datadog_api_client/v1/models/metrics_list_response.rb index 6105eb9d6846..88377716ce1e 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -27,6 +27,8 @@ class MetricsListResponse # List of metric names. attr_accessor :metrics + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MetricsListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && from == o.from && metrics == o.metrics + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index f72c190518da..28a86f73dd57 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -24,6 +24,8 @@ class MetricsPayload # A list of timeseries to submit to Datadog. attr_reader :series + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsPayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MetricsPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'series') @@ -81,6 +85,26 @@ def series=(series) @series = series end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && series == o.series + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb index f29d1286ed65..7d036e0804e1 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -63,6 +63,8 @@ class MetricsQueryMetadata # If the second element is not present, the API returns null. attr_reader :unit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -119,12 +121,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsQueryMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MetricsQueryMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggr') @@ -208,6 +212,26 @@ def unit=(unit) @unit = unit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -227,6 +251,7 @@ def ==(o) start == o.start && tag_set == o.tag_set && unit == o.unit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/metrics_query_response.rb b/lib/datadog_api_client/v1/models/metrics_query_response.rb index 42b4203ebf29..5aec21038ca1 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -48,6 +48,8 @@ class MetricsQueryResponse # End of requested time window, milliseconds since Unix epoch. attr_accessor :to_date + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsQueryResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MetricsQueryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'error') @@ -137,6 +141,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -152,6 +176,7 @@ def ==(o) series == o.series && status == o.status && to_date == o.to_date + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/metrics_query_unit.rb b/lib/datadog_api_client/v1/models/metrics_query_unit.rb index d2ed5ba1b6e1..29784e3cbf20 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -36,6 +36,8 @@ class MetricsQueryUnit # Abbreviation of the unit. attr_accessor :short_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsQueryUnit` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MetricsQueryUnit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'family') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) plural == o.plural && scale_factor == o.scale_factor && short_name == o.short_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index d5b7f41038dc..8a107eb46412 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -72,6 +72,8 @@ class Monitor # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -138,12 +140,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Monitor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Monitor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created') @@ -250,6 +254,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -273,6 +297,7 @@ def ==(o) state == o.state && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb index 0d0df4d2bfb6..1efd9089b4ec 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb @@ -39,6 +39,8 @@ class MonitorFormulaAndFunctionEventQueryDefinition # Search options. attr_accessor :search + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -150,6 +154,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -162,6 +186,7 @@ def ==(o) indexes == o.indexes && name == o.name && search == o.search + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb index 01ca686aa47e..84502792ae91 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb @@ -30,6 +30,8 @@ class MonitorFormulaAndFunctionEventQueryDefinitionCompute # Measurable attribute to compute. attr_accessor :metric + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -97,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) aggregation == o.aggregation && interval == o.interval && metric == o.metric + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb index 3b285736821c..bd4f9bbbad1e 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb @@ -24,6 +24,8 @@ class MonitorFormulaAndFunctionEventQueryDefinitionSearch # Events search string. attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionSearch` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionSearch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -79,6 +83,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb index b0a13d74d746..6a3e77b4a52c 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb @@ -30,6 +30,8 @@ class MonitorFormulaAndFunctionEventQueryGroupBy # Options for sorting group by results. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -97,6 +101,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) facet == o.facet && limit == o.limit && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb index bfc3bb4f4a3e..e08dcd07c1d8 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb @@ -30,6 +30,8 @@ class MonitorFormulaAndFunctionEventQueryGroupBySort # Direction of sort. attr_accessor :order + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryGroupBySort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryGroupBySort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -97,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) aggregation == o.aggregation && metric == o.metric && order == o.order + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response.rb index bcba7c8ec46b..1cf7d54c17d6 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response.rb @@ -30,6 +30,8 @@ class MonitorGroupSearchResponse # Metadata about the response. attr_accessor :metadata + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorGroupSearchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'counts') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) counts == o.counts && groups == o.groups && metadata == o.metadata + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb index fced71d74846..240110b309a9 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb @@ -27,6 +27,8 @@ class MonitorGroupSearchResponseCounts # Search facets. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponseCounts` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorGroupSearchResponseCounts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'status') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && status == o.status && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_result.rb b/lib/datadog_api_client/v1/models/monitor_group_search_result.rb index 8f8d4fa7b40d..4923680a1082 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_result.rb @@ -42,6 +42,8 @@ class MonitorGroupSearchResult # The different states your monitor can be in. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -86,12 +88,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResult` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorGroupSearchResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'group') @@ -125,6 +129,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) monitor_id == o.monitor_id && monitor_name == o.monitor_name && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index fe7ae9646f94..11ce78b2e636 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -153,6 +153,8 @@ class MonitorOptions # List of requests that can be used in the monitor query. **This feature is currently in beta.** attr_accessor :variables + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -255,12 +257,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -418,6 +422,26 @@ def min_failure_duration=(min_failure_duration) @min_failure_duration = min_failure_duration end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -455,6 +479,7 @@ def ==(o) thresholds == o.thresholds && timeout_h == o.timeout_h && variables == o.variables + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb index b3f0e8be033b..ef2aaec72b1a 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -30,6 +30,8 @@ class MonitorOptionsAggregation # Metric type used in the monitor. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptionsAggregation` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorOptionsAggregation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'group_by') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) group_by == o.group_by && metric == o.metric && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb index 9d46f33b5329..545ea649b482 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb @@ -24,6 +24,8 @@ class MonitorOptionsCustomSchedule # Array of custom schedule recurrences. attr_accessor :recurrences + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptionsCustomSchedule` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorOptionsCustomSchedule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'recurrences') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && recurrences == o.recurrences + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb index c1b01785f536..182d0b85d583 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb @@ -30,6 +30,8 @@ class MonitorOptionsCustomScheduleRecurrence # Defines the timezone the schedule runs on. attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptionsCustomScheduleRecurrence` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorOptionsCustomScheduleRecurrence`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'rrule') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) rrule == o.rrule && start == o.start && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb index 2fc1699dec53..d10cd516eb87 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb @@ -27,6 +27,8 @@ class MonitorOptionsSchedulingOptions # Configuration options for the evaluation window. If `hour_starts` is set, no other fields may be set. Otherwise, `day_starts` and `month_starts` must be set together. attr_accessor :evaluation_window + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptionsSchedulingOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorOptionsSchedulingOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_schedule') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && custom_schedule == o.custom_schedule && evaluation_window == o.evaluation_window + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb index fcba4cff366d..cc4477875af2 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb @@ -30,6 +30,8 @@ class MonitorOptionsSchedulingOptionsEvaluationWindow # The day of the month at which a one month cumulative evaluation window starts. attr_reader :month_starts + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptionsSchedulingOptionsEvaluationWindow` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorOptionsSchedulingOptionsEvaluationWindow`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'day_starts') @@ -116,6 +120,26 @@ def month_starts=(month_starts) @month_starts = month_starts end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -125,6 +149,7 @@ def ==(o) day_starts == o.day_starts && hour_starts == o.hour_starts && month_starts == o.month_starts + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_search_count_item.rb b/lib/datadog_api_client/v1/models/monitor_search_count_item.rb index ee0b2bd9c7c8..dc04012b9802 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_count_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_count_item.rb @@ -27,6 +27,8 @@ class MonitorSearchCountItem # The facet value. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchCountItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchCountItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && count == o.count && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response.rb b/lib/datadog_api_client/v1/models/monitor_search_response.rb index 62e75068a6cf..4b2a302e7455 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -30,6 +30,8 @@ class MonitorSearchResponse # The list of found monitors. attr_accessor :monitors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'counts') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) counts == o.counts && metadata == o.metadata && monitors == o.monitors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb index 2c81bbcf5181..b89010b79dec 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb @@ -33,6 +33,8 @@ class MonitorSearchResponseCounts # Search facets. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCounts` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchResponseCounts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'muted') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) status == o.status && tag == o.tag && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb b/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb index 22f35c3d78f5..a6bda902a44f 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb @@ -33,6 +33,8 @@ class MonitorSearchResponseMetadata # The total number of monitors. attr_accessor :total_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) page_count == o.page_count && per_page == o.per_page && total_count == o.total_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_search_result.rb b/lib/datadog_api_client/v1/models/monitor_search_result.rb index d9abd830960d..634f233ca93f 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -63,6 +63,8 @@ class MonitorSearchResult # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -119,12 +121,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResult` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'classification') @@ -188,6 +192,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -207,6 +231,7 @@ def ==(o) status == o.status && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb b/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb index 21bbd751e7b5..e5bf322893b7 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb @@ -27,6 +27,8 @@ class MonitorSearchResultNotification # The username receiving the notification attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResultNotification` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchResultNotification`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'handle') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && handle == o.handle && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index daec7316dbfc..3a49976ef046 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -25,6 +25,8 @@ class MonitorState # the list of groups your monitor is broken down on. attr_accessor :groups + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorState` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorState`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'groups') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && groups == o.groups + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_state_group.rb b/lib/datadog_api_client/v1/models/monitor_state_group.rb index c6e5f34b2391..19fb68b80235 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -39,6 +39,8 @@ class MonitorStateGroup # The different states your monitor can be in. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorStateGroup` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorStateGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'last_nodata_ts') @@ -106,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) last_triggered_ts == o.last_triggered_ts && name == o.name && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb index 85bf36c70f37..53177a3f1654 100644 --- a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb @@ -63,6 +63,8 @@ class MonitorSummaryWidgetDefinition # Type of the monitor summary widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -113,12 +115,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSummaryWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSummaryWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'color_preference') @@ -207,6 +211,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -227,6 +251,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb b/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb index 400d93b7ea91..a921c11fdbed 100644 --- a/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb @@ -27,6 +27,8 @@ class MonitorThresholdWindowOptions # Describes how long a metric must be anomalous before an alert triggers. attr_accessor :trigger_window + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -62,12 +64,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorThresholdWindowOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorThresholdWindowOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'recovery_window') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -87,6 +111,7 @@ def ==(o) self.class == o.class && recovery_window == o.recovery_window && trigger_window == o.trigger_window + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index cdfd7aca9aa9..4e77aa643992 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -39,6 +39,8 @@ class MonitorThresholds # The monitor `WARNING` recovery threshold. attr_accessor :warning_recovery + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -85,12 +87,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorThresholds` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorThresholds`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'critical') @@ -118,6 +122,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -130,6 +154,7 @@ def ==(o) unknown == o.unknown && warning == o.warning && warning_recovery == o.warning_recovery + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monitor_update_request.rb b/lib/datadog_api_client/v1/models/monitor_update_request.rb index e58ddc3a3bc8..6cc10e3a79ab 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -69,6 +69,8 @@ class MonitorUpdateRequest # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -133,12 +135,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created') @@ -210,6 +214,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -232,6 +256,7 @@ def ==(o) state == o.state && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb index 764bc34a2e25..42297d5ea7dd 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb @@ -49,6 +49,8 @@ class MonthlyUsageAttributionBody # Fields in Usage Summary by tag(s). attr_accessor :values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -95,12 +97,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonthlyUsageAttributionBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'month') @@ -136,6 +140,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -150,6 +174,7 @@ def ==(o) tags == o.tags && updated_at == o.updated_at && values == o.values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb index aea8f4a18beb..486cd8ea0fec 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb @@ -27,6 +27,8 @@ class MonthlyUsageAttributionMetadata # The metadata for the current pagination. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonthlyUsageAttributionMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregates') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && aggregates == o.aggregates && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb index 72f338b518c5..f970777ab4a3 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb @@ -24,6 +24,8 @@ class MonthlyUsageAttributionPagination # The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of the `next_record_id`. attr_accessor :next_record_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonthlyUsageAttributionPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'next_record_id') @@ -69,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -76,6 +100,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && next_record_id == o.next_record_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb index 850cc06a2d77..07e6b58d496d 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb @@ -27,6 +27,8 @@ class MonthlyUsageAttributionResponse # Get usage summary by tag(s). attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonthlyUsageAttributionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'metadata') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && metadata == o.metadata && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb index 770d2f8974b6..f30d4f79fc0a 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb @@ -435,6 +435,8 @@ class MonthlyUsageAttributionValues # The total workflow executions usage by tag(s). attr_accessor :workflow_executions_usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -733,12 +735,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionValues` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonthlyUsageAttributionValues`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_percentage') @@ -1294,6 +1298,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -1438,6 +1462,7 @@ def ==(o) vuln_management_hosts_usage == o.vuln_management_hosts_usage && workflow_executions_percentage == o.workflow_executions_percentage && workflow_executions_usage == o.workflow_executions_usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/note_widget_definition.rb b/lib/datadog_api_client/v1/models/note_widget_definition.rb index 18fead98480d..087a443dde75 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -51,6 +51,8 @@ class NoteWidgetDefinition # Vertical alignment. attr_accessor :vertical_align + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NoteWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NoteWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'background_color') @@ -171,6 +175,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -187,6 +211,7 @@ def ==(o) tick_pos == o.tick_pos && type == o.type && vertical_align == o.vertical_align + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb index f2022f70424c..40334df47d22 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -30,6 +30,8 @@ class NotebookAbsoluteTime # The start time. attr_reader :start + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookAbsoluteTime` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookAbsoluteTime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_end') @@ -108,6 +112,26 @@ def start=(start) @start = start end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) _end == o._end && live == o.live && start == o.start + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index 865d46fa23f3..dc432f17d805 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -48,6 +48,8 @@ class NotebookAuthor # Whether the user is verified. attr_accessor :verified + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -97,12 +99,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookAuthor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookAuthor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -142,6 +146,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -157,6 +181,7 @@ def ==(o) status == o.status && title == o.title && verified == o.verified + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_cell_response.rb b/lib/datadog_api_client/v1/models/notebook_cell_response.rb index e93ce47a18d2..244917cdd3fa 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -31,6 +31,8 @@ class NotebookCellResponse # Type of the Notebook Cell resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCellResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookCellResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -120,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -129,6 +153,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb b/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb index f530aab1083b..fbf2711b1e1e 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb @@ -31,6 +31,8 @@ class NotebookCellUpdateRequest # Type of the Notebook Cell resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCellUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookCellUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -120,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -129,6 +153,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_create_data.rb b/lib/datadog_api_client/v1/models/notebook_create_data.rb index b1fffe46fdd0..4d8bd5736d14 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -27,6 +27,8 @@ class NotebookCreateData # Type of the Notebook resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb index b5791328cc54..b08e69fff4a3 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb @@ -36,6 +36,8 @@ class NotebookCreateDataAttributes # Notebook global timeframe. attr_reader :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCreateDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookCreateDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cells') @@ -147,6 +151,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -158,6 +182,7 @@ def ==(o) name == o.name && status == o.status && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_create_request.rb b/lib/datadog_api_client/v1/models/notebook_create_request.rb index 5021fb966d91..dceb8be3eac1 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -24,6 +24,8 @@ class NotebookCreateRequest # The data for a notebook create request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb index e1e775904b97..dd5887d54832 100644 --- a/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb @@ -35,6 +35,8 @@ class NotebookDistributionCellAttributes # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookDistributionCellAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookDistributionCellAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'definition') @@ -116,6 +120,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -126,6 +150,7 @@ def ==(o) graph_size == o.graph_size && split_by == o.split_by && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb index fa00d32d793c..a8554a60eec7 100644 --- a/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb @@ -33,6 +33,8 @@ class NotebookHeatMapCellAttributes # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookHeatMapCellAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookHeatMapCellAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'definition') @@ -114,6 +118,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -124,6 +148,7 @@ def ==(o) graph_size == o.graph_size && split_by == o.split_by && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb index 049b13baa6d5..ad823bc75c5b 100644 --- a/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb @@ -30,6 +30,8 @@ class NotebookLogStreamCellAttributes # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -66,12 +68,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookLogStreamCellAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookLogStreamCellAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'definition') @@ -105,6 +109,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -114,6 +138,7 @@ def ==(o) definition == o.definition && graph_size == o.graph_size && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb index d83d8df50025..c5e43573bfa6 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb @@ -24,6 +24,8 @@ class NotebookMarkdownCellAttributes # Text in a notebook is formatted with [Markdown](https://daringfireball.net/projects/markdown/), which enables the use of headings, subheadings, links, images, lists, and code blocks. attr_reader :definition + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookMarkdownCellAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookMarkdownCellAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'definition') @@ -79,6 +83,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && definition == o.definition + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb index 6db3a0f78502..2c1ddcbdf2c7 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb @@ -27,6 +27,8 @@ class NotebookMarkdownCellDefinition # Type of the markdown cell. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookMarkdownCellDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookMarkdownCellDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'text') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && text == o.text && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index 3c5c38c8f784..94817f2d6fb9 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -30,6 +30,8 @@ class NotebookMetadata # Metadata type of the notebook. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -66,12 +68,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_template') @@ -87,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) is_template == o.is_template && take_snapshots == o.take_snapshots && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_relative_time.rb b/lib/datadog_api_client/v1/models/notebook_relative_time.rb index 65742b109ecb..44afd83a32fa 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -24,6 +24,8 @@ class NotebookRelativeTime # The available timeframes depend on the widget you are using. attr_reader :live_span + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookRelativeTime` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookRelativeTime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'live_span') @@ -79,6 +83,26 @@ def live_span=(live_span) @live_span = live_span end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && live_span == o.live_span + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index 0f2a43c7e133..d76057931171 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -24,6 +24,8 @@ class NotebookResponse # The data for a notebook. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_response_data.rb b/lib/datadog_api_client/v1/models/notebook_response_data.rb index b5d96df8daee..a17add410ab3 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -30,6 +30,8 @@ class NotebookResponseData # Type of the Notebook resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb index ab36d3325121..ab1c4be24bcb 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb @@ -45,6 +45,8 @@ class NotebookResponseDataAttributes # Notebook global timeframe. attr_reader :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookResponseDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookResponseDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'author') @@ -174,6 +178,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -188,6 +212,7 @@ def ==(o) name == o.name && status == o.status && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_split_by.rb b/lib/datadog_api_client/v1/models/notebook_split_by.rb index c8509a718a44..44ac9e2588bb 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -27,6 +27,8 @@ class NotebookSplitBy # Tags to split on. attr_reader :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookSplitBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookSplitBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'keys') @@ -103,6 +107,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) self.class == o.class && keys == o.keys && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb index bcd20a227d3c..3b5b1c7f2c19 100644 --- a/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb @@ -33,6 +33,8 @@ class NotebookTimeseriesCellAttributes # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookTimeseriesCellAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookTimeseriesCellAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'definition') @@ -114,6 +118,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -124,6 +148,7 @@ def ==(o) graph_size == o.graph_size && split_by == o.split_by && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb index 45b2f5f775ae..a4aa14907148 100644 --- a/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb @@ -33,6 +33,8 @@ class NotebookToplistCellAttributes # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookToplistCellAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookToplistCellAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'definition') @@ -114,6 +118,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -124,6 +148,7 @@ def ==(o) graph_size == o.graph_size && split_by == o.split_by && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_update_data.rb b/lib/datadog_api_client/v1/models/notebook_update_data.rb index 7751d784e671..40915fed4afd 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -27,6 +27,8 @@ class NotebookUpdateData # Type of the Notebook resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb index 11b7dbd78df0..4c65566b0db6 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb @@ -36,6 +36,8 @@ class NotebookUpdateDataAttributes # Notebook global timeframe. attr_reader :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookUpdateDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookUpdateDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cells') @@ -147,6 +151,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -158,6 +182,7 @@ def ==(o) name == o.name && status == o.status && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebook_update_request.rb b/lib/datadog_api_client/v1/models/notebook_update_request.rb index 1aec519c85e3..6de88074f2c4 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -24,6 +24,8 @@ class NotebookUpdateRequest # The data for a notebook update request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebookUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index 8b42cd8cdd0c..90212ff593c2 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -27,6 +27,8 @@ class NotebooksResponse # Searches metadata returned by the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebooksResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebooks_response_data.rb b/lib/datadog_api_client/v1/models/notebooks_response_data.rb index 8a74a2d3f0da..2f6c38b64320 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -30,6 +30,8 @@ class NotebooksResponseData # Type of the Notebook resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebooksResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb b/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb index 947691af2fac..ba1f1b5d78e9 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb @@ -45,6 +45,8 @@ class NotebooksResponseDataAttributes # Notebook global timeframe. attr_accessor :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebooksResponseDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'author') @@ -152,6 +156,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -166,6 +190,7 @@ def ==(o) name == o.name && status == o.status && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb index 4b409db224d0..8d84681bf761 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -24,6 +24,8 @@ class NotebooksResponseMeta # Pagination metadata returned by the API. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebooksResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/notebooks_response_page.rb b/lib/datadog_api_client/v1/models/notebooks_response_page.rb index 39360a356491..28578129aadb 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -27,6 +27,8 @@ class NotebooksResponsePage # The total number of notebooks returned. attr_accessor :total_filtered_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponsePage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebooksResponsePage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && total_count == o.total_count && total_filtered_count == o.total_filtered_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/org_downgraded_response.rb b/lib/datadog_api_client/v1/models/org_downgraded_response.rb index cceca7194371..53e4e9c70d79 100644 --- a/lib/datadog_api_client/v1/models/org_downgraded_response.rb +++ b/lib/datadog_api_client/v1/models/org_downgraded_response.rb @@ -24,6 +24,8 @@ class OrgDowngradedResponse # Information pertaining to the downgraded child organization. attr_accessor :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrgDowngradedResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrgDowngradedResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'message') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index 315d54e62edb..f9406983eb7a 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -45,6 +45,8 @@ class Organization # Only available for MSP customers. Allows child organizations to be created on a trial plan. attr_accessor :trial + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Organization` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Organization`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'billing') @@ -142,6 +146,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -156,6 +180,7 @@ def ==(o) settings == o.settings && subscription == o.subscription && trial == o.trial + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index 6d3e445f333a..7b2d84be48f8 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -26,6 +26,8 @@ class OrganizationBilling # The type of billing. Only `parent_billing` is supported. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -51,12 +53,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationBilling` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationBilling`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -64,6 +68,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -71,6 +95,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_create_body.rb b/lib/datadog_api_client/v1/models/organization_create_body.rb index 83f6694df9bc..8615c5daf862 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -30,6 +30,8 @@ class OrganizationCreateBody # Subscription definition. attr_accessor :subscription + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationCreateBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationCreateBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'billing') @@ -101,6 +105,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) billing == o.billing && name == o.name && subscription == o.subscription + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_create_response.rb b/lib/datadog_api_client/v1/models/organization_create_response.rb index 35a16b367f0b..3e6d9e3974d1 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -33,6 +33,8 @@ class OrganizationCreateResponse # Create, edit, and disable users. attr_accessor :user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationCreateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) application_key == o.application_key && org == o.org && user == o.user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_list_response.rb b/lib/datadog_api_client/v1/models/organization_list_response.rb index acdf9db5cb44..73f1b5bba36c 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -24,6 +24,8 @@ class OrganizationListResponse # Array of organization objects. attr_accessor :orgs + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'orgs') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && orgs == o.orgs + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index 40ab14da4d24..0baf232d2cfb 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -24,6 +24,8 @@ class OrganizationResponse # Create, edit, and manage organizations. attr_accessor :org + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'org') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && org == o.org + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index 8c117061fd37..a18015141113 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -52,6 +52,8 @@ class OrganizationSettings # Has one property enabled (boolean). attr_accessor :saml_strict_mode + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -102,12 +104,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettings` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationSettings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'private_widget_share') @@ -151,6 +155,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -167,6 +191,7 @@ def ==(o) saml_idp_metadata_uploaded == o.saml_idp_metadata_uploaded && saml_login_url == o.saml_login_url && saml_strict_mode == o.saml_strict_mode + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml.rb b/lib/datadog_api_client/v1/models/organization_settings_saml.rb index 2ee3501893c6..a6a452eaecae 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -25,6 +25,8 @@ class OrganizationSettingsSaml # Whether or not SAML is enabled for this organization. attr_accessor :enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSaml` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationSettingsSaml`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enabled') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && enabled == o.enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb index 40f4a3853476..5b4b8d8bf820 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb @@ -27,6 +27,8 @@ class OrganizationSettingsSamlAutocreateUsersDomains # Whether or not the automated user creation based on SAML domain is enabled. attr_accessor :enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSamlAutocreateUsersDomains` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationSettingsSamlAutocreateUsersDomains`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'domains') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && domains == o.domains && enabled == o.enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb index a99b62e0cb33..a032b1d224cb 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb @@ -25,6 +25,8 @@ class OrganizationSettingsSamlIdpInitiatedLogin # in the [SAML documentation](https://docs.datadoghq.com/account_management/saml/#idp-initiated-login). attr_accessor :enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSamlIdpInitiatedLogin` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationSettingsSamlIdpInitiatedLogin`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enabled') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && enabled == o.enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb index b72c2e2c5d1b..d95a73e50072 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb @@ -25,6 +25,8 @@ class OrganizationSettingsSamlStrictMode # Learn more on the [SAML Strict documentation](https://docs.datadoghq.com/account_management/saml/#saml-strict). attr_accessor :enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSamlStrictMode` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationSettingsSamlStrictMode`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enabled') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && enabled == o.enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index 7fc2d7421fdb..3e34b2c12490 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -26,6 +26,8 @@ class OrganizationSubscription # The subscription type. Types available are `trial`, `free`, and `pro`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -51,12 +53,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSubscription` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::OrganizationSubscription`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -64,6 +68,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -71,6 +95,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/pager_duty_service.rb b/lib/datadog_api_client/v1/models/pager_duty_service.rb index 1a20164122d6..e76fc2e4c8d2 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -27,6 +27,8 @@ class PagerDutyService # Your service name associated with a service key in PagerDuty. attr_reader :service_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PagerDutyService` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::PagerDutyService`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'service_key') @@ -99,6 +103,26 @@ def service_name=(service_name) @service_name = service_name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && service_key == o.service_key && service_name == o.service_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/pager_duty_service_key.rb b/lib/datadog_api_client/v1/models/pager_duty_service_key.rb index e2fddadac7c5..8a401df1af0f 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service_key.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service_key.rb @@ -24,6 +24,8 @@ class PagerDutyServiceKey # Your service key in PagerDuty. attr_reader :service_key + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PagerDutyServiceKey` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::PagerDutyServiceKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'service_key') @@ -79,6 +83,26 @@ def service_key=(service_key) @service_key = service_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && service_key == o.service_key + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/pager_duty_service_name.rb b/lib/datadog_api_client/v1/models/pager_duty_service_name.rb index 73cf17d54ed2..4d6ae129b535 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service_name.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service_name.rb @@ -24,6 +24,8 @@ class PagerDutyServiceName # Your service name associated service key in PagerDuty. attr_reader :service_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PagerDutyServiceName` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::PagerDutyServiceName`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'service_name') @@ -79,6 +83,26 @@ def service_name=(service_name) @service_name = service_name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && service_name == o.service_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index 74c01402dc71..0c6bc907dfc4 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -27,6 +27,8 @@ class Pagination # Total count of elements matched by the filter. attr_accessor :total_filtered_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Pagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Pagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && total_count == o.total_count && total_filtered_count == o.total_filtered_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb b/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb index ad71519ba594..f084a23b77b3 100644 --- a/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb +++ b/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb @@ -30,6 +30,8 @@ class PowerpackTemplateVariableContents # One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. attr_reader :values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PowerpackTemplateVariableContents` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::PowerpackTemplateVariableContents`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -110,6 +114,26 @@ def values=(values) @values = values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -119,6 +143,7 @@ def ==(o) name == o.name && prefix == o.prefix && values == o.values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/powerpack_template_variables.rb b/lib/datadog_api_client/v1/models/powerpack_template_variables.rb index a490c3916f6f..c5bfe6d03acb 100644 --- a/lib/datadog_api_client/v1/models/powerpack_template_variables.rb +++ b/lib/datadog_api_client/v1/models/powerpack_template_variables.rb @@ -27,6 +27,8 @@ class PowerpackTemplateVariables # Template variables controlled by the external resource, such as the dashboard this powerpack is on. attr_accessor :controlled_externally + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PowerpackTemplateVariables` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::PowerpackTemplateVariables`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'controlled_by_powerpack') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && controlled_by_powerpack == o.controlled_by_powerpack && controlled_externally == o.controlled_externally + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb b/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb index c2cf99ec29ee..e88d0c36a3e3 100644 --- a/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb @@ -42,6 +42,8 @@ class PowerpackWidgetDefinition # Type of the powerpack widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PowerpackWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::PowerpackWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'background_color') @@ -144,6 +148,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -157,6 +181,7 @@ def ==(o) template_variables == o.template_variables && title == o.title && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/process_query_definition.rb b/lib/datadog_api_client/v1/models/process_query_definition.rb index 369d86c2aac0..bfc1ffddad6f 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -33,6 +33,8 @@ class ProcessQueryDefinition # Your chosen search term. attr_accessor :search_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ProcessQueryDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ProcessQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter_by') @@ -119,6 +123,26 @@ def metric=(metric) @metric = metric end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -129,6 +153,7 @@ def ==(o) limit == o.limit && metric == o.metric && search_by == o.search_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/query_value_widget_definition.rb b/lib/datadog_api_client/v1/models/query_value_widget_definition.rb index 0c4b4a5b1caa..788f56661179 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_definition.rb @@ -57,6 +57,8 @@ class QueryValueWidgetDefinition # Type of the query value widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -103,12 +105,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::QueryValueWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::QueryValueWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'autoscale') @@ -201,6 +205,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -219,6 +243,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/query_value_widget_request.rb b/lib/datadog_api_client/v1/models/query_value_widget_request.rb index 1ebfe9d23263..3ce0c45ab3f9 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_request.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_request.rb @@ -66,6 +66,8 @@ class QueryValueWidgetRequest # The log query. attr_accessor :security_query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -118,12 +120,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::QueryValueWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::QueryValueWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregator') @@ -193,6 +197,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -214,6 +238,7 @@ def ==(o) response_format == o.response_format && rum_query == o.rum_query && security_query == o.security_query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb b/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb index fe3070c70b93..3d5630f422f5 100644 --- a/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb @@ -45,6 +45,8 @@ class ReferenceTableLogsLookupProcessor # Type of logs lookup processor. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -79,12 +81,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ReferenceTableLogsLookupProcessor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ReferenceTableLogsLookupProcessor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -163,6 +167,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -175,6 +199,7 @@ def ==(o) source == o.source && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/response_meta_attributes.rb b/lib/datadog_api_client/v1/models/response_meta_attributes.rb index 16af5e995b71..93d197cd991e 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -24,6 +24,8 @@ class ResponseMetaAttributes # Pagination object. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ResponseMetaAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ResponseMetaAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb b/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb index d449f165ac66..09871dce86cf 100644 --- a/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb @@ -45,6 +45,8 @@ class RunWorkflowWidgetDefinition # Workflow id. attr_reader :workflow_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::RunWorkflowWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::RunWorkflowWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -157,6 +161,26 @@ def workflow_id=(workflow_id) @workflow_id = workflow_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,6 +195,7 @@ def ==(o) title_size == o.title_size && type == o.type && workflow_id == o.workflow_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb b/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb index beee48e01b60..6883510026f1 100644 --- a/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb +++ b/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb @@ -27,6 +27,8 @@ class RunWorkflowWidgetInput # Dashboard template variable. Can be suffixed with '.value' or '.key'. attr_reader :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::RunWorkflowWidgetInput` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::RunWorkflowWidgetInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -99,6 +103,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && name == o.name && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/scatter_plot_request.rb b/lib/datadog_api_client/v1/models/scatter_plot_request.rb index 2e8565818678..6238cbde0e06 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -51,6 +51,8 @@ class ScatterPlotRequest # The log query. attr_accessor :security_query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterPlotRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ScatterPlotRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregator') @@ -142,6 +146,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -158,6 +182,7 @@ def ==(o) q == o.q && rum_query == o.rum_query && security_query == o.security_query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb index dfbf0343439f..a1f0c325bce9 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb @@ -51,6 +51,8 @@ class ScatterPlotWidgetDefinition # Axis controls for the widget. attr_accessor :yaxis + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterPlotWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ScatterPlotWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'color_by_groups') @@ -175,6 +179,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -191,6 +215,7 @@ def ==(o) type == o.type && xaxis == o.xaxis && yaxis == o.yaxis + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb index 905eb003712a..5b0d32c6ce27 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb @@ -30,6 +30,8 @@ class ScatterPlotWidgetDefinitionRequests # Updated scatter plot. attr_accessor :y + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterPlotWidgetDefinitionRequests` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ScatterPlotWidgetDefinitionRequests`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'table') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) table == o.table && x == o.x && y == o.y + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb index 9fd4638a0d0c..194dd3b31aa0 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -30,6 +30,8 @@ class ScatterplotTableRequest # Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. attr_accessor :response_format + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterplotTableRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ScatterplotTableRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'formulas') @@ -83,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -92,6 +116,7 @@ def ==(o) formulas == o.formulas && queries == o.queries && response_format == o.response_format + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb index be886062aaeb..876e97579e80 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -30,6 +30,8 @@ class ScatterplotWidgetFormula # String expression built from queries, formulas, and functions. attr_reader :formula + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterplotWidgetFormula` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ScatterplotWidgetFormula`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_alias') @@ -108,6 +112,26 @@ def formula=(formula) @formula = formula end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) _alias == o._alias && dimension == o.dimension && formula == o.formula + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_service_level_objective.rb b/lib/datadog_api_client/v1/models/search_service_level_objective.rb index ff26802b39b0..cadb1366611d 100644 --- a/lib/datadog_api_client/v1/models/search_service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/search_service_level_objective.rb @@ -24,6 +24,8 @@ class SearchServiceLevelObjective # A service level objective ID and attributes. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchServiceLevelObjective` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchServiceLevelObjective`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb b/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb index 25a2b2b15bc5..07553dbe58f9 100644 --- a/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +++ b/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb @@ -83,6 +83,8 @@ class SearchServiceLevelObjectiveAttributes # objective object. attr_accessor :thresholds + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -149,12 +151,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchServiceLevelObjectiveAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchServiceLevelObjectiveAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'all_tags') @@ -238,6 +242,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -260,6 +284,7 @@ def ==(o) status == o.status && team_tags == o.team_tags && thresholds == o.thresholds + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb b/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb index 5fb528e33d62..5b5ef7e05cf0 100644 --- a/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb +++ b/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb @@ -33,6 +33,8 @@ class SearchServiceLevelObjectiveData # The type of the object, must be `slo`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchServiceLevelObjectiveData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchServiceLevelObjectiveData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -82,6 +86,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -91,6 +115,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_query.rb b/lib/datadog_api_client/v1/models/search_slo_query.rb index fba320cace13..1a3f82235b0d 100644 --- a/lib/datadog_api_client/v1/models/search_slo_query.rb +++ b/lib/datadog_api_client/v1/models/search_slo_query.rb @@ -33,6 +33,8 @@ class SearchSLOQuery # A Datadog metric query for good events. attr_accessor :numerator + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'denominator') @@ -92,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -101,6 +125,7 @@ def ==(o) denominator == o.denominator && metrics == o.metrics && numerator == o.numerator + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_response.rb b/lib/datadog_api_client/v1/models/search_slo_response.rb index 3f664118bced..8ebef8ee4d21 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response.rb @@ -30,6 +30,8 @@ class SearchSLOResponse # Searches metadata returned by the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data.rb b/lib/datadog_api_client/v1/models/search_slo_response_data.rb index 374b333cdac8..ccac3a1f878b 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data.rb @@ -27,6 +27,8 @@ class SearchSLOResponseData # Type of service level objective result. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb index 097aa6fbfe86..5b4795c745bd 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb @@ -27,6 +27,8 @@ class SearchSLOResponseDataAttributes # SLOs attr_accessor :slos + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOResponseDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOResponseDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facets') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && facets == o.facets && slos == o.slos + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb index ce40792ba574..7509353eb6e2 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb @@ -45,6 +45,8 @@ class SearchSLOResponseDataAttributesFacets # Timeframes of SLOs. attr_accessor :timeframe + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOResponseDataAttributesFacets` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOResponseDataAttributesFacets`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'all_tags') @@ -140,6 +144,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -154,6 +178,7 @@ def ==(o) target == o.target && team_tags == o.team_tags && timeframe == o.timeframe + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb index f6290bdc8260..e0f9e2263cc8 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb @@ -27,6 +27,8 @@ class SearchSLOResponseDataAttributesFacetsObjectInt # Facet attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOResponseDataAttributesFacetsObjectInt` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOResponseDataAttributesFacetsObjectInt`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && count == o.count && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb index aae9ed78a1de..e588a5dfe20b 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb @@ -27,6 +27,8 @@ class SearchSLOResponseDataAttributesFacetsObjectString # Facet attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOResponseDataAttributesFacetsObjectString` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOResponseDataAttributesFacetsObjectString`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && count == o.count && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_response_links.rb b/lib/datadog_api_client/v1/models/search_slo_response_links.rb index fbd4a6ee83fa..a57d7b02e601 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_links.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_links.rb @@ -36,6 +36,8 @@ class SearchSLOResponseLinks # Link to current page. attr_accessor :_self + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -77,12 +79,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'first') @@ -106,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) _next == o._next && prev == o.prev && _self == o._self + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_response_meta.rb b/lib/datadog_api_client/v1/models/search_slo_response_meta.rb index d69f4300d76f..10d1003cdb19 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_meta.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_meta.rb @@ -24,6 +24,8 @@ class SearchSLOResponseMeta # Pagination metadata returned by the API. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb b/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb index efbe8c8934a6..5dfaa826c58f 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb @@ -45,6 +45,8 @@ class SearchSLOResponseMetaPage # Type of pagination. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOResponseMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOResponseMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'first_number') @@ -124,6 +128,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) size == o.size && total == o.total && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/search_slo_threshold.rb b/lib/datadog_api_client/v1/models/search_slo_threshold.rb index fd1fbcf0a893..956e6890b61f 100644 --- a/lib/datadog_api_client/v1/models/search_slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/search_slo_threshold.rb @@ -45,6 +45,8 @@ class SearchSLOThreshold # Ignored in create/update requests. attr_accessor :warning_display + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -86,12 +88,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchSLOThreshold` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchSLOThreshold`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'target') @@ -144,6 +148,26 @@ def timeframe=(timeframe) @timeframe = timeframe end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -155,6 +179,7 @@ def ==(o) timeframe == o.timeframe && warning == o.warning && warning_display == o.warning_display + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb b/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb index 300b370701b7..1df411b874ea 100644 --- a/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb +++ b/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb @@ -33,6 +33,8 @@ class SelectableTemplateVariableItems # List of visible tag values on the shared dashboard. attr_accessor :visible_tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SelectableTemplateVariableItems` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SelectableTemplateVariableItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'default_value') @@ -98,6 +102,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) name == o.name && prefix == o.prefix && visible_tags == o.visible_tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index 6198483aec41..ac74a0cb9eb3 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -40,6 +40,8 @@ class Series # The type of the metric. Valid types are "",`count`, `gauge`, and `rate`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -82,12 +84,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Series` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Series`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'host') @@ -148,6 +152,26 @@ def points=(points) @points = points end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -160,6 +184,7 @@ def ==(o) points == o.points && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index 61d9acba3c16..41faf53d5df5 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -39,6 +39,8 @@ class ServiceCheck # Time of check. attr_accessor :timestamp + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceCheck` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ServiceCheck`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'check') @@ -159,6 +163,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,6 +195,7 @@ def ==(o) status == o.status && tags == o.tags && timestamp == o.timestamp + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/service_level_objective.rb b/lib/datadog_api_client/v1/models/service_level_objective.rb index 29469e9e708c..e741c5e29923 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -102,6 +102,8 @@ class ServiceLevelObjective # threshold. attr_accessor :warning_threshold + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -166,12 +168,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceLevelObjective` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ServiceLevelObjective`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -293,6 +297,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -316,6 +340,7 @@ def ==(o) timeframe == o.timeframe && type == o.type && warning_threshold == o.warning_threshold + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/service_level_objective_query.rb b/lib/datadog_api_client/v1/models/service_level_objective_query.rb index b2632ae7d6f2..3f86b9844711 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective_query.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective_query.rb @@ -29,6 +29,8 @@ class ServiceLevelObjectiveQuery # A Datadog metric query for good events. attr_reader :numerator + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -55,12 +57,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceLevelObjectiveQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ServiceLevelObjectiveQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'denominator') @@ -101,6 +105,26 @@ def numerator=(numerator) @numerator = numerator end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -109,6 +133,7 @@ def ==(o) self.class == o.class && denominator == o.denominator && numerator == o.numerator + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/service_level_objective_request.rb b/lib/datadog_api_client/v1/models/service_level_objective_request.rb index e3c19901e41c..f3956fa964dd 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective_request.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective_request.rb @@ -76,6 +76,8 @@ class ServiceLevelObjectiveRequest # threshold. attr_accessor :warning_threshold + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -130,12 +132,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceLevelObjectiveRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ServiceLevelObjectiveRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -235,6 +239,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -253,6 +277,7 @@ def ==(o) timeframe == o.timeframe && type == o.type && warning_threshold == o.warning_threshold + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/service_map_widget_definition.rb b/lib/datadog_api_client/v1/models/service_map_widget_definition.rb index 4b6b925a315d..34769809a8f5 100644 --- a/lib/datadog_api_client/v1/models/service_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/service_map_widget_definition.rb @@ -42,6 +42,8 @@ class ServiceMapWidgetDefinition # Type of the service map widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceMapWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ServiceMapWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -163,6 +167,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -176,6 +200,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb b/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb index a5e1b8e8387c..b9ff308149e8 100644 --- a/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb @@ -69,6 +69,8 @@ class ServiceSummaryWidgetDefinition # Type of the service summary widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -123,12 +125,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceSummaryWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ServiceSummaryWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'display_format') @@ -247,6 +251,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -269,6 +293,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/shared_dashboard.rb b/lib/datadog_api_client/v1/models/shared_dashboard.rb index 5801466a5cc6..c02c0cd2930e 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard.rb @@ -54,6 +54,8 @@ class SharedDashboard # A unique token assigned to the shared dashboard. attr_accessor :token + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -109,12 +111,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboard` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboard`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'author') @@ -195,6 +199,26 @@ def dashboard_type=(dashboard_type) @dashboard_type = dashboard_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -212,6 +236,7 @@ def ==(o) share_list == o.share_list && share_type == o.share_type && token == o.token + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_author.rb b/lib/datadog_api_client/v1/models/shared_dashboard_author.rb index 5d5423a7eb10..796081e3c291 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_author.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_author.rb @@ -27,6 +27,8 @@ class SharedDashboardAuthor # Name of the user who shared the dashboard. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboardAuthor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboardAuthor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'handle') @@ -78,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) self.class == o.class && handle == o.handle && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb index 03ad37ea6a4b..6269ae27e522 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb @@ -27,6 +27,8 @@ class SharedDashboardInvites # Pagination metadata returned by the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboardInvites` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboardInvites`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -88,6 +92,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb index 980ce4fc5c12..3aa3b606a7d7 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb @@ -27,6 +27,8 @@ class SharedDashboardInvitesDataObject # Type for shared dashboard invitation request body. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboardInvitesDataObject` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboardInvitesDataObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb index 3078deb5ebe1..9da82a3a3ebb 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb @@ -39,6 +39,8 @@ class SharedDashboardInvitesDataObjectAttributes # The unique token of the shared dashboard that was (or is to be) shared. attr_accessor :share_token + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboardInvitesDataObjectAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboardInvitesDataObjectAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -114,6 +118,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -126,6 +150,7 @@ def ==(o) invitation_expiry == o.invitation_expiry && session_expiry == o.session_expiry && share_token == o.share_token + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb index bbe3028f494b..c1a1e3f932c9 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb @@ -24,6 +24,8 @@ class SharedDashboardInvitesMeta # Object containing the total count of invitations across all pages attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboardInvitesMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboardInvitesMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb index d9e0edee0103..5c28c587b8dd 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb @@ -24,6 +24,8 @@ class SharedDashboardInvitesMetaPage # The total number of invitations on this shared board, across all pages. attr_accessor :total_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboardInvitesMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboardInvitesMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_count') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && total_count == o.total_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb b/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb index c49ccb4f7fa3..c89bff78b589 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb @@ -36,6 +36,8 @@ class SharedDashboardUpdateRequest # Type of sharing access (either open to anyone who has the public URL or invite-only). attr_accessor :share_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -80,12 +82,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboardUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboardUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'global_time') @@ -113,6 +117,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -124,6 +148,7 @@ def ==(o) selectable_template_vars == o.selectable_template_vars && share_list == o.share_list && share_type == o.share_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb b/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb index 583f4ac40b60..8bd000a58323 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb @@ -24,6 +24,8 @@ class SharedDashboardUpdateRequestGlobalTime # Dashboard global time live_span selection attr_accessor :live_span + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboardUpdateRequestGlobalTime` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboardUpdateRequestGlobalTime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'live_span') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && live_span == o.live_span + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb b/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb index 5bd2f95585c7..bcb70583ca71 100644 --- a/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb +++ b/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb @@ -27,6 +27,8 @@ class SignalAssigneeUpdateRequest # Version of the updated signal. If server side version is higher, update will be rejected. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SignalAssigneeUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SignalAssigneeUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'assignee') @@ -88,6 +92,26 @@ def assignee=(assignee) @assignee = assignee end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && assignee == o.assignee && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/signal_state_update_request.rb b/lib/datadog_api_client/v1/models/signal_state_update_request.rb index 2974fcc62822..e6c1faa7f3e4 100644 --- a/lib/datadog_api_client/v1/models/signal_state_update_request.rb +++ b/lib/datadog_api_client/v1/models/signal_state_update_request.rb @@ -33,6 +33,8 @@ class SignalStateUpdateRequest # Version of the updated signal. If server side version is higher, update will be rejected. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SignalStateUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SignalStateUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'archive_comment') @@ -106,6 +110,26 @@ def state=(state) @state = state end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) archive_reason == o.archive_reason && state == o.state && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slack_integration_channel.rb b/lib/datadog_api_client/v1/models/slack_integration_channel.rb index 7e0c2eb4c6ad..ce64e1d0c997 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -27,6 +27,8 @@ class SlackIntegrationChannel # Your channel name. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SlackIntegrationChannel` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SlackIntegrationChannel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'display') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && display == o.display && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb b/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb index 70d3981cf841..13fc7a57e4c0 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb @@ -33,6 +33,8 @@ class SlackIntegrationChannelDisplay # Show the scopes on which the monitor alerted. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SlackIntegrationChannelDisplay` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SlackIntegrationChannelDisplay`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'message') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) notified == o.notified && snapshot == o.snapshot && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb index 6424e7665541..0ad679a11c2d 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb @@ -32,6 +32,8 @@ class SLOBulkDeleteError # or "all" if all thresholds are affected. attr_reader :timeframe + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -60,12 +62,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOBulkDeleteError` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOBulkDeleteError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -121,6 +125,26 @@ def timeframe=(timeframe) @timeframe = timeframe end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -130,6 +154,7 @@ def ==(o) id == o.id && message == o.message && timeframe == o.timeframe + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb index 1648faf851fd..acef6a716223 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb @@ -32,6 +32,8 @@ class SLOBulkDeleteResponse # Array of errors object returned. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOBulkDeleteResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOBulkDeleteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -77,6 +81,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -85,6 +109,7 @@ def ==(o) self.class == o.class && data == o.data && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb index 177b7b10d92a..9a134e6c2963 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb @@ -30,6 +30,8 @@ class SLOBulkDeleteResponseData # threshold was deleted, but that were not completely deleted). attr_accessor :updated + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOBulkDeleteResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOBulkDeleteResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'deleted') @@ -77,6 +81,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -85,6 +109,7 @@ def ==(o) self.class == o.class && deleted == o.deleted && updated == o.updated + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index 99a256d88d88..d02c655042c1 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -30,6 +30,8 @@ class SLOCorrection # SLO correction resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrection` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_data.rb b/lib/datadog_api_client/v1/models/slo_correction_create_data.rb index 294b2827308a..ae8aff73e6d2 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_data.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_data.rb @@ -27,6 +27,8 @@ class SLOCorrectionCreateData # SLO correction resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_request.rb b/lib/datadog_api_client/v1/models/slo_correction_create_request.rb index 259da8752782..d812b78a3f0e 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_request.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_request.rb @@ -24,6 +24,8 @@ class SLOCorrectionCreateRequest # The data object associated with the SLO correction to be created. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb index aa47cbfac72a..932773591e96 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb @@ -46,6 +46,8 @@ class SLOCorrectionCreateRequestAttributes # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -84,12 +86,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionCreateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'category') @@ -165,6 +169,26 @@ def start=(start) @start = start end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -179,6 +203,7 @@ def ==(o) slo_id == o.slo_id && start == o.start && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_list_response.rb b/lib/datadog_api_client/v1/models/slo_correction_list_response.rb index 10b115d65cda..dd2b4b93a279 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_list_response.rb @@ -27,6 +27,8 @@ class SLOCorrectionListResponse # Object describing meta attributes of response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_response.rb b/lib/datadog_api_client/v1/models/slo_correction_response.rb index f38f6cb45ef7..7025e9f3f1f6 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -24,6 +24,8 @@ class SLOCorrectionResponse # The response object of a list of SLO corrections. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb index af9440dc8786..a0760a143c76 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb @@ -58,6 +58,8 @@ class SLOCorrectionResponseAttributes # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -117,12 +119,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'category') @@ -174,6 +178,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -192,6 +216,7 @@ def ==(o) slo_id == o.slo_id && start == o.start && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb b/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb index c776bd9509a5..16f4982ef66b 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb @@ -30,6 +30,8 @@ class SLOCorrectionResponseAttributesModifier # Name of the Modifier. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponseAttributesModifier` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionResponseAttributesModifier`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'email') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) email == o.email && handle == o.handle && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_data.rb b/lib/datadog_api_client/v1/models/slo_correction_update_data.rb index 056e59377e5a..52d626cc512e 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_data.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_data.rb @@ -27,6 +27,8 @@ class SLOCorrectionUpdateData # SLO correction resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_request.rb b/lib/datadog_api_client/v1/models/slo_correction_update_request.rb index 4efff54b217e..e9648698fd90 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_request.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_request.rb @@ -24,6 +24,8 @@ class SLOCorrectionUpdateRequest # The data object associated with the SLO correction to be updated. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb index b63913f05b02..b1d6d96ed962 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb @@ -43,6 +43,8 @@ class SLOCorrectionUpdateRequestAttributes # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -79,12 +81,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCorrectionUpdateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'category') @@ -116,6 +120,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -129,6 +153,7 @@ def ==(o) rrule == o.rrule && start == o.start && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_creator.rb b/lib/datadog_api_client/v1/models/slo_creator.rb index d1c09a13dac8..46982e91bbbd 100644 --- a/lib/datadog_api_client/v1/models/slo_creator.rb +++ b/lib/datadog_api_client/v1/models/slo_creator.rb @@ -30,6 +30,8 @@ class SLOCreator # Name of the creator. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -66,12 +68,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCreator` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOCreator`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'email') @@ -87,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) email == o.email && id == o.id && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_delete_response.rb b/lib/datadog_api_client/v1/models/slo_delete_response.rb index fa4180b38efb..9506524b462f 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -27,6 +27,8 @@ class SLODeleteResponse # An dictionary containing the ID of the SLO as key and a deletion error as value. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLODeleteResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLODeleteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_formula.rb b/lib/datadog_api_client/v1/models/slo_formula.rb index 6fee9a2d0ed1..2b644a77aeec 100644 --- a/lib/datadog_api_client/v1/models/slo_formula.rb +++ b/lib/datadog_api_client/v1/models/slo_formula.rb @@ -24,6 +24,8 @@ class SLOFormula # The formula string, which is an expression involving named queries. attr_reader :formula + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOFormula` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOFormula`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'formula') @@ -79,6 +83,26 @@ def formula=(formula) @formula = formula end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && formula == o.formula + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics.rb b/lib/datadog_api_client/v1/models/slo_history_metrics.rb index 1a5adaac60aa..35b0c1e3d2e5 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -49,6 +49,8 @@ class SLOHistoryMetrics # An array of query timestamps in EPOCH milliseconds. attr_reader :times + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -87,12 +89,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetrics` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistoryMetrics`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'denominator') @@ -214,6 +218,26 @@ def times=(times) @times = times end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -228,6 +252,7 @@ def ==(o) res_type == o.res_type && resp_version == o.resp_version && times == o.times + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb index 12b1a46e9023..b11529750d34 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb @@ -34,6 +34,8 @@ class SLOHistoryMetricsSeries # The query values for each metric. attr_reader :values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeries` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistoryMetricsSeries`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -131,6 +135,26 @@ def values=(values) @values = values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -141,6 +165,7 @@ def ==(o) metadata == o.metadata && sum == o.sum && values == o.values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb index d5eb8ac97484..3dd5cd9f9ce0 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb @@ -41,6 +41,8 @@ class SLOHistoryMetricsSeriesMetadata # If a metric query only has one unit object, the second array element is null. attr_accessor :unit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggr') @@ -118,6 +122,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -130,6 +154,7 @@ def ==(o) query_index == o.query_index && scope == o.scope && unit == o.unit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb index 6e5a8b358ec1..c081d1b5cbbe 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb @@ -39,6 +39,8 @@ class SLOHistoryMetricsSeriesMetadataUnit # A shorter and abbreviated version of the metric unit, for instance `B`. attr_accessor :short_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -82,12 +84,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadataUnit` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadataUnit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'family') @@ -115,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) plural == o.plural && scale_factor == o.scale_factor && short_name == o.short_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_monitor.rb b/lib/datadog_api_client/v1/models/slo_history_monitor.rb index 3c25dee43bae..502b96038c0b 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -65,6 +65,8 @@ class SLOHistoryMonitor # Use `sli_value` instead. attr_accessor :uptime + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -119,12 +121,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMonitor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistoryMonitor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'error_budget_remaining') @@ -180,6 +184,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -198,6 +222,7 @@ def ==(o) sli_value == o.sli_value && span_precision == o.span_precision && uptime == o.uptime + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_response.rb b/lib/datadog_api_client/v1/models/slo_history_response.rb index f56b72506b3a..96dc823dd7ff 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -27,6 +27,8 @@ class SLOHistoryResponse # A list of errors while querying the history data for the service level objective. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistoryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -80,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) self.class == o.class && data == o.data && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_response_data.rb b/lib/datadog_api_client/v1/models/slo_history_response_data.rb index 73ed7fae2c1f..ea60d8002d4a 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_data.rb @@ -62,6 +62,8 @@ class SLOHistoryResponseData # Ignored in create/update requests. attr_accessor :type_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -104,12 +106,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistoryResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from_ts') @@ -159,6 +163,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -175,6 +199,7 @@ def ==(o) to_ts == o.to_ts && type == o.type && type_id == o.type_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_response_error.rb b/lib/datadog_api_client/v1/models/slo_history_response_error.rb index 6189efc30c1f..5478ed3b0e7d 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_error.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_error.rb @@ -24,6 +24,8 @@ class SLOHistoryResponseError # Human readable error. attr_accessor :error + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponseError` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistoryResponseError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'error') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && error == o.error + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb b/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb index 8674e45d310e..a51812d9bc05 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb @@ -27,6 +27,8 @@ class SLOHistoryResponseErrorWithType # Type of the error. attr_reader :error_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponseErrorWithType` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistoryResponseErrorWithType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'error_message') @@ -99,6 +103,26 @@ def error_type=(error_type) @error_type = error_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && error_message == o.error_message && error_type == o.error_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_history_sli_data.rb b/lib/datadog_api_client/v1/models/slo_history_sli_data.rb index dacd34b0d13f..552f4a92c8af 100644 --- a/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +++ b/lib/datadog_api_client/v1/models/slo_history_sli_data.rb @@ -66,6 +66,8 @@ class SLOHistorySLIData # Use `sli_value` instead. attr_accessor :uptime + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -121,12 +123,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistorySLIData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOHistorySLIData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'error_budget_remaining') @@ -182,6 +186,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -200,6 +224,7 @@ def ==(o) sli_value == o.sli_value && span_precision == o.span_precision && uptime == o.uptime + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_list_response.rb b/lib/datadog_api_client/v1/models/slo_list_response.rb index 9d32567c5325..7510937525a8 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -31,6 +31,8 @@ class SLOListResponse # The metadata object containing additional information about the list of SLOs. attr_accessor :metadata + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -84,6 +88,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -93,6 +117,7 @@ def ==(o) data == o.data && errors == o.errors && metadata == o.metadata + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb b/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb index edf3f6ccd87b..9f6559c3a010 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb @@ -24,6 +24,8 @@ class SLOListResponseMetadata # The object containing information about the pages of the list of SLOs. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOListResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb b/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb index 05270469c2ca..8cd94a535172 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb @@ -27,6 +27,8 @@ class SLOListResponseMetadataPage # The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages. attr_accessor :total_filtered_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListResponseMetadataPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOListResponseMetadataPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && total_count == o.total_count && total_filtered_count == o.total_filtered_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb b/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb index b30b1af756eb..a3d5da46b603 100644 --- a/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb @@ -36,6 +36,8 @@ class SLOListWidgetDefinition # Type of the SLO List widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOListWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'requests') @@ -136,6 +140,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -147,6 +171,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_list_widget_query.rb b/lib/datadog_api_client/v1/models/slo_list_widget_query.rb index af131b44ad22..a991c4a2ad89 100644 --- a/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +++ b/lib/datadog_api_client/v1/models/slo_list_widget_query.rb @@ -30,6 +30,8 @@ class SLOListWidgetQuery # Options for sorting results. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListWidgetQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOListWidgetQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'limit') @@ -114,6 +118,26 @@ def query_string=(query_string) @query_string = query_string end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -123,6 +147,7 @@ def ==(o) limit == o.limit && query_string == o.query_string && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_list_widget_request.rb b/lib/datadog_api_client/v1/models/slo_list_widget_request.rb index 1d6184385605..d4a0fd670953 100644 --- a/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +++ b/lib/datadog_api_client/v1/models/slo_list_widget_request.rb @@ -27,6 +27,8 @@ class SLOListWidgetRequest # Widget request type. attr_reader :request_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOListWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -99,6 +103,26 @@ def request_type=(request_type) @request_type = request_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && query == o.query && request_type == o.request_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_overall_statuses.rb b/lib/datadog_api_client/v1/models/slo_overall_statuses.rb index e86bf22c6365..bb85be58c3d6 100644 --- a/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +++ b/lib/datadog_api_client/v1/models/slo_overall_statuses.rb @@ -50,6 +50,8 @@ class SLOOverallStatuses # or updating SLOs. It is only used when querying SLO history over custom timeframes. attr_accessor :timeframe + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -102,12 +104,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOOverallStatuses` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOOverallStatuses`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'error') @@ -147,6 +151,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -162,6 +186,7 @@ def ==(o) status == o.status && target == o.target && timeframe == o.timeframe + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb b/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb index 4c2b76209ec3..63444409c190 100644 --- a/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb +++ b/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb @@ -27,6 +27,8 @@ class SLORawErrorBudgetRemaining # Error budget remaining value. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLORawErrorBudgetRemaining` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLORawErrorBudgetRemaining`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'unit') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && unit == o.unit && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index 58ad43517f8b..543d97f60194 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -29,6 +29,8 @@ class SLOResponse # used. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -55,12 +57,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && data == o.data && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_response_data.rb b/lib/datadog_api_client/v1/models/slo_response_data.rb index d049af5b2455..122c2d8374e6 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -105,6 +105,8 @@ class SLOResponseData # threshold. attr_accessor :warning_threshold + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -171,12 +173,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'configured_alert_ids') @@ -264,6 +268,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -288,6 +312,7 @@ def ==(o) timeframe == o.timeframe && type == o.type && warning_threshold == o.warning_threshold + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_status.rb b/lib/datadog_api_client/v1/models/slo_status.rb index 197a0452e74a..5115c94156e6 100644 --- a/lib/datadog_api_client/v1/models/slo_status.rb +++ b/lib/datadog_api_client/v1/models/slo_status.rb @@ -43,6 +43,8 @@ class SLOStatus # State of the SLO. attr_accessor :state + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -91,12 +93,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOStatus` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'calculation_error') @@ -128,6 +132,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -141,6 +165,7 @@ def ==(o) sli == o.sli && span_precision == o.span_precision && state == o.state + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index daf668760a36..76d43da00632 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -46,6 +46,8 @@ class SLOThreshold # Ignored in create/update requests. attr_accessor :warning_display + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOThreshold` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOThreshold`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'target') @@ -136,6 +140,26 @@ def timeframe=(timeframe) @timeframe = timeframe end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -147,6 +171,7 @@ def ==(o) timeframe == o.timeframe && warning == o.warning && warning_display == o.warning_display + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb b/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb index 80928f9aad42..81113ee13c77 100644 --- a/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +++ b/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb @@ -36,6 +36,8 @@ class SLOTimeSliceCondition # The threshold value to which each SLI value will be compared. attr_reader :threshold + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -66,12 +68,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOTimeSliceCondition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOTimeSliceCondition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'comparator') @@ -131,6 +135,26 @@ def threshold=(threshold) @threshold = threshold end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -141,6 +165,7 @@ def ==(o) query == o.query && query_interval_seconds == o.query_interval_seconds && threshold == o.threshold + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_time_slice_query.rb b/lib/datadog_api_client/v1/models/slo_time_slice_query.rb index 8ffc733cc01d..bddd2640fe24 100644 --- a/lib/datadog_api_client/v1/models/slo_time_slice_query.rb +++ b/lib/datadog_api_client/v1/models/slo_time_slice_query.rb @@ -27,6 +27,8 @@ class SLOTimeSliceQuery # A list of queries that are used to calculate the SLI value. attr_reader :queries + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOTimeSliceQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOTimeSliceQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'formulas') @@ -111,6 +115,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -119,6 +143,7 @@ def ==(o) self.class == o.class && formulas == o.formulas && queries == o.queries + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/slo_widget_definition.rb b/lib/datadog_api_client/v1/models/slo_widget_definition.rb index 3502b8f3208b..f68ff8da4c2e 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -54,6 +54,8 @@ class SLOWidgetDefinition # Type of view displayed by the widget. attr_reader :view_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SLOWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'additional_query_filters') @@ -182,6 +186,26 @@ def view_type=(view_type) @view_type = view_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -199,6 +223,7 @@ def ==(o) type == o.type && view_mode == o.view_mode && view_type == o.view_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/split_config.rb b/lib/datadog_api_client/v1/models/split_config.rb index 8fcdf6de86a4..0faaab8b98bc 100644 --- a/lib/datadog_api_client/v1/models/split_config.rb +++ b/lib/datadog_api_client/v1/models/split_config.rb @@ -33,6 +33,8 @@ class SplitConfig # Manual selection of tags making split graph widget static attr_reader :static_splits + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SplitConfig` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SplitConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'limit') @@ -159,6 +163,26 @@ def static_splits=(static_splits) @static_splits = static_splits end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -169,6 +193,7 @@ def ==(o) sort == o.sort && split_dimensions == o.split_dimensions && static_splits == o.static_splits + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/split_config_sort_compute.rb b/lib/datadog_api_client/v1/models/split_config_sort_compute.rb index 9f697bc6200f..c493e52c01bd 100644 --- a/lib/datadog_api_client/v1/models/split_config_sort_compute.rb +++ b/lib/datadog_api_client/v1/models/split_config_sort_compute.rb @@ -27,6 +27,8 @@ class SplitConfigSortCompute # The metric to use for sorting graphs. attr_reader :metric + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SplitConfigSortCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SplitConfigSortCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -99,6 +103,26 @@ def metric=(metric) @metric = metric end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && aggregation == o.aggregation && metric == o.metric + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/split_dimension.rb b/lib/datadog_api_client/v1/models/split_dimension.rb index 178d4309faaa..61a90b6ab3ea 100644 --- a/lib/datadog_api_client/v1/models/split_dimension.rb +++ b/lib/datadog_api_client/v1/models/split_dimension.rb @@ -24,6 +24,8 @@ class SplitDimension # The system interprets this attribute differently depending on the data source of the query being split. For metrics, it's a tag. For the events platform, it's an attribute or tag. attr_reader :one_graph_per + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SplitDimension` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SplitDimension`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'one_graph_per') @@ -79,6 +83,26 @@ def one_graph_per=(one_graph_per) @one_graph_per = one_graph_per end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && one_graph_per == o.one_graph_per + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb b/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb index d4d873aaa646..6a1ed28c0ed9 100644 --- a/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb @@ -42,6 +42,8 @@ class SplitGraphWidgetDefinition # Type of the split graph widget attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SplitGraphWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SplitGraphWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'has_uniform_y_axes') @@ -166,6 +170,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -179,6 +203,7 @@ def ==(o) time == o.time && title == o.title && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/split_sort.rb b/lib/datadog_api_client/v1/models/split_sort.rb index eb5b43c9eb85..0e5887a516b7 100644 --- a/lib/datadog_api_client/v1/models/split_sort.rb +++ b/lib/datadog_api_client/v1/models/split_sort.rb @@ -27,6 +27,8 @@ class SplitSort # Widget sorting methods. attr_reader :order + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SplitSort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SplitSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -88,6 +92,26 @@ def order=(order) @order = order end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && compute == o.compute && order == o.order + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/split_vector_entry_item.rb b/lib/datadog_api_client/v1/models/split_vector_entry_item.rb index 9bfbb04510a0..58e01ddde2c3 100644 --- a/lib/datadog_api_client/v1/models/split_vector_entry_item.rb +++ b/lib/datadog_api_client/v1/models/split_vector_entry_item.rb @@ -27,6 +27,8 @@ class SplitVectorEntryItem # The tag values. attr_reader :tag_values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SplitVectorEntryItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SplitVectorEntryItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tag_key') @@ -105,6 +109,26 @@ def tag_values=(tag_values) @tag_values = tag_values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -113,6 +137,7 @@ def ==(o) self.class == o.class && tag_key == o.tag_key && tag_values == o.tag_values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/successful_signal_update_response.rb b/lib/datadog_api_client/v1/models/successful_signal_update_response.rb index f78819717c9c..62092291bf93 100644 --- a/lib/datadog_api_client/v1/models/successful_signal_update_response.rb +++ b/lib/datadog_api_client/v1/models/successful_signal_update_response.rb @@ -24,6 +24,8 @@ class SuccessfulSignalUpdateResponse # Status of the response. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SuccessfulSignalUpdateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SuccessfulSignalUpdateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'status') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb index 3efca70d8d40..c852479d5956 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -48,6 +48,8 @@ class SunburstWidgetDefinition # Type of the Sunburst widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SunburstWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -170,6 +174,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -185,6 +209,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb index 0f0bce0a0c89..cbe859c35fd0 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb @@ -30,6 +30,8 @@ class SunburstWidgetLegendInlineAutomatic # Whether to show the legend inline or let it be automatically generated. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetLegendInlineAutomatic` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SunburstWidgetLegendInlineAutomatic`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hide_percent') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) hide_percent == o.hide_percent && hide_value == o.hide_value && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb index 82e364b886ca..8111b506b911 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb @@ -24,6 +24,8 @@ class SunburstWidgetLegendTable # Whether or not to show a table legend. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetLegendTable` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SunburstWidgetLegendTable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -79,6 +83,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb index dfa10c4409bf..a30a1170fa4b 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -63,6 +63,8 @@ class SunburstWidgetRequest # Widget style definition. attr_accessor :style + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -113,12 +115,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SunburstWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_query') @@ -182,6 +186,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -202,6 +226,7 @@ def ==(o) rum_query == o.rum_query && security_query == o.security_query && style == o.style + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test.rb b/lib/datadog_api_client/v1/models/synthetics_api_test.rb index a844c6bb3cb8..df1e78421023 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -56,6 +56,8 @@ class SyntheticsAPITest # Type of the Synthetic test, `api`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -100,12 +102,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPITest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'config') @@ -230,6 +234,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -247,6 +271,7 @@ def ==(o) subtype == o.subtype && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb index 49b395c3a8b7..6f08c5c20930 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb @@ -36,6 +36,8 @@ class SyntheticsAPITestConfig # Variables defined from JavaScript code. attr_accessor :variables_from_script + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestConfig` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPITestConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'assertions') @@ -103,6 +107,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -114,6 +138,7 @@ def ==(o) request == o.request && steps == o.steps && variables_from_script == o.variables_from_script + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb index f79288a948ce..0982652e0d99 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb @@ -49,6 +49,8 @@ class SyntheticsAPITestResultData # See the [Synthetic Monitoring Metrics documentation](https://docs.datadoghq.com/synthetics/metrics/). attr_accessor :timings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -89,12 +91,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPITestResultData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cert') @@ -134,6 +138,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -149,6 +173,7 @@ def ==(o) response_headers == o.response_headers && response_size == o.response_size && timings == o.timings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb index 3acda46e8505..1872dc2d4d76 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb @@ -27,6 +27,8 @@ class SyntheticsApiTestResultFailure # The API test error message. attr_accessor :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsApiTestResultFailure` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsApiTestResultFailure`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && code == o.code && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb index 6918f736cdc9..17e74517e95d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb @@ -45,6 +45,8 @@ class SyntheticsAPITestResultFull # * `2` for no data attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultFull` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPITestResultFull`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'check') @@ -118,6 +122,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -131,6 +155,7 @@ def ==(o) result == o.result && result_id == o.result_id && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb index 0b12757f6ad7..30d8a36cab36 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb @@ -24,6 +24,8 @@ class SyntheticsAPITestResultFullCheck # Configuration object for a Synthetic test. attr_reader :config + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultFullCheck` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPITestResultFullCheck`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'config') @@ -79,6 +83,26 @@ def config=(config) @config = config end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && config == o.config + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb index a6252d28ae47..e9f07e890958 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb @@ -39,6 +39,8 @@ class SyntheticsAPITestResultShort # * `2` for no data attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultShort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPITestResultShort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'check_time') @@ -100,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) result == o.result && result_id == o.result_id && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb index 73fec7f242f3..4e0c7b38b619 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb @@ -28,6 +28,8 @@ class SyntheticsAPITestResultShortResult # See the [Synthetic Monitoring Metrics documentation](https://docs.datadoghq.com/synthetics/metrics/). attr_accessor :timings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultShortResult` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPITestResultShortResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'passed') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && passed == o.passed && timings == o.timings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb index 0b2b818b80dd..fa982af91532 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb @@ -46,6 +46,8 @@ class SyntheticsAPITestStep # The subtype of the Synthetic multi-step API test step. attr_reader :subtype + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -84,12 +86,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestStep` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPITestStep`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'allow_failure') @@ -180,6 +184,26 @@ def subtype=(subtype) @subtype = subtype end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -194,6 +218,7 @@ def ==(o) request == o.request && _retry == o._retry && subtype == o.subtype + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb index e2764eb7157d..12fbaf017163 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb @@ -30,6 +30,8 @@ class SyntheticsAPIWaitStep # The time to wait in seconds. Minimum value: 0. Maximum value: 180. attr_reader :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPIWaitStep` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPIWaitStep`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -127,6 +131,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -136,6 +160,7 @@ def ==(o) name == o.name && subtype == o.subtype && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb index 876672658139..2b0fca21d455 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb @@ -30,6 +30,8 @@ class SyntheticsAssertionBodyHashTarget # Type of the assertion. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionBodyHashTarget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionBodyHashTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'operator') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) operator == o.operator && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb index 3ea300b3b759..db22cd710656 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb @@ -33,6 +33,8 @@ class SyntheticsAssertionJSONPathTarget # Type of the assertion. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONPathTarget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionJSONPathTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'operator') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) property == o.property && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb index d09d213291e7..daac817ae801 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb @@ -33,6 +33,8 @@ class SyntheticsAssertionJSONPathTargetTarget # The path target value to compare to. attr_accessor :target_value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONPathTargetTarget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionJSONPathTargetTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'elements_operator') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) json_path == o.json_path && operator == o.operator && target_value == o.target_value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb index c17e068ef8c1..a7e05af987e0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb @@ -30,6 +30,8 @@ class SyntheticsAssertionJSONSchemaTarget # Type of the assertion. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTarget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'operator') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) operator == o.operator && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb index 6ce083469a7f..f94455b39a79 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb @@ -27,6 +27,8 @@ class SyntheticsAssertionJSONSchemaTargetTarget # The JSON Schema meta-schema version used in the assertion. attr_accessor :meta_schema + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTargetTarget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTargetTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'json_schema') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && json_schema == o.json_schema && meta_schema == o.meta_schema + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb index c15490e855f3..72a7c774cab8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -36,6 +36,8 @@ class SyntheticsAssertionTarget # Type of the assertion. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionTarget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'operator') @@ -137,6 +141,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -148,6 +172,7 @@ def ==(o) target == o.target && timings_scope == o.timings_scope && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb index 8275951c8cb1..7dd7fff4ba1d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb @@ -33,6 +33,8 @@ class SyntheticsAssertionXPathTarget # Type of the assertion. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionXPathTarget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionXPathTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'operator') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) property == o.property && target == o.target && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb index 86ab326c0204..5855865fc4e4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb @@ -30,6 +30,8 @@ class SyntheticsAssertionXPathTargetTarget # The X path to assert. attr_accessor :x_path + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionXPathTargetTarget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionXPathTargetTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'operator') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) operator == o.operator && target_value == o.target_value && x_path == o.x_path + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb index e99478615a16..1b01b2349513 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb @@ -30,6 +30,8 @@ class SyntheticsBasicAuthDigest # Username to use for the digest authentication. attr_reader :username + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthDigest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBasicAuthDigest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'password') @@ -119,6 +123,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) password == o.password && type == o.type && username == o.username + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb index a224bd9d4aa1..4d5440628c08 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb @@ -36,6 +36,8 @@ class SyntheticsBasicAuthNTLM # Workstation for the authentication to use when performing the test. attr_accessor :workstation + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthNTLM` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBasicAuthNTLM`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'domain') @@ -115,6 +119,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -126,6 +150,7 @@ def ==(o) type == o.type && username == o.username && workstation == o.workstation + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb index cb7e71c1b124..c21ca679ea0b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb @@ -45,6 +45,8 @@ class SyntheticsBasicAuthOauthClient # The type of basic authentication to use when performing the test. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthOauthClient` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBasicAuthOauthClient`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'access_token_url') @@ -186,6 +190,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -200,6 +224,7 @@ def ==(o) scope == o.scope && token_api_authentication == o.token_api_authentication && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb index 8e36ae8083b3..0ac31038dacb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb @@ -51,6 +51,8 @@ class SyntheticsBasicAuthOauthROP # Username to use when performing the authentication. attr_reader :username + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthOauthROP` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBasicAuthOauthROP`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'access_token_url') @@ -204,6 +208,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -220,6 +244,7 @@ def ==(o) token_api_authentication == o.token_api_authentication && type == o.type && username == o.username + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb index 1f9d60cbe38b..436bdcb50ee2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb @@ -39,6 +39,8 @@ class SyntheticsBasicAuthSigv4 # The type of authentication to use when performing the test. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthSigv4` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBasicAuthSigv4`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'access_key') @@ -146,6 +150,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -158,6 +182,7 @@ def ==(o) service_name == o.service_name && session_token == o.session_token && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb index 965b49feb424..2681cb027ca3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb @@ -30,6 +30,8 @@ class SyntheticsBasicAuthWeb # Username to use for the basic authentication. attr_reader :username + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthWeb` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBasicAuthWeb`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'password') @@ -108,6 +112,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) password == o.password && type == o.type && username == o.username + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb index 3a57754b14a6..648712d095eb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -24,6 +24,8 @@ class SyntheticsBatchDetails # Wrapper object that contains the details of a batch. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchDetails` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBatchDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb index 51cbd6c35b18..37cca7178799 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb @@ -30,6 +30,8 @@ class SyntheticsBatchDetailsData # Determines whether or not the batch has passed, failed, or is in progress. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchDetailsData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBatchDetailsData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'metadata') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) metadata == o.metadata && results == o.results && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb index d50489c85d9c..87c110dcbe11 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -51,6 +51,8 @@ class SyntheticsBatchResult # Type of the Synthetic test, either `api` or `browser`. attr_accessor :test_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchResult` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBatchResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'device') @@ -142,6 +146,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -158,6 +182,7 @@ def ==(o) test_name == o.test_name && test_public_id == o.test_public_id && test_type == o.test_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb index 0fde018a1e34..88c31cd7d319 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -33,6 +33,8 @@ class SyntheticsBrowserError # Error type returned by a browser test. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserError` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -128,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) name == o.name && status == o.status && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb index 5514e33260cf..801bed09dd7f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -55,6 +55,8 @@ class SyntheticsBrowserTest # Type of the Synthetic test, `browser`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -99,12 +101,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'config') @@ -231,6 +235,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -248,6 +272,7 @@ def ==(o) steps == o.steps && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb index 466cec4d850f..fd59d269510d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb @@ -36,6 +36,8 @@ class SyntheticsBrowserTestConfig # Array of variables used for the test steps. attr_accessor :variables + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestConfig` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTestConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'assertions') @@ -132,6 +136,26 @@ def request=(request) @request = request end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -143,6 +167,7 @@ def ==(o) request == o.request && set_cookie == o.set_cookie && variables == o.variables + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb index 04945e7e3d54..1b941f077ae1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb @@ -58,6 +58,8 @@ class SyntheticsBrowserTestResultData # reaching the start URL. attr_accessor :time_to_interactive + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -104,12 +106,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTestResultData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'browser_type') @@ -163,6 +167,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -181,6 +205,7 @@ def ==(o) step_details == o.step_details && thumbnails_bucket_key == o.thumbnails_bucket_key && time_to_interactive == o.time_to_interactive + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb index 574be184ccc3..6f0dcf3ac49d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb @@ -27,6 +27,8 @@ class SyntheticsBrowserTestResultFailure # The browser test error message. attr_accessor :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFailure` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFailure`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && code == o.code && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb index 0fc6e18b2149..a8d03fc7ede7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb @@ -45,6 +45,8 @@ class SyntheticsBrowserTestResultFull # * `2` for no data attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFull` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFull`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'check') @@ -118,6 +122,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -131,6 +155,7 @@ def ==(o) result == o.result && result_id == o.result_id && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb index bf48c8f3644a..4e6d662a3ba9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb @@ -24,6 +24,8 @@ class SyntheticsBrowserTestResultFullCheck # Configuration object for a Synthetic test. attr_reader :config + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFullCheck` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFullCheck`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'config') @@ -79,6 +83,26 @@ def config=(config) @config = config end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && config == o.config + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb index abb056195066..b3fc5a63a8bd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb @@ -39,6 +39,8 @@ class SyntheticsBrowserTestResultShort # * `2` for no data attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultShort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTestResultShort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'check_time') @@ -100,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) result == o.result && result_id == o.result_id && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb index f88eb20e16ce..2d83e02c04ca 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb @@ -36,6 +36,8 @@ class SyntheticsBrowserTestResultShortResult # Total amount of browser test steps. attr_accessor :step_count_total + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultShortResult` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTestResultShortResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'device') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) error_count == o.error_count && step_count_completed == o.step_count_completed && step_count_total == o.step_count_total + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb index 2e381aacbffb..3b827b789d90 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb @@ -40,6 +40,8 @@ class SyntheticsBrowserTestRumSettings # Determines whether RUM data is collected during test runs. attr_reader :is_enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestRumSettings` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTestRumSettings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'application_id') @@ -107,6 +111,26 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) application_id == o.application_id && client_token_id == o.client_token_id && is_enabled == o.is_enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb index 5751da5d05e3..e8653f1a5cc7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -40,6 +40,8 @@ class SyntheticsBrowserVariable # Type of browser test variable. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -74,12 +76,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserVariable` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserVariable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'example') @@ -136,6 +140,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -148,6 +172,7 @@ def ==(o) pattern == o.pattern && secure == o.secure && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb index 65b999944bec..dc328ea6f048 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb @@ -27,6 +27,8 @@ class SyntheticsCIBatchMetadata # Git information. attr_accessor :git + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsCIBatchMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'ci') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && ci == o.ci && git == o.git + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb index 5b89644827c5..f85c53267947 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb @@ -27,6 +27,8 @@ class SyntheticsCIBatchMetadataCI # Description of the CI provider. attr_accessor :provider + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataCI` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataCI`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pipeline') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && pipeline == o.pipeline && provider == o.provider + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb index ea01a4d5ee1b..063f52d8634a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb @@ -27,6 +27,8 @@ class SyntheticsCIBatchMetadataGit # The commit SHA. attr_accessor :commit_sha + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataGit` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataGit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'branch') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && branch == o.branch && commit_sha == o.commit_sha + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb index 5a571be564f4..fadb70de3feb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb @@ -24,6 +24,8 @@ class SyntheticsCIBatchMetadataPipeline # URL of the pipeline. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataPipeline` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataPipeline`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'url') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb index 4e0682584e31..042c8411f5ab 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb @@ -24,6 +24,8 @@ class SyntheticsCIBatchMetadataProvider # Name of the CI provider. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataProvider` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataProvider`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb index 17be3dfe1afd..445a639d6155 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -63,6 +63,8 @@ class SyntheticsCITest # Variables to replace in the test. attr_accessor :variables + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -113,12 +115,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCITest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsCITest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'allow_insecure_certificates') @@ -200,6 +204,26 @@ def public_id=(public_id) @public_id = public_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -220,6 +244,7 @@ def ==(o) _retry == o._retry && start_url == o.start_url && variables == o.variables + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb b/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb index 69e02dfeffcf..74cf519d7fb8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb @@ -24,6 +24,8 @@ class SyntheticsCITestBody # Individual synthetics test. attr_accessor :tests + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCITestBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsCITestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tests') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && tests == o.tests + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb index fba36d37c678..d5750f961425 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -39,6 +39,8 @@ class SyntheticsConfigVariable # Type of the configuration variable. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsConfigVariable` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsConfigVariable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'example') @@ -135,6 +139,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -147,6 +171,7 @@ def ==(o) pattern == o.pattern && secure == o.secure && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb b/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb index b65058e024f9..de6e4c14eaab 100644 --- a/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb +++ b/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb @@ -30,6 +30,8 @@ class SyntheticsCoreWebVitals # URL attached to the metrics. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCoreWebVitals` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsCoreWebVitals`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cls') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) cls == o.cls && lcp == o.lcp && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb index c202ac5df338..1f6048416b0e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb +++ b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb @@ -29,6 +29,8 @@ class SyntheticsDeleteTestsPayload # An array of Synthetic test IDs you want to delete. attr_accessor :public_ids + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -55,12 +57,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDeleteTestsPayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsDeleteTestsPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'force_delete_dependencies') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && force_delete_dependencies == o.force_delete_dependencies && public_ids == o.public_ids + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb index 4a20877d4880..ae480c6978d4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb @@ -25,6 +25,8 @@ class SyntheticsDeleteTestsResponse # the associated deletion timestamp. attr_accessor :deleted_tests + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDeleteTestsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsDeleteTestsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'deleted_tests') @@ -64,6 +68,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -71,6 +95,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && deleted_tests == o.deleted_tests + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb index 88c3de0ffb18..f5addad320c3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -28,6 +28,8 @@ class SyntheticsDeletedTest # The Synthetic test ID deleted. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDeletedTest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsDeletedTest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'deleted_at') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && deleted_at == o.deleted_at && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 39967781a0bc..83b6598e78ed 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -36,6 +36,8 @@ class SyntheticsDevice # Screen width of the device. attr_reader :width + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDevice` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsDevice`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'height') @@ -148,6 +152,26 @@ def width=(width) @width = width end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -159,6 +183,7 @@ def ==(o) is_mobile == o.is_mobile && name == o.name && width == o.width + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb b/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb index cc12efa1de84..a2b2ad685f21 100644 --- a/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb @@ -27,6 +27,8 @@ class SyntheticsGetAPITestLatestResultsResponse # Result of the latest API test run. attr_accessor :results + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGetAPITestLatestResultsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGetAPITestLatestResultsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'last_timestamp_fetched') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && last_timestamp_fetched == o.last_timestamp_fetched && results == o.results + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb b/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb index eae1264a0503..6fef6a63b7c9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb @@ -27,6 +27,8 @@ class SyntheticsGetBrowserTestLatestResultsResponse # Result of the latest browser test run. attr_accessor :results + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGetBrowserTestLatestResultsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGetBrowserTestLatestResultsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'last_timestamp_fetched') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && last_timestamp_fetched == o.last_timestamp_fetched && results == o.results + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb index 59cc1e17fe77..a7dd3e0931f8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -45,6 +45,8 @@ class SyntheticsGlobalVariable # Value of the global variable. attr_reader :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariable` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGlobalVariable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -177,6 +181,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -191,6 +215,7 @@ def ==(o) parse_test_public_id == o.parse_test_public_id && tags == o.tags && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb index 9f0f98e9cec0..b252f42df586 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb @@ -24,6 +24,8 @@ class SyntheticsGlobalVariableAttributes # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. attr_accessor :restricted_roles + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGlobalVariableAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'restricted_roles') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && restricted_roles == o.restricted_roles + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb index 1c0fd22b504d..853599eaac12 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb @@ -24,6 +24,8 @@ class SyntheticsGlobalVariableOptions # Parameters for the TOTP/MFA variable attr_accessor :totp_parameters + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGlobalVariableOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'totp_parameters') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && totp_parameters == o.totp_parameters + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb index d3335f651c88..1342ca59bd8e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb @@ -33,6 +33,8 @@ class SyntheticsGlobalVariableParseTestOptions # Property of the Synthetic Test Response to use for a Synthetic global variable. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'field') @@ -106,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) local_variable_name == o.local_variable_name && parser == o.parser && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb index 17785fcb5984..47bb8c2e8643 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb @@ -27,6 +27,8 @@ class SyntheticsGlobalVariableTOTPParameters # Interval for which to refresh the token (in seconds). attr_reader :refresh_interval + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableTOTPParameters` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGlobalVariableTOTPParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'digits') @@ -107,6 +111,26 @@ def refresh_interval=(refresh_interval) @refresh_interval = refresh_interval end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -115,6 +139,7 @@ def ==(o) self.class == o.class && digits == o.digits && refresh_interval == o.refresh_interval + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb index 1ea02f62eb16..0c4025d31dda 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb @@ -31,6 +31,8 @@ class SyntheticsGlobalVariableValue # the value will not be present if the variable is hidden with the `secure` property. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableValue` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGlobalVariableValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'options') @@ -80,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -89,6 +113,7 @@ def ==(o) options == o.options && secure == o.secure && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb b/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb index 53f45514616c..cfea756c4d6a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb @@ -24,6 +24,8 @@ class SyntheticsListGlobalVariablesResponse # Array of Synthetic global variables. attr_accessor :variables + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsListGlobalVariablesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsListGlobalVariablesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'variables') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && variables == o.variables + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb index 6f0cb23a011b..966a58de43ac 100644 --- a/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb @@ -24,6 +24,8 @@ class SyntheticsListTestsResponse # Array of Synthetic tests configuration. attr_accessor :tests + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsListTestsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsListTestsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tests') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && tests == o.tests + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index 1d26dd7cf09c..a02dc90b9980 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -28,6 +28,8 @@ class SyntheticsLocation # Name of the location. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsLocation` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsLocation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && id == o.id && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index fa1b13917e2b..67b060e1ef87 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -24,6 +24,8 @@ class SyntheticsLocations # List of Synthetic locations. attr_accessor :locations + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsLocations` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsLocations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'locations') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && locations == o.locations + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb index 22c798ff612f..84e5ef5bc575 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -36,6 +36,8 @@ class SyntheticsParsingOptions # Property of the Synthetic Test Response to use for a Synthetic global variable. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsParsingOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsParsingOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'field') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) parser == o.parser && secure == o.secure && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb b/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb index 52fb8f21e890..58833b296721 100644 --- a/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb @@ -24,6 +24,8 @@ class SyntheticsPatchTestBody # Array of [JSON Patch](https://jsonpatch.com) operations to perform on the test attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPatchTestBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsPatchTestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb b/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb index cf434f8ed23c..bd05ebc8c01a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb +++ b/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb @@ -30,6 +30,8 @@ class SyntheticsPatchTestOperation # A value to use in a [JSON Patch](https://jsonpatch.com) operation attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPatchTestOperation` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsPatchTestOperation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'op') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) op == o.op && path == o.path && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location.rb b/lib/datadog_api_client/v1/models/synthetics_private_location.rb index a73103505d76..724c4aaa3a67 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -39,6 +39,8 @@ class SyntheticsPrivateLocation # Array of tags attached to the private location. attr_reader :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocation` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsPrivateLocation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -148,6 +152,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -160,6 +184,7 @@ def ==(o) name == o.name && secrets == o.secrets && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb index 04cb9de94b5b..c6811fdb4823 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb @@ -30,6 +30,8 @@ class SyntheticsPrivateLocationCreationResponse # Public key for the result encryption. attr_accessor :result_encryption + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationCreationResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsPrivateLocationCreationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'config') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) config == o.config && private_location == o.private_location && result_encryption == o.result_encryption + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb index 507ad2d9982e..c5125ac84315 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb @@ -27,6 +27,8 @@ class SyntheticsPrivateLocationCreationResponseResultEncryption # Public key for result encryption. attr_accessor :key + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationCreationResponseResultEncryption` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsPrivateLocationCreationResponseResultEncryption`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && key == o.key + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb index 1a5f4abd924c..d4b2e11707b1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb @@ -24,6 +24,8 @@ class SyntheticsPrivateLocationMetadata # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. attr_accessor :restricted_roles + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsPrivateLocationMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'restricted_roles') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && restricted_roles == o.restricted_roles + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb index 8e452c7251f8..df43dbc533a9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb @@ -27,6 +27,8 @@ class SyntheticsPrivateLocationSecrets # Private key for the private location. attr_accessor :config_decryption + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecrets` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecrets`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'authentication') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && authentication == o.authentication && config_decryption == o.config_decryption + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb index 85e93a9ff4d2..a1313ab2883e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb @@ -27,6 +27,8 @@ class SyntheticsPrivateLocationSecretsAuthentication # Secret access key for the private location. attr_accessor :key + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecretsAuthentication` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecretsAuthentication`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && key == o.key + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb index 6731f6a3474c..407f39158334 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb @@ -24,6 +24,8 @@ class SyntheticsPrivateLocationSecretsConfigDecryption # Private key for the private location. attr_accessor :key + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecretsConfigDecryption` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecretsConfigDecryption`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'key') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && key == o.key + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb index 9ad32c61273a..30952ace83ac 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -57,6 +57,8 @@ class SyntheticsSSLCertificate # Date until which the SSL certificate is valid. attr_accessor :valid_to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -103,12 +105,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsSSLCertificate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cipher') @@ -162,6 +166,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -180,6 +204,7 @@ def ==(o) subject == o.subject && valid_from == o.valid_from && valid_to == o.valid_to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb index fb90c6dd1417..e76f898f8ebb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb @@ -39,6 +39,8 @@ class SyntheticsSSLCertificateIssuer # State Or Province Name that issued the certificate. attr_accessor :st + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificateIssuer` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsSSLCertificateIssuer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'c') @@ -106,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) o == o.o && ou == o.ou && st == o.st + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb index d8787ecc5d62..dacc8d4241e9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb @@ -42,6 +42,8 @@ class SyntheticsSSLCertificateSubject # Subject Alternative Name associated with the certificate. attr_accessor :alt_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificateSubject` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsSSLCertificateSubject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'c') @@ -115,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) ou == o.ou && st == o.st && alt_name == o.alt_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 5b556bbe303c..7cd2f3a28b66 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -42,6 +42,8 @@ class SyntheticsStep # Step type used in your Synthetic test. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsStep` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsStep`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'allow_failure') @@ -115,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) params == o.params && timeout == o.timeout && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb index c60e518f71e1..6a6e97abe82c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -73,6 +73,8 @@ class SyntheticsStepDetail # Warning collected that didn't failed the step. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -129,12 +131,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsStepDetail` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsStepDetail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'browser_errors') @@ -214,6 +218,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -237,6 +261,7 @@ def ==(o) value == o.value && vitals_metrics == o.vitals_metrics && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb b/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb index 6c68d20fbc0c..210a3d048d80 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb @@ -27,6 +27,8 @@ class SyntheticsStepDetailWarning # User locator used. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsStepDetailWarning` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsStepDetailWarning`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'message') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && message == o.message && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb index 41f011c6541d..4fd4d6b43235 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb @@ -24,6 +24,8 @@ class SyntheticsTestCiOptions # Execution rule for a Synthetic test. attr_accessor :execution_rule + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestCiOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestCiOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'execution_rule') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && execution_rule == o.execution_rule + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_test_config.rb index 49da8d6baa92..c2b44add4c30 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -33,6 +33,8 @@ class SyntheticsTestConfig # Browser tests only - array of variables used for the test steps. attr_accessor :variables + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestConfig` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'assertions') @@ -94,6 +98,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -104,6 +128,7 @@ def ==(o) config_variables == o.config_variables && request == o.request && variables == o.variables + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details.rb b/lib/datadog_api_client/v1/models/synthetics_test_details.rb index d90dbc015b38..7108560181ba 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -62,6 +62,8 @@ class SyntheticsTestDetails # Type of the Synthetic test, either `api` or `browser`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -110,12 +112,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestDetails` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'config') @@ -177,6 +181,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -196,6 +220,7 @@ def ==(o) subtype == o.subtype && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options.rb index 43a2d4c2a7ee..a1d65efea0c8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -106,6 +106,8 @@ class SyntheticsTestOptions # The frequency at which to run the Synthetic test (in seconds). attr_reader :tick_every + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -176,12 +178,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'accept_self_signed') @@ -322,6 +326,26 @@ def tick_every=(tick_every) @tick_every = tick_every end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -352,6 +376,7 @@ def ==(o) rum_settings == o.rum_settings && scheduling == o.scheduling && tick_every == o.tick_every + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb index 62cfcfc4c5ab..1a1e34bb9625 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb @@ -26,6 +26,8 @@ class SyntheticsTestOptionsMonitorOptions # (in minutes). attr_reader :renotify_interval + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -50,12 +52,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'renotify_interval') @@ -81,6 +85,26 @@ def renotify_interval=(renotify_interval) @renotify_interval = renotify_interval end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && renotify_interval == o.renotify_interval + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb index 3116bbeb626a..e40bb3490412 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb @@ -29,6 +29,8 @@ class SyntheticsTestOptionsRetry # 300ms. attr_accessor :interval + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -55,12 +57,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptionsRetry` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestOptionsRetry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && count == o.count && interval == o.interval + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb index 8b9100318535..ae829098db7a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb @@ -27,6 +27,8 @@ class SyntheticsTestOptionsScheduling # Timezone in which the timeframe is based. attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptionsScheduling` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestOptionsScheduling`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'timeframes') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && timeframes == o.timeframes && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb index f6ca34c915e7..40c2dd589300 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb @@ -30,6 +30,8 @@ class SyntheticsTestOptionsSchedulingTimeframe # The hour of the day on which scheduling ends. attr_accessor :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptionsSchedulingTimeframe` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestOptionsSchedulingTimeframe`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'day') @@ -101,6 +105,26 @@ def day=(day) @day = day end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) day == o.day && from == o.from && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request.rb b/lib/datadog_api_client/v1/models/synthetics_test_request.rb index ee0f71024202..ba1fe839002d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -113,6 +113,8 @@ class SyntheticsTestRequest # URL to perform the test with. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -195,12 +197,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'allow_insecure') @@ -365,6 +369,26 @@ def number_of_packets=(number_of_packets) @number_of_packets = number_of_packets end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -401,6 +425,7 @@ def ==(o) should_track_hops == o.should_track_hops && timeout == o.timeout && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb index 2b383891d794..92ed779f39ee 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb @@ -39,6 +39,8 @@ class SyntheticsTestRequestBodyFile # Type of the file. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestBodyFile` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestRequestBodyFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'bucket_key') @@ -172,6 +176,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -184,6 +208,7 @@ def ==(o) original_file_name == o.original_file_name && size == o.size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb index 3ae976ccd3a3..a40d4ccaab6c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb @@ -27,6 +27,8 @@ class SyntheticsTestRequestCertificate # Define a request certificate. attr_accessor :key + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestCertificate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestRequestCertificate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cert') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && cert == o.cert && key == o.key + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb index 1678948d077b..0eb50fe0dae1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb @@ -30,6 +30,8 @@ class SyntheticsTestRequestCertificateItem # Date of update of the certificate or key, ISO format. attr_accessor :updated_at + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'content') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) content == o.content && filename == o.filename && updated_at == o.updated_at + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb index 8d958ab212ec..f59219f6352f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb @@ -27,6 +27,8 @@ class SyntheticsTestRequestProxy # URL of the proxy to perform the test. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestProxy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestRequestProxy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'headers') @@ -88,6 +92,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && headers == o.headers && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index c870352066a5..137fa54ddfbe 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -49,6 +49,8 @@ class SyntheticsTiming # Time spent in millisecond waiting for a response. attr_accessor :wait + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -89,12 +91,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTiming` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTiming`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dns') @@ -134,6 +138,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -149,6 +173,7 @@ def ==(o) tcp == o.tcp && total == o.total && wait == o.wait + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb index ec55e67af406..451e0e20937d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -24,6 +24,8 @@ class SyntheticsTriggerBody # Individual Synthetic test. attr_reader :tests + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTriggerBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tests') @@ -81,6 +85,26 @@ def tests=(tests) @tests = tests end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && tests == o.tests + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb index 26df9bda6e26..624493497b87 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb @@ -27,6 +27,8 @@ class SyntheticsTriggerCITestLocation # Name of the location. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerCITestLocation` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTriggerCITestLocation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb index 5636a2b67657..360d1b2be100 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb @@ -33,6 +33,8 @@ class SyntheticsTriggerCITestRunResult # ID of the result. attr_accessor :result_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerCITestRunResult` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTriggerCITestRunResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'device') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) location == o.location && public_id == o.public_id && result_id == o.result_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb index 08685436c699..eded5bc1cb11 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb @@ -33,6 +33,8 @@ class SyntheticsTriggerCITestsResponse # The public IDs of the Synthetic test triggered. attr_accessor :triggered_check_ids + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerCITestsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTriggerCITestsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'batch_id') @@ -102,6 +106,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -112,6 +136,7 @@ def ==(o) locations == o.locations && results == o.results && triggered_check_ids == o.triggered_check_ids + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb index b713ae957e7d..679c21b12569 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -27,6 +27,8 @@ class SyntheticsTriggerTest # The public ID of the Synthetic test to trigger. attr_reader :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerTest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTriggerTest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'metadata') @@ -88,6 +92,26 @@ def public_id=(public_id) @public_id = public_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && metadata == o.metadata && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb b/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb index 2c6cc8965c82..82e88f7f718b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb +++ b/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb @@ -25,6 +25,8 @@ class SyntheticsUpdateTestPauseStatusPayload # Synthetic test. attr_accessor :new_status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsUpdateTestPauseStatusPayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsUpdateTestPauseStatusPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'new_status') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && new_status == o.new_status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb index aa429137a08e..f31c15202ab6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -27,6 +27,8 @@ class SyntheticsVariableParser # Regex or JSON path used for the parser. Not used with type `raw`. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsVariableParser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsVariableParser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -88,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && type == o.type && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/table_widget_definition.rb b/lib/datadog_api_client/v1/models/table_widget_definition.rb index c58e7f24f80f..c493d600d690 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -45,6 +45,8 @@ class TableWidgetDefinition # Type of the table widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TableWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TableWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -157,6 +161,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,6 +195,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/table_widget_request.rb b/lib/datadog_api_client/v1/models/table_widget_request.rb index 7e3d908249dc..fea7f99bc81d 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -81,6 +81,8 @@ class TableWidgetRequest # The controls for sorting the widget. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -143,12 +145,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TableWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TableWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregator') @@ -240,6 +244,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -266,6 +290,7 @@ def ==(o) rum_query == o.rum_query && security_query == o.security_query && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/tag_to_hosts.rb b/lib/datadog_api_client/v1/models/tag_to_hosts.rb index fc6b15fcf10d..96ca601a1d1a 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -24,6 +24,8 @@ class TagToHosts # A list of tags to apply to the host. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TagToHosts` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TagToHosts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tags') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/timeseries_background.rb b/lib/datadog_api_client/v1/models/timeseries_background.rb index 401b89d997a7..8f8fa5ced516 100644 --- a/lib/datadog_api_client/v1/models/timeseries_background.rb +++ b/lib/datadog_api_client/v1/models/timeseries_background.rb @@ -27,6 +27,8 @@ class TimeseriesBackground # Axis controls for the widget. attr_accessor :yaxis + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesBackground` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TimeseriesBackground`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -88,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && type == o.type && yaxis == o.yaxis + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb index 1534291eab72..d67d53ef039b 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -66,6 +66,8 @@ class TimeseriesWidgetDefinition # Axis controls for the widget. attr_accessor :yaxis + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -118,12 +120,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TimeseriesWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -230,6 +234,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -251,6 +275,7 @@ def ==(o) title_size == o.title_size && type == o.type && yaxis == o.yaxis + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb b/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb index 43016df3cd9a..4a974193a69a 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb @@ -27,6 +27,8 @@ class TimeseriesWidgetExpressionAlias # Expression name. attr_reader :expression + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetExpressionAlias` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TimeseriesWidgetExpressionAlias`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'alias_name') @@ -88,6 +92,26 @@ def expression=(expression) @expression = expression end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && alias_name == o.alias_name && expression == o.expression + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb index fa951a9c69f4..b862e649abe4 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -72,6 +72,8 @@ class TimeseriesWidgetRequest # Define request widget style. attr_accessor :style + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -128,12 +130,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TimeseriesWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_query') @@ -211,6 +215,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -234,6 +258,7 @@ def ==(o) rum_query == o.rum_query && security_query == o.security_query && style == o.style + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb index 68006df23e42..98dac3ba44a6 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -45,6 +45,8 @@ class ToplistWidgetDefinition # Type of the top list widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ToplistWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ToplistWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -157,6 +161,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,6 +195,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/toplist_widget_flat.rb b/lib/datadog_api_client/v1/models/toplist_widget_flat.rb index 4d9b23c93d44..83405173c73f 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_flat.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_flat.rb @@ -24,6 +24,8 @@ class ToplistWidgetFlat # Top list widget flat display type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ToplistWidgetFlat` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ToplistWidgetFlat`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -79,6 +83,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/toplist_widget_request.rb b/lib/datadog_api_client/v1/models/toplist_widget_request.rb index b0881ae023a9..6f411d8ffb9a 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -69,6 +69,8 @@ class ToplistWidgetRequest # Define request widget style. attr_accessor :style + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -123,12 +125,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ToplistWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ToplistWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_query') @@ -220,6 +224,26 @@ def conditional_formats=(conditional_formats) @conditional_formats = conditional_formats end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -242,6 +266,7 @@ def ==(o) security_query == o.security_query && sort == o.sort && style == o.style + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb b/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb index b6a608aff553..8699d2dd301c 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb @@ -27,6 +27,8 @@ class ToplistWidgetStacked # Top list widget stacked display type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ToplistWidgetStacked` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ToplistWidgetStacked`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'legend') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && legend == o.legend && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/toplist_widget_style.rb b/lib/datadog_api_client/v1/models/toplist_widget_style.rb index b99bb806f723..4a663ede364d 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_style.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_style.rb @@ -27,6 +27,8 @@ class ToplistWidgetStyle # Top list widget scaling definition. attr_accessor :scaling + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ToplistWidgetStyle` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ToplistWidgetStyle`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'display') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && display == o.display && scaling == o.scaling + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb b/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb index d0c08908dcd0..7a39c3178a74 100644 --- a/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb @@ -39,6 +39,8 @@ class TopologyMapWidgetDefinition # Type of the topology map widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TopologyMapWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TopologyMapWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_links') @@ -143,6 +147,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -155,6 +179,7 @@ def ==(o) title_align == o.title_align && title_size == o.title_size && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/topology_query.rb b/lib/datadog_api_client/v1/models/topology_query.rb index c78aad64428c..072d06430be3 100644 --- a/lib/datadog_api_client/v1/models/topology_query.rb +++ b/lib/datadog_api_client/v1/models/topology_query.rb @@ -30,6 +30,8 @@ class TopologyQuery # Name of the service attr_accessor :service + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TopologyQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TopologyQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data_source') @@ -99,6 +103,26 @@ def filters=(filters) @filters = filters end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) data_source == o.data_source && filters == o.filters && service == o.service + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/topology_request.rb b/lib/datadog_api_client/v1/models/topology_request.rb index 78c5d7d50128..f824052b5a3b 100644 --- a/lib/datadog_api_client/v1/models/topology_request.rb +++ b/lib/datadog_api_client/v1/models/topology_request.rb @@ -27,6 +27,8 @@ class TopologyRequest # Widget request type. attr_accessor :request_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TopologyRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TopologyRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && query == o.query && request_type == o.request_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb index 30500e1fa776..6dadea8d4876 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb @@ -45,6 +45,8 @@ class TreeMapWidgetDefinition # Type of the treemap widget. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TreeMapWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TreeMapWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'color_by') @@ -165,6 +169,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -179,6 +203,7 @@ def ==(o) time == o.time && title == o.title && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_request.rb b/lib/datadog_api_client/v1/models/tree_map_widget_request.rb index 87f0095b316b..25d0fb2cc609 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_request.rb @@ -33,6 +33,8 @@ class TreeMapWidgetRequest # Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets. attr_accessor :response_format + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TreeMapWidgetRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TreeMapWidgetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'formulas') @@ -92,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -102,6 +126,7 @@ def ==(o) q == o.q && queries == o.queries && response_format == o.response_format + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb index 0e122567e26f..d5e4be33fe4a 100644 --- a/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb @@ -33,6 +33,8 @@ class UsageAnalyzedLogsHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAnalyzedLogsHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAnalyzedLogsHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'analyzed_logs') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) hour == o.hour && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb b/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb index a72da6ee38c5..1ddacae79e03 100644 --- a/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb @@ -24,6 +24,8 @@ class UsageAnalyzedLogsResponse # Get hourly usage for analyzed logs. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAnalyzedLogsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAnalyzedLogsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb index 0239c44cdd2d..6b0d3db0c54e 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb @@ -30,6 +30,8 @@ class UsageAttributionAggregatesBody # The value for a given field. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionAggregatesBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAttributionAggregatesBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'agg_type') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) agg_type == o.agg_type && field == o.field && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb index 8c13d20df3b1..43c22fa76288 100644 --- a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb @@ -33,6 +33,8 @@ class UsageAuditLogsHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAuditLogsHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAuditLogsHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) lines_indexed == o.lines_indexed && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb b/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb index e00565a2c7d3..50bd0cb63e0f 100644 --- a/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb @@ -24,6 +24,8 @@ class UsageAuditLogsResponse # Get hourly usage for audit logs. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAuditLogsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAuditLogsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb index b8059cf7c2b7..6208358fd890 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb @@ -42,6 +42,8 @@ class UsageBillableSummaryBody # Units pertaining to the usage. attr_accessor :usage_unit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageBillableSummaryBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_billable_usage') @@ -115,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) org_billable_usage == o.org_billable_usage && percentage_in_account == o.percentage_in_account && usage_unit == o.usage_unit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb index 9716d1d056d8..a28701c53609 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb @@ -54,6 +54,8 @@ class UsageBillableSummaryHour # Response with aggregated usage types. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageBillableSummaryHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_name') @@ -151,6 +155,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,6 +192,7 @@ def ==(o) region == o.region && start_date == o.start_date && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb index 9f6efd6c37f5..158cf04c324b 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb @@ -288,6 +288,8 @@ class UsageBillableSummaryKeys # Response with properties for each aggregated usage type. attr_accessor :timeseries_sum + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -488,12 +490,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryKeys` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageBillableSummaryKeys`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_fargate_average') @@ -853,6 +857,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -948,6 +972,7 @@ def ==(o) synthetics_browser_checks_sum == o.synthetics_browser_checks_sum && timeseries_average == o.timeseries_average && timeseries_sum == o.timeseries_sum + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb index 9cc61b915dbc..bfdf460a870c 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb @@ -24,6 +24,8 @@ class UsageBillableSummaryResponse # An array of objects regarding usage of billable summary. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageBillableSummaryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb b/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb index e0873e7f29a6..ccd798bdc785 100644 --- a/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb @@ -42,6 +42,8 @@ class UsageCIVisibilityHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -90,12 +92,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCIVisibilityHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCIVisibilityHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'ci_pipeline_indexed_spans') @@ -127,6 +131,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -140,6 +164,7 @@ def ==(o) ci_visibility_test_committers == o.ci_visibility_test_committers && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb b/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb index f0506f0abcd2..ff4ada2019cf 100644 --- a/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb +++ b/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb @@ -24,6 +24,8 @@ class UsageCIVisibilityResponse # Response containing CI visibility usage. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCIVisibilityResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCIVisibilityResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb index 0fe7a8109bbd..2bbc8b2beb46 100644 --- a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb @@ -51,6 +51,8 @@ class UsageCloudSecurityPostureManagementHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -107,12 +109,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCloudSecurityPostureManagementHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCloudSecurityPostureManagementHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aas_host_count') @@ -156,6 +160,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -172,6 +196,7 @@ def ==(o) hour == o.hour && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb index 777940875aa9..7fd40df51f9b 100644 --- a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb @@ -24,6 +24,8 @@ class UsageCloudSecurityPostureManagementResponse # Get hourly usage for Cloud Security Management Pro. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCloudSecurityPostureManagementResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCloudSecurityPostureManagementResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb index ff2225cfab61..a6cb2968d66e 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb @@ -36,6 +36,8 @@ class UsageCustomReportsAttributes # A list of tags to apply to custom reports. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCustomReportsAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'computed_on') @@ -99,6 +103,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) size == o.size && start_date == o.start_date && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb index 8ef0ff32ca48..822d6fe4a2a9 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb @@ -30,6 +30,8 @@ class UsageCustomReportsData # The type of reports. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCustomReportsData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb index 1813521ca3af..dc78c00596ec 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb @@ -24,6 +24,8 @@ class UsageCustomReportsMeta # The object containing page total count. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCustomReportsMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb index 06291da807df..f03340b54b24 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb @@ -24,6 +24,8 @@ class UsageCustomReportsPage # Total page count. attr_accessor :total_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCustomReportsPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_count') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && total_count == o.total_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb index 4e7f2c05bcd5..702ea93a10fc 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb @@ -27,6 +27,8 @@ class UsageCustomReportsResponse # The object containing document metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCustomReportsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_cws_hour.rb b/lib/datadog_api_client/v1/models/usage_cws_hour.rb index b4c63283d299..42712db4254d 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -36,6 +36,8 @@ class UsageCWSHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -77,12 +79,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCWSHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCWSHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cws_container_count') @@ -106,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) hour == o.hour && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_cws_response.rb b/lib/datadog_api_client/v1/models/usage_cws_response.rb index 67c33a832283..819b17597967 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -24,6 +24,8 @@ class UsageCWSResponse # Get hourly usage for Cloud Workload Security. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCWSResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCWSResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb index a8d74494bfc9..73e0796a65c0 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -36,6 +36,8 @@ class UsageDBMHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -77,12 +79,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageDBMHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageDBMHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dbm_host_count') @@ -106,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) hour == o.hour && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_dbm_response.rb b/lib/datadog_api_client/v1/models/usage_dbm_response.rb index f2be554cecfd..058bf9df5505 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -24,6 +24,8 @@ class UsageDBMResponse # Get hourly usage for Database Monitoring attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageDBMResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageDBMResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb index 508229e95f5b..af113eba43be 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -42,6 +42,8 @@ class UsageFargateHour # The number of Fargate tasks run. attr_accessor :tasks_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -89,12 +91,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageFargateHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageFargateHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_fargate_count') @@ -126,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -139,6 +163,7 @@ def ==(o) org_name == o.org_name && public_id == o.public_id && tasks_count == o.tasks_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_fargate_response.rb b/lib/datadog_api_client/v1/models/usage_fargate_response.rb index b7837e1efe68..a8e5d232b25e 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -24,6 +24,8 @@ class UsageFargateResponse # Array with the number of hourly Fargate tasks recorded for a given organization. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageFargateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageFargateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_host_hour.rb b/lib/datadog_api_client/v1/models/usage_host_hour.rb index 50803861eb1d..cf57844cacd0 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -81,6 +81,8 @@ class UsageHostHour # (and were NOT running the Datadog Agent). attr_accessor :vsphere_host_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -159,12 +161,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageHostHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageHostHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'agent_host_count') @@ -236,6 +240,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -259,6 +283,7 @@ def ==(o) org_name == o.org_name && public_id == o.public_id && vsphere_host_count == o.vsphere_host_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_hosts_response.rb b/lib/datadog_api_client/v1/models/usage_hosts_response.rb index 31c2eea6a446..ee9f79ea750a 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -24,6 +24,8 @@ class UsageHostsResponse # An array of objects related to host usage. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageHostsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageHostsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb b/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb index 0d37efb007cc..eb833ecd507c 100644 --- a/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb @@ -33,6 +33,8 @@ class UsageIncidentManagementHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIncidentManagementHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageIncidentManagementHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) monthly_active_users == o.monthly_active_users && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_incident_management_response.rb b/lib/datadog_api_client/v1/models/usage_incident_management_response.rb index 603f17b55177..395e55190eb5 100644 --- a/lib/datadog_api_client/v1/models/usage_incident_management_response.rb +++ b/lib/datadog_api_client/v1/models/usage_incident_management_response.rb @@ -24,6 +24,8 @@ class UsageIncidentManagementResponse # Get hourly usage for incident management. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIncidentManagementResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageIncidentManagementResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb b/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb index f675b2e6ba7b..51413bacce58 100644 --- a/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb @@ -33,6 +33,8 @@ class UsageIndexedSpansHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIndexedSpansHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageIndexedSpansHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) indexed_events_count == o.indexed_events_count && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb b/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb index 11c92be613cb..09e8baa6f1f9 100644 --- a/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb +++ b/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb @@ -24,6 +24,8 @@ class UsageIndexedSpansResponse # Array with the number of hourly traces indexed for a given organization. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIndexedSpansResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageIndexedSpansResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb b/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb index e34b78a6fa1b..ee464f540cce 100644 --- a/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb @@ -33,6 +33,8 @@ class UsageIngestedSpansHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIngestedSpansHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageIngestedSpansHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) ingested_events_bytes == o.ingested_events_bytes && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb b/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb index 1a0b93eba582..9c40fca72aae 100644 --- a/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb +++ b/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb @@ -24,6 +24,8 @@ class UsageIngestedSpansResponse # Get hourly usage for ingested spans. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIngestedSpansResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageIngestedSpansResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_iot_hour.rb b/lib/datadog_api_client/v1/models/usage_iot_hour.rb index 241fdc2dfe05..082ccf947208 100644 --- a/lib/datadog_api_client/v1/models/usage_iot_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_iot_hour.rb @@ -33,6 +33,8 @@ class UsageIoTHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIoTHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageIoTHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) iot_device_count == o.iot_device_count && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_iot_response.rb b/lib/datadog_api_client/v1/models/usage_iot_response.rb index 73728bb3c278..7b1e5c5ac07d 100644 --- a/lib/datadog_api_client/v1/models/usage_iot_response.rb +++ b/lib/datadog_api_client/v1/models/usage_iot_response.rb @@ -24,6 +24,8 @@ class UsageIoTResponse # Get hourly usage for IoT. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIoTResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageIoTResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb index ad58fc53117b..f034b9c37b46 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -37,6 +37,8 @@ class UsageLambdaHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLambdaHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageLambdaHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'func_count') @@ -107,6 +111,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) invocations_sum == o.invocations_sum && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_lambda_response.rb b/lib/datadog_api_client/v1/models/usage_lambda_response.rb index fbf73f6ec3f9..32329494e4e2 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -25,6 +25,8 @@ class UsageLambdaResponse # Get hourly usage for Lambda. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLambdaResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageLambdaResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -64,6 +68,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -71,6 +95,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb index eea661c32452..61d28db299a5 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb @@ -42,6 +42,8 @@ class UsageLogsByIndexHour # The retention period (in days) for this index ID. attr_accessor :retention + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByIndexHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageLogsByIndexHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'event_count') @@ -115,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) org_name == o.org_name && public_id == o.public_id && retention == o.retention + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb b/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb index f72a5c31fa23..64ff8d47b60d 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb @@ -24,6 +24,8 @@ class UsageLogsByIndexResponse # An array of objects regarding hourly usage of logs by index response. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByIndexResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageLogsByIndexResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb index 219c9a19d64f..76bf4d7da495 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb @@ -39,6 +39,8 @@ class UsageLogsByRetentionHour # The retention period in days or "custom" for all custom retention usage. attr_accessor :retention + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -84,12 +86,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByRetentionHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageLogsByRetentionHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'indexed_events_count') @@ -117,6 +121,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -129,6 +153,7 @@ def ==(o) public_id == o.public_id && rehydrated_indexed_events_count == o.rehydrated_indexed_events_count && retention == o.retention + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb b/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb index 677db6463273..116488524c89 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb @@ -24,6 +24,8 @@ class UsageLogsByRetentionResponse # Get hourly usage for indexed logs by retention period. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByRetentionResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageLogsByRetentionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_hour.rb index 23344bc9cc7e..82c703d6b294 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -54,6 +54,8 @@ class UsageLogsHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -113,12 +115,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageLogsHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'billable_ingested_bytes') @@ -166,6 +170,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -183,6 +207,7 @@ def ==(o) logs_rehydrated_ingested_bytes == o.logs_rehydrated_ingested_bytes && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_logs_response.rb b/lib/datadog_api_client/v1/models/usage_logs_response.rb index 08d9c8ab8737..f5a6a91f84e1 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -24,6 +24,8 @@ class UsageLogsResponse # An array of objects regarding hourly usage of logs. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageLogsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb b/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb index 24fa0211de5b..c6067cf69d0a 100644 --- a/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb @@ -33,6 +33,8 @@ class UsageNetworkFlowsHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkFlowsHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageNetworkFlowsHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) indexed_events_count == o.indexed_events_count && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_network_flows_response.rb b/lib/datadog_api_client/v1/models/usage_network_flows_response.rb index 681d5156f6ad..523d7b5f6c43 100644 --- a/lib/datadog_api_client/v1/models/usage_network_flows_response.rb +++ b/lib/datadog_api_client/v1/models/usage_network_flows_response.rb @@ -24,6 +24,8 @@ class UsageNetworkFlowsResponse # Get hourly usage for Network Flows. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkFlowsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageNetworkFlowsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb b/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb index 1d73ab5ccc0a..fc10291da683 100644 --- a/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb @@ -33,6 +33,8 @@ class UsageNetworkHostsHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkHostsHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageNetworkHostsHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'host_count') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) hour == o.hour && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb b/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb index c816b4083362..d3c5f27441b4 100644 --- a/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb @@ -24,6 +24,8 @@ class UsageNetworkHostsResponse # Get hourly usage for NPM hosts. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkHostsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageNetworkHostsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb b/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb index 33f57854d433..3892f6cb8054 100644 --- a/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb @@ -33,6 +33,8 @@ class UsageOnlineArchiveHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageOnlineArchiveHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageOnlineArchiveHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) online_archive_events_count == o.online_archive_events_count && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_online_archive_response.rb b/lib/datadog_api_client/v1/models/usage_online_archive_response.rb index c6aaf58f881d..13849aad4887 100644 --- a/lib/datadog_api_client/v1/models/usage_online_archive_response.rb +++ b/lib/datadog_api_client/v1/models/usage_online_archive_response.rb @@ -24,6 +24,8 @@ class UsageOnlineArchiveResponse # Response containing Online Archive usage. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageOnlineArchiveResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageOnlineArchiveResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb index 2fc993de4886..14a9e38608f7 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -39,6 +39,8 @@ class UsageProfilingHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageProfilingHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageProfilingHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aas_count') @@ -116,6 +120,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) hour == o.hour && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_profiling_response.rb b/lib/datadog_api_client/v1/models/usage_profiling_response.rb index 106f49759541..41a454463044 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -24,6 +24,8 @@ class UsageProfilingResponse # Get hourly usage for profiled hosts. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageProfilingResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageProfilingResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb b/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb index 04d76b1ccd2d..7601beae9520 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb @@ -48,6 +48,8 @@ class UsageRumSessionsHour # Contains the number of mobile RUM sessions on React Native (data available beginning May 1, 2022). attr_accessor :session_count_reactnative + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -100,12 +102,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumSessionsHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageRumSessionsHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -145,6 +149,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -160,6 +184,7 @@ def ==(o) session_count_flutter == o.session_count_flutter && session_count_ios == o.session_count_ios && session_count_reactnative == o.session_count_reactnative + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb b/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb index 14fbd92b799a..1823e9040d73 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb @@ -24,6 +24,8 @@ class UsageRumSessionsResponse # Get hourly usage for RUM sessions. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumSessionsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageRumSessionsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb index 0124db1b1fba..52a2ad5db7ae 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb @@ -36,6 +36,8 @@ class UsageRumUnitsHour # Total RUM units across mobile and browser RUM. attr_accessor :rum_units + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumUnitsHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageRumUnitsHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'browser_rum_units') @@ -107,6 +111,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) org_name == o.org_name && public_id == o.public_id && rum_units == o.rum_units + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_response.rb b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb index 4f7146735c9e..190cbbd6d21c 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_units_response.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb @@ -24,6 +24,8 @@ class UsageRumUnitsResponse # Get hourly usage for RUM Units. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumUnitsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageRumUnitsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_sds_hour.rb b/lib/datadog_api_client/v1/models/usage_sds_hour.rb index 2201fdc2a93f..12dd5722ba0b 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -45,6 +45,8 @@ class UsageSDSHour # The total number of bytes scanned across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. attr_accessor :total_scanned_bytes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -95,12 +97,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSDSHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSDSHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'apm_scanned_bytes') @@ -136,6 +140,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -150,6 +174,7 @@ def ==(o) public_id == o.public_id && rum_scanned_bytes == o.rum_scanned_bytes && total_scanned_bytes == o.total_scanned_bytes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_sds_response.rb b/lib/datadog_api_client/v1/models/usage_sds_response.rb index c8a64d5e84a2..d5596d3c6b27 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -24,6 +24,8 @@ class UsageSDSResponse # Get hourly usage for Sensitive Data Scanner. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSDSResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSDSResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb index 7c663cd588f7..ad4b67e25e7a 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -33,6 +33,8 @@ class UsageSNMPHour # Contains the number of SNMP devices. attr_accessor :snmp_devices + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSNMPHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSNMPHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) org_name == o.org_name && public_id == o.public_id && snmp_devices == o.snmp_devices + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_snmp_response.rb b/lib/datadog_api_client/v1/models/usage_snmp_response.rb index 91a6f79f0d70..f9d84164b141 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -24,6 +24,8 @@ class UsageSNMPResponse # Get hourly usage for SNMP devices. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSNMPResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSNMPResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb index 7c0ad5fc13fb..1964beb8a470 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb @@ -39,6 +39,8 @@ class UsageSpecifiedCustomReportsAttributes # A list of tags to apply to specified custom reports. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'computed_on') @@ -108,6 +112,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -120,6 +144,7 @@ def ==(o) size == o.size && start_date == o.start_date && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb index 68aa6f3bc539..be4cced3feef 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb @@ -30,6 +30,8 @@ class UsageSpecifiedCustomReportsData # The type of reports. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb index fd2e88433e06..0ba55a7841d0 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb @@ -24,6 +24,8 @@ class UsageSpecifiedCustomReportsMeta # The object containing page total count for specified ID. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb index 943930df1662..3a3bc6c9af57 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb @@ -24,6 +24,8 @@ class UsageSpecifiedCustomReportsPage # Total page count. attr_accessor :total_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_count') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && total_count == o.total_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb index 57300ce53d8e..4dc4c183774a 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb @@ -27,6 +27,8 @@ class UsageSpecifiedCustomReportsResponse # The object containing document metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_summary_date.rb b/lib/datadog_api_client/v1/models/usage_summary_date.rb index bda92507e82a..a1682ebfb26c 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -417,6 +417,8 @@ class UsageSummaryDate # Sum of all workflows executed over all hours in the current date for all organizations. attr_accessor :workflow_executions_usage_sum + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -703,12 +705,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryDate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSummaryDate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'agent_host_top99p') @@ -1242,6 +1246,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -1380,6 +1404,7 @@ def ==(o) vsphere_host_top99p == o.vsphere_host_top99p && vuln_management_host_count_top99p == o.vuln_management_host_count_top99p && workflow_executions_usage_sum == o.workflow_executions_usage_sum + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb index 633d95594cc7..b8e4cf69bc4d 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb @@ -435,6 +435,8 @@ class UsageSummaryDateOrg # Sum of all workflows executed over all hours in the current date for the given org. attr_accessor :workflow_executions_usage_sum + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -733,12 +735,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryDateOrg` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSummaryDateOrg`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_name') @@ -1294,6 +1298,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -1438,6 +1462,7 @@ def ==(o) vsphere_host_top99p == o.vsphere_host_top99p && vuln_management_host_count_top99p == o.vuln_management_host_count_top99p && workflow_executions_usage_sum == o.workflow_executions_usage_sum + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_summary_response.rb b/lib/datadog_api_client/v1/models/usage_summary_response.rb index 878841ae8a80..009f0b040aed 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -450,6 +450,8 @@ class UsageSummaryResponse # Sum of all workflows executed over all hours in the current month for all organizations. attr_accessor :workflow_executions_usage_agg_sum + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -758,12 +760,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSummaryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'agent_host_top99p_sum') @@ -1341,6 +1345,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -1490,6 +1514,7 @@ def ==(o) vsphere_host_top99p_sum == o.vsphere_host_top99p_sum && vuln_management_host_count_top99p_sum == o.vuln_management_host_count_top99p_sum && workflow_executions_usage_agg_sum == o.workflow_executions_usage_agg_sum + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb index 5dc51fa9ebd0..4cc56ec4f2d8 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb @@ -33,6 +33,8 @@ class UsageSyntheticsAPIHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsAPIHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSyntheticsAPIHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'check_calls_count') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) hour == o.hour && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb index c2e74cb9cdcb..b923017a8f0d 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb @@ -24,6 +24,8 @@ class UsageSyntheticsAPIResponse # Get hourly usage for Synthetics API tests. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsAPIResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSyntheticsAPIResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb index 816481805bdd..e87b7e29be25 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb @@ -33,6 +33,8 @@ class UsageSyntheticsBrowserHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsBrowserHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSyntheticsBrowserHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'browser_check_calls_count') @@ -96,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) hour == o.hour && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb index c8c43849e01f..3dbbb0990e18 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb @@ -24,6 +24,8 @@ class UsageSyntheticsBrowserResponse # Get hourly usage for Synthetics Browser tests. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsBrowserResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSyntheticsBrowserResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb index 1c84d179ce16..9ba1ce8a4deb 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -33,6 +33,8 @@ class UsageSyntheticsHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSyntheticsHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'check_calls_count') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) hour == o.hour && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb index 7eb380584905..4f03be9960e0 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -24,6 +24,8 @@ class UsageSyntheticsResponse # Array with the number of hourly Synthetics test run for a given organization. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageSyntheticsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb index 8ad3666f9ec0..f525cedc4638 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -39,6 +39,8 @@ class UsageTimeseriesHour # The organization public ID. attr_accessor :public_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTimeseriesHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageTimeseriesHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hour') @@ -106,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) num_custom_timeseries == o.num_custom_timeseries && org_name == o.org_name && public_id == o.public_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb index 7cd580246c24..f5fec66df5a0 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -24,6 +24,8 @@ class UsageTimeseriesResponse # An array of objects regarding hourly usage of timeseries. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTimeseriesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageTimeseriesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb index 05382bff3949..1b36c914c0be 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb @@ -33,6 +33,8 @@ class UsageTopAvgMetricsHour # Contains the custom metric name. attr_accessor :metric_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsHour` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageTopAvgMetricsHour`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'avg_metric_hour') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) max_metric_hour == o.max_metric_hour && metric_category == o.metric_category && metric_name == o.metric_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb index cb285009f9de..ee8196d354c2 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb @@ -30,6 +30,8 @@ class UsageTopAvgMetricsMetadata # The metadata for the current pagination. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageTopAvgMetricsMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'day') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) day == o.day && month == o.month && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb index 36a94082a497..dfdd048270f5 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb @@ -30,6 +30,8 @@ class UsageTopAvgMetricsPagination # Total number of records. attr_accessor :total_number_of_records + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -67,12 +69,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageTopAvgMetricsPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'limit') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -97,6 +121,7 @@ def ==(o) limit == o.limit && next_record_id == o.next_record_id && total_number_of_records == o.total_number_of_records + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb index 91cd837adca3..da4c672f359e 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb @@ -27,6 +27,8 @@ class UsageTopAvgMetricsResponse # Number of hourly recorded custom metrics for a given organization. attr_accessor :usage + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageTopAvgMetricsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'metadata') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && metadata == o.metadata && usage == o.usage + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index 3e6544f9d2f7..e8c4860f5403 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -42,6 +42,8 @@ class User # Whether or not the user logged in Datadog at least once. attr_accessor :verified + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -86,12 +88,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::User` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::User`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'access_role') @@ -123,6 +127,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -136,6 +160,7 @@ def ==(o) icon == o.icon && name == o.name && verified == o.verified + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/user_disable_response.rb b/lib/datadog_api_client/v1/models/user_disable_response.rb index b87289942fd6..0ef61674a62a 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -24,6 +24,8 @@ class UserDisableResponse # Information pertaining to a user disabled for a given organization. attr_accessor :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UserDisableResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UserDisableResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'message') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/user_list_response.rb b/lib/datadog_api_client/v1/models/user_list_response.rb index b195edae0f8b..0da850e2d410 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -24,6 +24,8 @@ class UserListResponse # Array of users. attr_accessor :users + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UserListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UserListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'users') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && users == o.users + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index e3c15fcb3074..1820bb67c90a 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -24,6 +24,8 @@ class UserResponse # Create, edit, and disable users. attr_accessor :user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UserResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UserResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'user') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && user == o.user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 5d8ff322a889..67fd1ddbf140 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -42,6 +42,8 @@ class WebhooksIntegration # URL of the webhook. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegration` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WebhooksIntegration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_headers') @@ -141,6 +145,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -152,6 +176,7 @@ def ==(o) name == o.name && payload == o.payload && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb index cda7c69409aa..6b91b0a3c3a9 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb @@ -31,6 +31,8 @@ class WebhooksIntegrationCustomVariable # Value of the custom variable. attr_reader :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariable` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_secret') @@ -120,6 +124,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -129,6 +153,7 @@ def ==(o) is_secret == o.is_secret && name == o.name && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb index 247ac6818504..324838ddec6d 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb @@ -31,6 +31,8 @@ class WebhooksIntegrationCustomVariableResponse # Value of the custom variable. It won't be returned if the variable is secret. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariableResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariableResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_secret') @@ -109,6 +113,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) is_secret == o.is_secret && name == o.name && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb index 46599091bab2..17d430964f03 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb @@ -33,6 +33,8 @@ class WebhooksIntegrationCustomVariableUpdateRequest # Value of the custom variable. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariableUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariableUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_secret') @@ -82,6 +86,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -91,6 +115,7 @@ def ==(o) is_secret == o.is_secret && name == o.name && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb b/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb index deb73cfc2279..89063c6e3d86 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb @@ -44,6 +44,8 @@ class WebhooksIntegrationUpdateRequest # URL of the webhook. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -84,12 +86,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WebhooksIntegrationUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_headers') @@ -113,6 +117,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -124,6 +148,7 @@ def ==(o) name == o.name && payload == o.payload && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index bc77870cfd49..7482f8a35fde 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -35,6 +35,8 @@ class Widget # The layout for a widget on a `free` or **new dashboard layout** dashboard. attr_accessor :layout + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Widget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::Widget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'definition') @@ -102,6 +106,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) definition == o.definition && id == o.id && layout == o.layout + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index 4c443740f88e..62aaa5b27990 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -36,6 +36,8 @@ class WidgetAxis # Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`). attr_accessor :scale + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetAxis` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetAxis`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'include_zero') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) max == o.max && min == o.min && scale == o.scale + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_conditional_format.rb b/lib/datadog_api_client/v1/models/widget_conditional_format.rb index c2bf26001b3f..872ebc6bd212 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -48,6 +48,8 @@ class WidgetConditionalFormat # Value for the comparator. attr_reader :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetConditionalFormat` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetConditionalFormat`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'comparator') @@ -173,6 +177,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -188,6 +212,7 @@ def ==(o) palette == o.palette && timeframe == o.timeframe && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_custom_link.rb b/lib/datadog_api_client/v1/models/widget_custom_link.rb index 357acd7a331f..4b7689cd1025 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -33,6 +33,8 @@ class WidgetCustomLink # The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. attr_accessor :override_label + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetCustomLink` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetCustomLink`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_hidden') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) label == o.label && link == o.link && override_label == o.override_label + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index 263d88019a97..2d443905b0a9 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -30,6 +30,8 @@ class WidgetEvent # The execution method for multi-value filters. attr_accessor :tags_execution + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetEvent` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'q') @@ -91,6 +95,26 @@ def q=(q) @q = q end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) self.class == o.class && q == o.q && tags_execution == o.tags_execution + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_field_sort.rb b/lib/datadog_api_client/v1/models/widget_field_sort.rb index 8a8831963749..f346749e587b 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -27,6 +27,8 @@ class WidgetFieldSort # Widget sorting methods. attr_reader :order + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFieldSort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetFieldSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'column') @@ -99,6 +103,26 @@ def order=(order) @order = order end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && column == o.column && order == o.order + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 48f8b40787bb..65a165b09525 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -39,6 +39,8 @@ class WidgetFormula # Styling options for widget formulas. attr_accessor :style + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormula` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetFormula`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_alias') @@ -126,6 +130,26 @@ def formula=(formula) @formula = formula end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) formula == o.formula && limit == o.limit && style == o.style + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_formula_limit.rb b/lib/datadog_api_client/v1/models/widget_formula_limit.rb index 5a48eccf606a..93d6254eb958 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -27,6 +27,8 @@ class WidgetFormulaLimit # Direction of sort. attr_accessor :order + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormulaLimit` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetFormulaLimit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && count == o.count && order == o.order + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_formula_sort.rb b/lib/datadog_api_client/v1/models/widget_formula_sort.rb index b4ca83e3820b..0df6dc3e9e67 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_sort.rb @@ -30,6 +30,8 @@ class WidgetFormulaSort # Set the sort type to formula. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormulaSort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetFormulaSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'index') @@ -123,6 +127,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -132,6 +156,7 @@ def ==(o) index == o.index && order == o.order && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_formula_style.rb b/lib/datadog_api_client/v1/models/widget_formula_style.rb index b30b038c6ddf..fc2e33d3b5c4 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_style.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_style.rb @@ -27,6 +27,8 @@ class WidgetFormulaStyle # Index specifying which color to use within the palette. attr_accessor :palette_index + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormulaStyle` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetFormulaStyle`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'palette') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && palette == o.palette && palette_index == o.palette_index + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_group_sort.rb b/lib/datadog_api_client/v1/models/widget_group_sort.rb index a9f54ac312a0..a07d5996ed10 100644 --- a/lib/datadog_api_client/v1/models/widget_group_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_group_sort.rb @@ -30,6 +30,8 @@ class WidgetGroupSort # Set the sort type to group. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetGroupSort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetGroupSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) name == o.name && order == o.order && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index 8a70b36eb239..a5709449e2ba 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -37,6 +37,8 @@ class WidgetLayout # The position of the widget on the y (vertical) axis. Should be a non-negative integer. attr_reader :y + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetLayout` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetLayout`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'height') @@ -165,6 +169,26 @@ def y=(y) @y = y end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -176,6 +200,7 @@ def ==(o) width == o.width && x == o.x && y == o.y + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index 154287bb82e6..a9744f4a1e51 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -37,6 +37,8 @@ class WidgetMarker # Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10. attr_reader :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -67,12 +69,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetMarker` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetMarker`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'display_type') @@ -110,6 +114,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -120,6 +144,7 @@ def ==(o) label == o.label && time == o.time && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_request_style.rb b/lib/datadog_api_client/v1/models/widget_request_style.rb index fce0bbde7310..e2ef48ff5378 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -30,6 +30,8 @@ class WidgetRequestStyle # Color palette to apply to the widget. attr_accessor :palette + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetRequestStyle` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetRequestStyle`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'line_type') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) line_type == o.line_type && line_width == o.line_width && palette == o.palette + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_sort_by.rb b/lib/datadog_api_client/v1/models/widget_sort_by.rb index 670a54bff2af..19cc7236f892 100644 --- a/lib/datadog_api_client/v1/models/widget_sort_by.rb +++ b/lib/datadog_api_client/v1/models/widget_sort_by.rb @@ -27,6 +27,8 @@ class WidgetSortBy # The array of items to sort the widget by in order. attr_accessor :order_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetSortBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetSortBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -90,6 +94,26 @@ def count=(count) @count = count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && count == o.count && order_by == o.order_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index 6af52e104beb..1d2a2ecb334a 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -24,6 +24,8 @@ class WidgetStyle # Color palette to apply to the widget. attr_accessor :palette + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetStyle` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetStyle`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'palette') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && palette == o.palette + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index 58f194a55404..c8a0524315c5 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -24,6 +24,8 @@ class WidgetTime # The available timeframes depend on the widget you are using. attr_accessor :live_span + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetTime` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetTime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'live_span') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && live_span == o.live_span + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb b/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb index c198a747d9cc..6103e109359f 100644 --- a/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb +++ b/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb @@ -27,6 +27,8 @@ class ActiveBillingDimensionsAttributes # List of active billing dimensions. Example: `[infra_host, apm_host, serverless_infra]`. attr_accessor :values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ActiveBillingDimensionsAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ActiveBillingDimensionsAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'month') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && month == o.month && values == o.values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb b/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb index 5be4f6b54dd6..1d0dc4e07715 100644 --- a/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb +++ b/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb @@ -30,6 +30,8 @@ class ActiveBillingDimensionsBody # Type of active billing dimensions data. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ActiveBillingDimensionsBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ActiveBillingDimensionsBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb b/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb index f24b38f46a42..0ca80517333d 100644 --- a/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb +++ b/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb @@ -24,6 +24,8 @@ class ActiveBillingDimensionsResponse # Active billing dimensions data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ActiveBillingDimensionsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ActiveBillingDimensionsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_error_response.rb b/lib/datadog_api_client/v2/models/api_error_response.rb index 7ddbf8b8ad46..3e992f7bc778 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -24,6 +24,8 @@ class APIErrorResponse # A list of errors. attr_reader :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIErrorResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIErrorResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'errors') @@ -81,6 +85,26 @@ def errors=(errors) @errors = errors end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_key_create_attributes.rb b/lib/datadog_api_client/v2/models/api_key_create_attributes.rb index ceb18ef342fe..f0b87999efb6 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_attributes.rb @@ -30,6 +30,8 @@ class APIKeyCreateAttributes # The APIKeyCreateAttributes remote_config_read_enabled. attr_accessor :remote_config_read_enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeyCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'category') @@ -97,6 +101,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) category == o.category && name == o.name && remote_config_read_enabled == o.remote_config_read_enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_key_create_data.rb b/lib/datadog_api_client/v2/models/api_key_create_data.rb index d776a869a15c..d3adfe0ddb03 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_data.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_data.rb @@ -27,6 +27,8 @@ class APIKeyCreateData # API Keys resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeyCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_key_create_request.rb b/lib/datadog_api_client/v2/models/api_key_create_request.rb index 5e271b758ff0..e3f3818214f8 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_request.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_request.rb @@ -24,6 +24,8 @@ class APIKeyCreateRequest # Object used to create an API key. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeyCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_key_relationships.rb b/lib/datadog_api_client/v2/models/api_key_relationships.rb index 20c2d90b4f5c..25c7ae3d6f11 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -27,6 +27,8 @@ class APIKeyRelationships # Relationship to user. attr_accessor :modified_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeyRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_by') @@ -78,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) self.class == o.class && created_by == o.created_by && modified_by == o.modified_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_key_response.rb b/lib/datadog_api_client/v2/models/api_key_response.rb index 1f1c48d78dca..776572151d2b 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -27,6 +27,8 @@ class APIKeyResponse # Array of objects related to the API key. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeyResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_key_update_attributes.rb b/lib/datadog_api_client/v2/models/api_key_update_attributes.rb index 77cd36c1ffac..880f5f7a2244 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_attributes.rb @@ -30,6 +30,8 @@ class APIKeyUpdateAttributes # The APIKeyUpdateAttributes remote_config_read_enabled. attr_accessor :remote_config_read_enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeyUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'category') @@ -97,6 +101,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) category == o.category && name == o.name && remote_config_read_enabled == o.remote_config_read_enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_key_update_data.rb b/lib/datadog_api_client/v2/models/api_key_update_data.rb index 0e3ae3074ab0..ccecc7ab8d6c 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_data.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_data.rb @@ -30,6 +30,8 @@ class APIKeyUpdateData # API Keys resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeyUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_key_update_request.rb b/lib/datadog_api_client/v2/models/api_key_update_request.rb index 0e9c5600f06d..4d911e94bbd3 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_request.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_request.rb @@ -24,6 +24,8 @@ class APIKeyUpdateRequest # Object used to update an API key. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeyUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_keys_response.rb b/lib/datadog_api_client/v2/models/api_keys_response.rb index dede1b99cd5c..7a8873e84508 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -30,6 +30,8 @@ class APIKeysResponse # Additional information related to api keys response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeysResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeysResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -83,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -92,6 +116,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_keys_response_meta.rb b/lib/datadog_api_client/v2/models/api_keys_response_meta.rb index 11322f5c3742..122302fad067 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response_meta.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response_meta.rb @@ -27,6 +27,8 @@ class APIKeysResponseMeta # Additional information related to the API keys response. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeysResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeysResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'max_allowed') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && max_allowed == o.max_allowed && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb b/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb index 62e040c76ef1..35153d3720d8 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb @@ -24,6 +24,8 @@ class APIKeysResponseMetaPage # Total filtered application key count. attr_accessor :total_filtered_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeysResponseMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::APIKeysResponseMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_filtered_count') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && total_filtered_count == o.total_filtered_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_create_attributes.rb b/lib/datadog_api_client/v2/models/application_key_create_attributes.rb index 8d6e459e0a00..7e27a64e0c35 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_attributes.rb @@ -27,6 +27,8 @@ class ApplicationKeyCreateAttributes # Array of scopes to grant the application key. attr_accessor :scopes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -98,6 +102,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) self.class == o.class && name == o.name && scopes == o.scopes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_create_data.rb b/lib/datadog_api_client/v2/models/application_key_create_data.rb index 8785ad9a9f79..cf551863210e 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_data.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_data.rb @@ -27,6 +27,8 @@ class ApplicationKeyCreateData # Application Keys resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_create_request.rb b/lib/datadog_api_client/v2/models/application_key_create_request.rb index d65b677ee3ff..4c7e587e324c 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_request.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_request.rb @@ -24,6 +24,8 @@ class ApplicationKeyCreateRequest # Object used to create an application key. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_relationships.rb b/lib/datadog_api_client/v2/models/application_key_relationships.rb index c5076c04c805..b893cfe8ae05 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -24,6 +24,8 @@ class ApplicationKeyRelationships # Relationship to user. attr_accessor :owned_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'owned_by') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && owned_by == o.owned_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_response.rb b/lib/datadog_api_client/v2/models/application_key_response.rb index 6b279f78bb50..656ecf30b4da 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -27,6 +27,8 @@ class ApplicationKeyResponse # Array of objects related to the application key. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_response_meta.rb b/lib/datadog_api_client/v2/models/application_key_response_meta.rb index 95dd70b23662..e284e28a89c3 100644 --- a/lib/datadog_api_client/v2/models/application_key_response_meta.rb +++ b/lib/datadog_api_client/v2/models/application_key_response_meta.rb @@ -27,6 +27,8 @@ class ApplicationKeyResponseMeta # Additional information related to the application key response. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'max_allowed_per_user') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && max_allowed_per_user == o.max_allowed_per_user && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb b/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb index cce2e51cf70d..3793ce37b280 100644 --- a/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb @@ -24,6 +24,8 @@ class ApplicationKeyResponseMetaPage # Total filtered application key count. attr_accessor :total_filtered_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyResponseMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyResponseMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_filtered_count') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && total_filtered_count == o.total_filtered_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_update_attributes.rb b/lib/datadog_api_client/v2/models/application_key_update_attributes.rb index 6c3f45bc95a4..70eb50d9c5fc 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_attributes.rb @@ -27,6 +27,8 @@ class ApplicationKeyUpdateAttributes # Array of scopes to grant the application key. attr_accessor :scopes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -80,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) self.class == o.class && name == o.name && scopes == o.scopes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_update_data.rb b/lib/datadog_api_client/v2/models/application_key_update_data.rb index 863e60483cc2..f50681a1db7d 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_data.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_data.rb @@ -30,6 +30,8 @@ class ApplicationKeyUpdateData # Application Keys resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/application_key_update_request.rb b/lib/datadog_api_client/v2/models/application_key_update_request.rb index f2c621809ad3..275889fc9ac2 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_request.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_request.rb @@ -24,6 +24,8 @@ class ApplicationKeyUpdateRequest # Object used to update an application key. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ApplicationKeyUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_event.rb b/lib/datadog_api_client/v2/models/audit_logs_event.rb index 44ccb064ead9..e47e0e3900ed 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_event.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_event.rb @@ -30,6 +30,8 @@ class AuditLogsEvent # Type of the event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsEvent` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb b/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb index b08b2c3c7b7e..776c292fc25d 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb @@ -38,6 +38,8 @@ class AuditLogsEventAttributes # Timestamp of your event. attr_accessor :timestamp + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -70,12 +72,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsEventAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsEventAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -101,6 +105,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -112,6 +136,7 @@ def ==(o) service == o.service && tags == o.tags && timestamp == o.timestamp + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_events_response.rb b/lib/datadog_api_client/v2/models/audit_logs_events_response.rb index 079c7f928d0f..260e3a891690 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_events_response.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_events_response.rb @@ -30,6 +30,8 @@ class AuditLogsEventsResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsEventsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsEventsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb b/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb index a9bbb36140b1..ebce981ef271 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb @@ -30,6 +30,8 @@ class AuditLogsQueryFilter # Maximum time for the requested events. Supports date, math, and regular timestamps (in milliseconds). attr_accessor :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsQueryFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsQueryFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) from == o.from && query == o.query && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_query_options.rb b/lib/datadog_api_client/v2/models/audit_logs_query_options.rb index 2f6dc06c353f..232ef4cb645b 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_query_options.rb @@ -28,6 +28,8 @@ class AuditLogsQueryOptions # The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsQueryOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsQueryOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time_offset') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && time_offset == o.time_offset && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb b/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb index a073d8e35360..c576172eb1e3 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb @@ -27,6 +27,8 @@ class AuditLogsQueryPageOptions # Maximum number of events in the response. attr_reader :limit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsQueryPageOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsQueryPageOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -88,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && cursor == o.cursor && limit == o.limit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_response_links.rb b/lib/datadog_api_client/v2/models/audit_logs_response_links.rb index f12cdeba888f..0f88b3c2935c 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_response_links.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_response_links.rb @@ -25,6 +25,8 @@ class AuditLogsResponseLinks # POST endpoint. attr_accessor :_next + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_next') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && _next == o._next + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb b/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb index 63c571c4a9e6..6274790d70e9 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb @@ -37,6 +37,8 @@ class AuditLogsResponseMetadata # warnings are present in the response. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'elapsed') @@ -100,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) request_id == o.request_id && status == o.status && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_response_page.rb b/lib/datadog_api_client/v2/models/audit_logs_response_page.rb index 345875820f3e..52f0ca6c594d 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_response_page.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_response_page.rb @@ -24,6 +24,8 @@ class AuditLogsResponsePage # The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`. attr_accessor :after + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsResponsePage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsResponsePage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'after') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && after == o.after + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb b/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb index bc009de17f62..4fc42c60c16b 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb @@ -34,6 +34,8 @@ class AuditLogsSearchEventsRequest # Sort parameters when querying events. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsSearchEventsRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsSearchEventsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -89,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) options == o.options && page == o.page && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/audit_logs_warning.rb b/lib/datadog_api_client/v2/models/audit_logs_warning.rb index 4b91345f6ce8..ec389f8ad4d7 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_warning.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_warning.rb @@ -30,6 +30,8 @@ class AuditLogsWarning # Short human-readable summary of the warning. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuditLogsWarning` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuditLogsWarning`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) code == o.code && detail == o.detail && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping.rb b/lib/datadog_api_client/v2/models/authn_mapping.rb index 9bbeb49f8ec8..b84acc35c546 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping.rb @@ -33,6 +33,8 @@ class AuthNMapping # AuthN Mappings resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMapping` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMapping`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb index 527ff51f4ebb..d6da093c4ce0 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb @@ -36,6 +36,8 @@ class AuthNMappingAttributes # The ID of the SAML assertion attribute. attr_accessor :saml_assertion_attribute_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attribute_key') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) created_at == o.created_at && modified_at == o.modified_at && saml_assertion_attribute_id == o.saml_assertion_attribute_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb index 0a4f622c3771..7c0d98367471 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb @@ -27,6 +27,8 @@ class AuthNMappingCreateAttributes # Value portion of a key/value pair of the attribute sent from the Identity Provider. attr_accessor :attribute_value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attribute_key') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attribute_key == o.attribute_key && attribute_value == o.attribute_value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb b/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb index f90893f84c2f..70ae4fff6442 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb @@ -30,6 +30,8 @@ class AuthNMappingCreateData # AuthN Mappings resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb b/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb index 43b5fad7792a..dbc1b0328f80 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb @@ -24,6 +24,8 @@ class AuthNMappingCreateRequest # Data for creating an AuthN Mapping. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb index 7b11295f2e04..12742c23a77d 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb @@ -24,6 +24,8 @@ class AuthNMappingRelationshipToRole # Relationship to role. attr_reader :role + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingRelationshipToRole` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingRelationshipToRole`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'role') @@ -79,6 +83,26 @@ def role=(role) @role = role end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && role == o.role + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb index c340a902ac9a..1f163c09f5b7 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb @@ -24,6 +24,8 @@ class AuthNMappingRelationshipToTeam # Relationship to team. attr_reader :team + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingRelationshipToTeam` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingRelationshipToTeam`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'team') @@ -79,6 +83,26 @@ def team=(team) @team = team end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && team == o.team + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb b/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb index 870e72af8129..e7249232aa85 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb @@ -30,6 +30,8 @@ class AuthNMappingRelationships # Relationship to team. attr_accessor :team + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'role') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) role == o.role && saml_assertion_attribute == o.saml_assertion_attribute && team == o.team + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_response.rb b/lib/datadog_api_client/v2/models/authn_mapping_response.rb index 78763cebec46..80c576f33d51 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_response.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_response.rb @@ -27,6 +27,8 @@ class AuthNMappingResponse # Included data in the AuthN Mapping response. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_team.rb b/lib/datadog_api_client/v2/models/authn_mapping_team.rb index ebcbd03d8541..cf5ff506b1df 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_team.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_team.rb @@ -30,6 +30,8 @@ class AuthNMappingTeam # Team type attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingTeam` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingTeam`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb index ba0757c80764..04a9021c7e9d 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb @@ -42,6 +42,8 @@ class AuthNMappingTeamAttributes # The number of users belonging to the team attr_reader :user_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingTeamAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingTeamAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'avatar') @@ -187,6 +191,26 @@ def user_count=(user_count) @user_count = user_count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -200,6 +224,7 @@ def ==(o) name == o.name && summary == o.summary && user_count == o.user_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb index e793ac44709c..57291c89d651 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb @@ -27,6 +27,8 @@ class AuthNMappingUpdateAttributes # Value portion of a key/value pair of the attribute sent from the Identity Provider. attr_accessor :attribute_value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attribute_key') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attribute_key == o.attribute_key && attribute_value == o.attribute_value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb b/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb index 36716fc028ab..4cd83bc3394f 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb @@ -33,6 +33,8 @@ class AuthNMappingUpdateData # AuthN Mappings resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb b/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb index 89c421106a9f..17f8a6e055e7 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb @@ -24,6 +24,8 @@ class AuthNMappingUpdateRequest # Data for updating an AuthN Mapping. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/authn_mappings_response.rb b/lib/datadog_api_client/v2/models/authn_mappings_response.rb index c920a072b1f3..979677598cb0 100644 --- a/lib/datadog_api_client/v2/models/authn_mappings_response.rb +++ b/lib/datadog_api_client/v2/models/authn_mappings_response.rb @@ -30,6 +30,8 @@ class AuthNMappingsResponse # Object describing meta attributes of response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AuthNMappingsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AuthNMappingsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -83,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -92,6 +116,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_config.rb b/lib/datadog_api_client/v2/models/aws_cur_config.rb index 9a8e2b52ec15..41eecad512e8 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config.rb @@ -30,6 +30,8 @@ class AwsCURConfig # Type of AWS CUR config. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfig` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb b/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb index d0a33c468c1a..81c7ee23c30c 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb @@ -54,6 +54,8 @@ class AwsCURConfigAttributes # The timestamp when the AWS CUR config status was updated. attr_reader :updated_at + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfigAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfigAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -276,6 +280,26 @@ def updated_at=(updated_at) @updated_at = updated_at end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -293,6 +317,7 @@ def ==(o) status == o.status && status_updated_at == o.status_updated_at && updated_at == o.updated_at + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb b/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb index d886d9a54b3f..64ecab23543b 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb @@ -27,6 +27,8 @@ class AwsCURConfigPatchData # Type of AWS CUR config Patch Request. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfigPatchData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfigPatchData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb index dc492f0b0b40..a98862433a44 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb @@ -24,6 +24,8 @@ class AwsCURConfigPatchRequest # AWS CUR config Patch data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfigPatchRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfigPatchRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb index 8dda2b4a09e8..f61b02d5e12a 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb @@ -24,6 +24,8 @@ class AwsCURConfigPatchRequestAttributes # Whether or not the Cloud Cost Management account is enabled. attr_reader :is_enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfigPatchRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfigPatchRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -79,6 +83,26 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && is_enabled == o.is_enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb b/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb index f12df29450a0..983a13ad6ab4 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb @@ -27,6 +27,8 @@ class AwsCURConfigPostData # Type of AWS CUR config Post Request. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfigPostData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfigPostData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb b/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb index 8d91cbe7d921..4d2607c7097d 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb @@ -24,6 +24,8 @@ class AwsCURConfigPostRequest # AWS CUR config Post data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfigPostRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfigPostRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb b/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb index 0ead92a3fa80..bbe773114616 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb @@ -42,6 +42,8 @@ class AwsCURConfigPostRequestAttributes # The report prefix used for the Cost and Usage Report. attr_reader :report_prefix + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfigPostRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfigPostRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -177,6 +181,26 @@ def report_prefix=(report_prefix) @report_prefix = report_prefix end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -190,6 +214,7 @@ def ==(o) months == o.months && report_name == o.report_name && report_prefix == o.report_prefix + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_response.rb b/lib/datadog_api_client/v2/models/aws_cur_config_response.rb index 3b9d7e660c57..77b63c40d4ff 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_response.rb @@ -24,6 +24,8 @@ class AwsCURConfigResponse # AWS CUR config. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfigResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfigResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb b/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb index 1a606fb4b8a9..56e4384068f4 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb @@ -24,6 +24,8 @@ class AwsCURConfigsResponse # An AWS CUR config. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCURConfigsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AwsCURConfigsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_related_account.rb b/lib/datadog_api_client/v2/models/aws_related_account.rb index 0ef90ec4e509..a2ce67413ef5 100644 --- a/lib/datadog_api_client/v2/models/aws_related_account.rb +++ b/lib/datadog_api_client/v2/models/aws_related_account.rb @@ -30,6 +30,8 @@ class AWSRelatedAccount # Type of AWS related account. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AWSRelatedAccount` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AWSRelatedAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb b/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb index c54e034155e2..f6f1bb28db55 100644 --- a/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb @@ -27,6 +27,8 @@ class AWSRelatedAccountAttributes # The name of the AWS account. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AWSRelatedAccountAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AWSRelatedAccountAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'has_datadog_integration') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && has_datadog_integration == o.has_datadog_integration && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb b/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb index a789ff5fabf0..46da2ce3d52a 100644 --- a/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb @@ -24,6 +24,8 @@ class AWSRelatedAccountsResponse # An AWS related account. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AWSRelatedAccountsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AWSRelatedAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config.rb b/lib/datadog_api_client/v2/models/azure_uc_config.rb index 3712406b7a6a..3787b6d067eb 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config.rb @@ -66,6 +66,8 @@ class AzureUCConfig # The timestamp when the Azure config was last updated. attr_reader :updated_at + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -118,12 +120,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfig` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -345,6 +349,26 @@ def updated_at=(updated_at) @updated_at = updated_at end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -366,6 +390,7 @@ def ==(o) storage_account == o.storage_account && storage_container == o.storage_container && updated_at == o.updated_at + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb b/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb index 43fa42a61f49..61f6d40cb79d 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb @@ -30,6 +30,8 @@ class AzureUCConfigPair # Type of Azure config pair. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigPair` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigPair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb b/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb index 99a65b4575f0..3e91f52fe4cb 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb @@ -27,6 +27,8 @@ class AzureUCConfigPairAttributes # The ID of the Azure config pair. attr_accessor :id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigPairAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigPairAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'configs') @@ -90,6 +94,26 @@ def configs=(configs) @configs = configs end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && configs == o.configs && id == o.id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb b/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb index b6d0f05f625d..5058e46f8c3d 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb @@ -24,6 +24,8 @@ class AzureUCConfigPairsResponse # Azure config pair. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigPairsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigPairsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb b/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb index 83118f751417..e3a7518e30d6 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb @@ -27,6 +27,8 @@ class AzureUCConfigPatchData # Type of Azure config Patch Request. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigPatchData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigPatchData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb index 6cafda10a266..e768620ef78e 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb @@ -24,6 +24,8 @@ class AzureUCConfigPatchRequest # Azure config Patch data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigPatchRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigPatchRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb index ea44ea770f0c..14ef295561c3 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb @@ -24,6 +24,8 @@ class AzureUCConfigPatchRequestAttributes # Whether or not the Cloud Cost Management account is enabled. attr_reader :is_enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigPatchRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigPatchRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -79,6 +83,26 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && is_enabled == o.is_enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb b/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb index 25759c01ae8f..17506a559c4e 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb @@ -27,6 +27,8 @@ class AzureUCConfigPostData # Type of Azure config Post Request. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigPostData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigPostData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb b/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb index 3129fd7f43b6..9351ceea22d7 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb @@ -24,6 +24,8 @@ class AzureUCConfigPostRequest # Azure config Post data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigPostRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigPostRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb b/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb index a11c867424de..a68bb99dde31 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb @@ -39,6 +39,8 @@ class AzureUCConfigPostRequestAttributes # The scope of your observed subscription. attr_reader :scope + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigPostRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigPostRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -168,6 +172,26 @@ def scope=(scope) @scope = scope end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -180,6 +204,7 @@ def ==(o) client_id == o.client_id && is_enabled == o.is_enabled && scope == o.scope + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb b/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb index 101d19e12f24..39b05adbd976 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb @@ -24,6 +24,8 @@ class AzureUCConfigsResponse # An Azure config pair. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AzureUCConfigsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::AzureUCConfigsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/bill_config.rb b/lib/datadog_api_client/v2/models/bill_config.rb index 3960f3be6562..7c4db5e7b723 100644 --- a/lib/datadog_api_client/v2/models/bill_config.rb +++ b/lib/datadog_api_client/v2/models/bill_config.rb @@ -33,6 +33,8 @@ class BillConfig # The name of the storage container where the Azure Export is saved. attr_reader :storage_container + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::BillConfig` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::BillConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'export_name') @@ -139,6 +143,26 @@ def storage_container=(storage_container) @storage_container = storage_container end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -149,6 +173,7 @@ def ==(o) export_path == o.export_path && storage_account == o.storage_account && storage_container == o.storage_container + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb index 585082ab35fe..0d0dcfa94fbb 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb @@ -24,6 +24,8 @@ class BulkMuteFindingsRequest # Data object containing the new bulk mute properties of the finding. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::BulkMuteFindingsRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::BulkMuteFindingsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb index 71b4ea3f0cb5..9ba3f3c7dd1c 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb @@ -33,6 +33,8 @@ class BulkMuteFindingsRequestData # The JSON:API type for findings. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::BulkMuteFindingsRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::BulkMuteFindingsRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -139,6 +143,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -149,6 +173,7 @@ def ==(o) id == o.id && meta == o.meta && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb index 0d4abe99266a..894e709d4e1a 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb @@ -24,6 +24,8 @@ class BulkMuteFindingsRequestMeta # Array of findings. attr_accessor :findings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::BulkMuteFindingsRequestMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::BulkMuteFindingsRequestMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'findings') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && findings == o.findings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb index f80816617b8c..315864e4549b 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb @@ -24,6 +24,8 @@ class BulkMuteFindingsRequestMetaFindings # The unique ID for this finding. attr_accessor :finding_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::BulkMuteFindingsRequestMetaFindings` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::BulkMuteFindingsRequestMetaFindings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'finding_id') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && finding_id == o.finding_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb index f4efa078642f..4ec819024c71 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb @@ -24,6 +24,8 @@ class BulkMuteFindingsResponse # Data object containing the ID of the request that was updated. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::BulkMuteFindingsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::BulkMuteFindingsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb index 73778f1e86aa..daf608b8f006 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb @@ -27,6 +27,8 @@ class BulkMuteFindingsResponseData # The JSON:API type for findings. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::BulkMuteFindingsResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::BulkMuteFindingsResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case.rb b/lib/datadog_api_client/v2/models/case.rb index d3366e12bb6a..1573f988c3a5 100644 --- a/lib/datadog_api_client/v2/models/case.rb +++ b/lib/datadog_api_client/v2/models/case.rb @@ -33,6 +33,8 @@ class Case # Case resource type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Case` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Case`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -128,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_assign.rb b/lib/datadog_api_client/v2/models/case_assign.rb index 12bd1dfae1a8..81931c5e9bc2 100644 --- a/lib/datadog_api_client/v2/models/case_assign.rb +++ b/lib/datadog_api_client/v2/models/case_assign.rb @@ -27,6 +27,8 @@ class CaseAssign # Case resource type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseAssign` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseAssign`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_assign_attributes.rb b/lib/datadog_api_client/v2/models/case_assign_attributes.rb index 42c81d43ada3..8001037c13a1 100644 --- a/lib/datadog_api_client/v2/models/case_assign_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_assign_attributes.rb @@ -24,6 +24,8 @@ class CaseAssignAttributes # Assignee's UUID attr_reader :assignee_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseAssignAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseAssignAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'assignee_id') @@ -79,6 +83,26 @@ def assignee_id=(assignee_id) @assignee_id = assignee_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && assignee_id == o.assignee_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_assign_request.rb b/lib/datadog_api_client/v2/models/case_assign_request.rb index 3fe164b52f6a..091ff5e3a47c 100644 --- a/lib/datadog_api_client/v2/models/case_assign_request.rb +++ b/lib/datadog_api_client/v2/models/case_assign_request.rb @@ -24,6 +24,8 @@ class CaseAssignRequest # Case assign attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseAssignRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseAssignRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_attributes.rb b/lib/datadog_api_client/v2/models/case_attributes.rb index e65a3d6702d3..7ab640637638 100644 --- a/lib/datadog_api_client/v2/models/case_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_attributes.rb @@ -57,6 +57,8 @@ class CaseAttributes # Case type attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -115,12 +117,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'archived_at') @@ -172,6 +176,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -190,6 +214,7 @@ def ==(o) status == o.status && title == o.title && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_create.rb b/lib/datadog_api_client/v2/models/case_create.rb index 8edabe745def..2f4ec7b26982 100644 --- a/lib/datadog_api_client/v2/models/case_create.rb +++ b/lib/datadog_api_client/v2/models/case_create.rb @@ -30,6 +30,8 @@ class CaseCreate # Case resource type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_create_attributes.rb b/lib/datadog_api_client/v2/models/case_create_attributes.rb index 393d63dcb20e..9739ca48b80b 100644 --- a/lib/datadog_api_client/v2/models/case_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_create_attributes.rb @@ -33,6 +33,8 @@ class CaseCreateAttributes # Case type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) priority == o.priority && title == o.title && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_create_relationships.rb b/lib/datadog_api_client/v2/models/case_create_relationships.rb index abda206ac604..91b529d1ad07 100644 --- a/lib/datadog_api_client/v2/models/case_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/case_create_relationships.rb @@ -27,6 +27,8 @@ class CaseCreateRelationships # Relationship to project attr_reader :project + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseCreateRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseCreateRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'assignee') @@ -96,6 +100,26 @@ def project=(project) @project = project end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -104,6 +128,7 @@ def ==(o) self.class == o.class && assignee == o.assignee && project == o.project + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_create_request.rb b/lib/datadog_api_client/v2/models/case_create_request.rb index 495b0296089e..51e78c431536 100644 --- a/lib/datadog_api_client/v2/models/case_create_request.rb +++ b/lib/datadog_api_client/v2/models/case_create_request.rb @@ -24,6 +24,8 @@ class CaseCreateRequest # Case creation data attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_empty.rb b/lib/datadog_api_client/v2/models/case_empty.rb index 2e6c006ddef2..e6ca66b4da0c 100644 --- a/lib/datadog_api_client/v2/models/case_empty.rb +++ b/lib/datadog_api_client/v2/models/case_empty.rb @@ -24,6 +24,8 @@ class CaseEmpty # Case resource type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseEmpty` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseEmpty`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -79,6 +83,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_empty_request.rb b/lib/datadog_api_client/v2/models/case_empty_request.rb index b96376e6f99d..5f7a626bb2a9 100644 --- a/lib/datadog_api_client/v2/models/case_empty_request.rb +++ b/lib/datadog_api_client/v2/models/case_empty_request.rb @@ -24,6 +24,8 @@ class CaseEmptyRequest # Case empty request data attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseEmptyRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseEmptyRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_relationships.rb b/lib/datadog_api_client/v2/models/case_relationships.rb index a5bacb560f80..d20f70fbab41 100644 --- a/lib/datadog_api_client/v2/models/case_relationships.rb +++ b/lib/datadog_api_client/v2/models/case_relationships.rb @@ -33,6 +33,8 @@ class CaseRelationships # Relationship to project attr_accessor :project + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'assignee') @@ -98,6 +102,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) created_by == o.created_by && modified_by == o.modified_by && project == o.project + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_response.rb b/lib/datadog_api_client/v2/models/case_response.rb index e83ffcf71b05..e10580f69057 100644 --- a/lib/datadog_api_client/v2/models/case_response.rb +++ b/lib/datadog_api_client/v2/models/case_response.rb @@ -24,6 +24,8 @@ class CaseResponse # A case attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_update_priority.rb b/lib/datadog_api_client/v2/models/case_update_priority.rb index 9cde453c6e6b..23438aea53d8 100644 --- a/lib/datadog_api_client/v2/models/case_update_priority.rb +++ b/lib/datadog_api_client/v2/models/case_update_priority.rb @@ -27,6 +27,8 @@ class CaseUpdatePriority # Case resource type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseUpdatePriority` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseUpdatePriority`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb b/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb index f6fef912a8c8..37a5acafb5e2 100644 --- a/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb @@ -24,6 +24,8 @@ class CaseUpdatePriorityAttributes # Case priority attr_reader :priority + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseUpdatePriorityAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseUpdatePriorityAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'priority') @@ -79,6 +83,26 @@ def priority=(priority) @priority = priority end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && priority == o.priority + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_update_priority_request.rb b/lib/datadog_api_client/v2/models/case_update_priority_request.rb index 552d33f7b5d5..ebda37319f21 100644 --- a/lib/datadog_api_client/v2/models/case_update_priority_request.rb +++ b/lib/datadog_api_client/v2/models/case_update_priority_request.rb @@ -24,6 +24,8 @@ class CaseUpdatePriorityRequest # Case priority status attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseUpdatePriorityRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseUpdatePriorityRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_update_status.rb b/lib/datadog_api_client/v2/models/case_update_status.rb index df8e2a94de3c..b96236c2b0ef 100644 --- a/lib/datadog_api_client/v2/models/case_update_status.rb +++ b/lib/datadog_api_client/v2/models/case_update_status.rb @@ -27,6 +27,8 @@ class CaseUpdateStatus # Case resource type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseUpdateStatus` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseUpdateStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_update_status_attributes.rb b/lib/datadog_api_client/v2/models/case_update_status_attributes.rb index 26c79058fd87..fd04d01cb0e9 100644 --- a/lib/datadog_api_client/v2/models/case_update_status_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_update_status_attributes.rb @@ -24,6 +24,8 @@ class CaseUpdateStatusAttributes # Case status attr_reader :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseUpdateStatusAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseUpdateStatusAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'status') @@ -79,6 +83,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/case_update_status_request.rb b/lib/datadog_api_client/v2/models/case_update_status_request.rb index baf36077c75a..62b9fe343cd5 100644 --- a/lib/datadog_api_client/v2/models/case_update_status_request.rb +++ b/lib/datadog_api_client/v2/models/case_update_status_request.rb @@ -24,6 +24,8 @@ class CaseUpdateStatusRequest # Case update status attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseUpdateStatusRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CaseUpdateStatusRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cases_response.rb b/lib/datadog_api_client/v2/models/cases_response.rb index 94f9c0dfbe5f..456328db3773 100644 --- a/lib/datadog_api_client/v2/models/cases_response.rb +++ b/lib/datadog_api_client/v2/models/cases_response.rb @@ -27,6 +27,8 @@ class CasesResponse # Cases response metadata attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CasesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CasesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cases_response_meta.rb b/lib/datadog_api_client/v2/models/cases_response_meta.rb index 81e9b4bc51ea..acfaa5f6360e 100644 --- a/lib/datadog_api_client/v2/models/cases_response_meta.rb +++ b/lib/datadog_api_client/v2/models/cases_response_meta.rb @@ -24,6 +24,8 @@ class CasesResponseMeta # Pagination metadata attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CasesResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CasesResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb index d02c834fda7e..ea60d4208b6b 100644 --- a/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb @@ -30,6 +30,8 @@ class CasesResponseMetaPagination # Total number of pages attr_accessor :total + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CasesResponseMetaPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CasesResponseMetaPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'current') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) current == o.current && size == o.size && total == o.total + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/chargeback_breakdown.rb b/lib/datadog_api_client/v2/models/chargeback_breakdown.rb index 038b5e5ec7dd..2f81f1cd4202 100644 --- a/lib/datadog_api_client/v2/models/chargeback_breakdown.rb +++ b/lib/datadog_api_client/v2/models/chargeback_breakdown.rb @@ -30,6 +30,8 @@ class ChargebackBreakdown # The product for which cost is being reported. attr_accessor :product_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ChargebackBreakdown` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ChargebackBreakdown`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'charge_type') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) charge_type == o.charge_type && cost == o.cost && product_name == o.product_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb index df308f4a1535..4fb63ea3ee2a 100644 --- a/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb @@ -27,6 +27,8 @@ class CIAppAggregateBucketValueTimeseriesPoint # The value for this point. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppAggregateBucketValueTimeseriesPoint` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppAggregateBucketValueTimeseriesPoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && time == o.time && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb b/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb index 1dc21ab58aad..03206c524af2 100644 --- a/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb @@ -33,6 +33,8 @@ class CIAppAggregateSort # The type of sorting algorithm. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppAggregateSort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppAggregateSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) metric == o.metric && order == o.order && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_ci_error.rb b/lib/datadog_api_client/v2/models/ci_app_ci_error.rb index a4073a526070..f2414bf5381d 100644 --- a/lib/datadog_api_client/v2/models/ci_app_ci_error.rb +++ b/lib/datadog_api_client/v2/models/ci_app_ci_error.rb @@ -33,6 +33,8 @@ class CIAppCIError # Short description of the error type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppCIError` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppCIError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'domain') @@ -127,6 +131,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -137,6 +161,7 @@ def ==(o) message == o.message && stack == o.stack && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_compute.rb b/lib/datadog_api_client/v2/models/ci_app_compute.rb index b01222c55f8a..49cfb41f6b4f 100644 --- a/lib/datadog_api_client/v2/models/ci_app_compute.rb +++ b/lib/datadog_api_client/v2/models/ci_app_compute.rb @@ -34,6 +34,8 @@ class CIAppCompute # The type of compute. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -107,6 +111,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) interval == o.interval && metric == o.metric && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb index 5ff10c515f46..e341a0cef52a 100644 --- a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb @@ -24,6 +24,8 @@ class CIAppCreatePipelineEventRequest # Data of the pipeline event to create. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppCreatePipelineEventRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppCreatePipelineEventRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb index c2848361ccf4..367f47346315 100644 --- a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb @@ -30,6 +30,8 @@ class CIAppCreatePipelineEventRequestAttributes # If the CI provider is SaaS, use this to differentiate between instances. attr_accessor :service + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppCreatePipelineEventRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppCreatePipelineEventRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'env') @@ -97,6 +101,26 @@ def resource=(resource) @resource = resource end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) env == o.env && resource == o.resource && service == o.service + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb index a27599124f23..a431fa7c91c2 100644 --- a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb +++ b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb @@ -27,6 +27,8 @@ class CIAppCreatePipelineEventRequestData # Type of the event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppCreatePipelineEventRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppCreatePipelineEventRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb b/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb index 0dde89ac3bb4..3e9d9bef8e9d 100644 --- a/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb @@ -30,6 +30,8 @@ class CIAppEventAttributes # Test run level. attr_accessor :test_level + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppEventAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppEventAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) attributes == o.attributes && tags == o.tags && test_level == o.test_level + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_git_info.rb b/lib/datadog_api_client/v2/models/ci_app_git_info.rb index 969d4e73cb9d..726cf72ebc5f 100644 --- a/lib/datadog_api_client/v2/models/ci_app_git_info.rb +++ b/lib/datadog_api_client/v2/models/ci_app_git_info.rb @@ -58,6 +58,8 @@ class CIAppGitInfo # The tag name (if a branch use the branch parameter). attr_accessor :tag + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -120,12 +122,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppGitInfo` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppGitInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'author_email') @@ -223,6 +227,26 @@ def sha=(sha) @sha = sha end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -241,6 +265,7 @@ def ==(o) repository_url == o.repository_url && sha == o.sha && tag == o.tag + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb b/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb index e4e918ebb927..21c1adb588cd 100644 --- a/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb @@ -33,6 +33,8 @@ class CIAppGroupByHistogram # (values smaller than this one are filtered out). attr_reader :min + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppGroupByHistogram` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppGroupByHistogram`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'interval') @@ -122,6 +126,26 @@ def min=(min) @min = min end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -131,6 +155,7 @@ def ==(o) interval == o.interval && max == o.max && min == o.min + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_host_info.rb b/lib/datadog_api_client/v2/models/ci_app_host_info.rb index d32c665b257b..6874177af91b 100644 --- a/lib/datadog_api_client/v2/models/ci_app_host_info.rb +++ b/lib/datadog_api_client/v2/models/ci_app_host_info.rb @@ -33,6 +33,8 @@ class CIAppHostInfo # The path where the code is checked out. attr_accessor :workspace + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppHostInfo` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppHostInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'hostname') @@ -90,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -100,6 +124,7 @@ def ==(o) labels == o.labels && name == o.name && workspace == o.workspace + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb index db133cee0c4c..e48a786960d5 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb @@ -30,6 +30,8 @@ class CIAppPipelineEvent # Type of the event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEvent` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb index c0a9640b36b2..8ee21295b015 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb @@ -30,6 +30,8 @@ class CIAppPipelineEventAttributes # Array of tags associated with your event. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) attributes == o.attributes && ci_level == o.ci_level && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb index e3ebe3dc7423..b4a1f7867004 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb @@ -79,6 +79,8 @@ class CIAppPipelineEventJob # The URL to look at the job in the CI provider UI. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -156,12 +158,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventJob` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventJob`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dependencies') @@ -364,6 +368,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -389,6 +413,7 @@ def ==(o) status == o.status && tags == o.tags && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb index 2e3fdb390fbd..b626b5616aa3 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb @@ -27,6 +27,8 @@ class CIAppPipelineEventParentPipeline # The URL to look at the pipeline in the CI provider UI. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventParentPipeline` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventParentPipeline`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -88,6 +92,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && id == o.id && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb index e0a04e4e9dae..0e9e1afd3878 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb @@ -85,6 +85,8 @@ class CIAppPipelineEventPipeline # The URL to look at the pipeline in the CI provider UI. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -165,12 +167,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventPipeline` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventPipeline`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_end') @@ -364,6 +368,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -390,6 +414,7 @@ def ==(o) tags == o.tags && unique_id == o.unique_id && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb index 6458f4a664fd..ad5e416777f7 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb @@ -27,6 +27,8 @@ class CIAppPipelineEventPreviousPipeline # The URL to look at the pipeline in the CI provider UI. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventPreviousPipeline` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventPreviousPipeline`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -88,6 +92,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && id == o.id && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb index 85ef4543aecd..e4c1f6d19f49 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb @@ -70,6 +70,8 @@ class CIAppPipelineEventStage # A list of user-defined tags. The tags must follow the `key:value` pattern. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -139,12 +141,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventStage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventStage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dependencies') @@ -324,6 +328,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -346,6 +370,7 @@ def ==(o) start == o.start && status == o.status && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb index efc044fa31ae..9ed84458db65 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb @@ -79,6 +79,8 @@ class CIAppPipelineEventStep # The URL to look at the step in the CI provider UI. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -157,12 +159,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventStep` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventStep`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_end') @@ -341,6 +345,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -366,6 +390,7 @@ def ==(o) status == o.status && tags == o.tags && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb index b0f362f7b1c2..0586481b1b7b 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb @@ -34,6 +34,8 @@ class CIAppPipelineEventsRequest # Sort parameters when querying events. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventsRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -89,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) options == o.options && page == o.page && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb index 0bc2814ee9f0..172d7be59110 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb @@ -30,6 +30,8 @@ class CIAppPipelineEventsResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb index c7398ec16f1b..e266598734c2 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb @@ -34,6 +34,8 @@ class CIAppPipelinesAggregateRequest # Only supply timezone or time offset, not both. Otherwise, the query fails. attr_accessor :options + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelinesAggregateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelinesAggregateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -93,6 +97,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -103,6 +127,7 @@ def ==(o) filter == o.filter && group_by == o.group_by && options == o.options + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb index 445d75ac47cc..89bf49d1b573 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb @@ -24,6 +24,8 @@ class CIAppPipelinesAggregationBucketsResponse # The list of matching buckets, one item per bucket. attr_accessor :buckets + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelinesAggregationBucketsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelinesAggregationBucketsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'buckets') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && buckets == o.buckets + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb index 9c8492a5487b..6529d1845ffd 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb @@ -30,6 +30,8 @@ class CIAppPipelinesAnalyticsAggregateResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelinesAnalyticsAggregateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelinesAnalyticsAggregateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb index bc0b3b2332f8..250e6ce07d8f 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb @@ -27,6 +27,8 @@ class CIAppPipelinesBucketResponse # A map of the metric name to value for regular compute, or a list of values for a timeseries. attr_accessor :computes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelinesBucketResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelinesBucketResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'by') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && by == o.by && computes == o.computes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb index 317842b99cf7..e6c7deb5698e 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb @@ -40,6 +40,8 @@ class CIAppPipelinesGroupBy # A resulting object to put the given computes in over all the matching records. attr_accessor :total + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -74,12 +76,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelinesGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelinesGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -125,6 +129,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -137,6 +161,7 @@ def ==(o) missing == o.missing && sort == o.sort && total == o.total + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb index 7eb68cea287d..38eea3965b83 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb @@ -30,6 +30,8 @@ class CIAppPipelinesQueryFilter # The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds). attr_accessor :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelinesQueryFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelinesQueryFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) from == o.from && query == o.query && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_query_options.rb b/lib/datadog_api_client/v2/models/ci_app_query_options.rb index c2f66e73335f..660b08a08100 100644 --- a/lib/datadog_api_client/v2/models/ci_app_query_options.rb +++ b/lib/datadog_api_client/v2/models/ci_app_query_options.rb @@ -28,6 +28,8 @@ class CIAppQueryOptions # The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppQueryOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppQueryOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time_offset') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && time_offset == o.time_offset && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb b/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb index bc56eac3325d..70a6a05b9a3f 100644 --- a/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb +++ b/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb @@ -27,6 +27,8 @@ class CIAppQueryPageOptions # Maximum number of events in the response. attr_reader :limit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppQueryPageOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppQueryPageOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -88,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && cursor == o.cursor && limit == o.limit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_response_links.rb b/lib/datadog_api_client/v2/models/ci_app_response_links.rb index c7509f60ac00..ddd2e142f441 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_links.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_links.rb @@ -25,6 +25,8 @@ class CIAppResponseLinks # POST endpoint. attr_accessor :_next + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_next') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && _next == o._next + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb b/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb index 63485a322b4b..b6bc0eafb72c 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb @@ -34,6 +34,8 @@ class CIAppResponseMetadata # warnings are present in the response. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'elapsed') @@ -91,6 +95,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -101,6 +125,7 @@ def ==(o) request_id == o.request_id && status == o.status && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb b/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb index 3b2708fd3d4b..90e0f8c8c307 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb @@ -37,6 +37,8 @@ class CIAppResponseMetadataWithPagination # warnings are present in the response. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppResponseMetadataWithPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppResponseMetadataWithPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'elapsed') @@ -100,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) request_id == o.request_id && status == o.status && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_response_page.rb b/lib/datadog_api_client/v2/models/ci_app_response_page.rb index 465c339a1f8c..daf82380ba57 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_page.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_page.rb @@ -24,6 +24,8 @@ class CIAppResponsePage # The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`. attr_accessor :after + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppResponsePage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppResponsePage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'after') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && after == o.after + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_test_event.rb b/lib/datadog_api_client/v2/models/ci_app_test_event.rb index 778780d6616c..02ca45e86d69 100644 --- a/lib/datadog_api_client/v2/models/ci_app_test_event.rb +++ b/lib/datadog_api_client/v2/models/ci_app_test_event.rb @@ -30,6 +30,8 @@ class CIAppTestEvent # Type of the event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppTestEvent` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppTestEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb b/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb index 38470f4d0f6e..69263a6d936a 100644 --- a/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb @@ -34,6 +34,8 @@ class CIAppTestEventsRequest # Sort parameters when querying events. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppTestEventsRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppTestEventsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -89,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) options == o.options && page == o.page && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb b/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb index 1a02be38cfa5..14b46743c988 100644 --- a/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb @@ -30,6 +30,8 @@ class CIAppTestEventsResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppTestEventsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppTestEventsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb b/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb index a40a1b75aa3e..51731da3bcf2 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb @@ -34,6 +34,8 @@ class CIAppTestsAggregateRequest # Only supply timezone or time offset, not both. Otherwise, the query fails. attr_accessor :options + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppTestsAggregateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppTestsAggregateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -93,6 +97,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -103,6 +127,7 @@ def ==(o) filter == o.filter && group_by == o.group_by && options == o.options + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb b/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb index c2efd707cd90..2a53c9ece9c4 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb @@ -24,6 +24,8 @@ class CIAppTestsAggregationBucketsResponse # The list of matching buckets, one item per bucket. attr_accessor :buckets + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppTestsAggregationBucketsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppTestsAggregationBucketsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'buckets') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && buckets == o.buckets + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb b/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb index 96c874b099c2..38842c3a7223 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb @@ -30,6 +30,8 @@ class CIAppTestsAnalyticsAggregateResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppTestsAnalyticsAggregateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppTestsAnalyticsAggregateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb b/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb index 16130c6c116c..989bb59edf3d 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb @@ -27,6 +27,8 @@ class CIAppTestsBucketResponse # A map of the metric name to value for regular compute, or a list of values for a timeseries. attr_accessor :computes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppTestsBucketResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppTestsBucketResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'by') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && by == o.by && computes == o.computes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb b/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb index 0fd54c9dd9fd..667a6386c363 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb @@ -40,6 +40,8 @@ class CIAppTestsGroupBy # A resulting object to put the given computes in over all the matching records. attr_accessor :total + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -74,12 +76,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppTestsGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppTestsGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -125,6 +129,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -137,6 +161,7 @@ def ==(o) missing == o.missing && sort == o.sort && total == o.total + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb b/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb index 97e54d1e6c50..092738ff6029 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb @@ -30,6 +30,8 @@ class CIAppTestsQueryFilter # The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds). attr_accessor :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppTestsQueryFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppTestsQueryFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) from == o.from && query == o.query && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ci_app_warning.rb b/lib/datadog_api_client/v2/models/ci_app_warning.rb index 30b342109861..b91425e852ef 100644 --- a/lib/datadog_api_client/v2/models/ci_app_warning.rb +++ b/lib/datadog_api_client/v2/models/ci_app_warning.rb @@ -30,6 +30,8 @@ class CIAppWarning # A short human-readable summary of the warning. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppWarning` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppWarning`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) code == o.code && detail == o.detail && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb b/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb index e9e8b3cc7de6..b6adaf791d5e 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb @@ -34,6 +34,8 @@ class CloudConfigurationComplianceRuleOptions # attr_accessor :resource_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -62,12 +64,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudConfigurationComplianceRuleOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudConfigurationComplianceRuleOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'complex_rule') @@ -83,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -92,6 +116,7 @@ def ==(o) complex_rule == o.complex_rule && rego_rule == o.rego_rule && resource_type == o.resource_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb index ceb9429651f7..8322bc8e34f8 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb @@ -27,6 +27,8 @@ class CloudConfigurationRegoRule # List of resource types that will be evaluated upon. Must have at least one element. attr_reader :resource_types + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudConfigurationRegoRule` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudConfigurationRegoRule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'policy') @@ -101,6 +105,26 @@ def resource_types=(resource_types) @resource_types = resource_types end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -109,6 +133,7 @@ def ==(o) self.class == o.class && policy == o.policy && resource_types == o.resource_types + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb index 8432bee447a5..cdd160271a3d 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb @@ -27,6 +27,8 @@ class CloudConfigurationRuleCaseCreate # Severity of the Security Signal. attr_reader :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudConfigurationRuleCaseCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudConfigurationRuleCaseCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'notifications') @@ -90,6 +94,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && notifications == o.notifications && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb index cb7ae9397c98..bb1693fb614f 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb @@ -33,6 +33,8 @@ class CloudConfigurationRuleComplianceSignalOptions # Fields to use to group findings by when sending signals. attr_accessor :user_group_by_fields + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -74,12 +76,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudConfigurationRuleComplianceSignalOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudConfigurationRuleComplianceSignalOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'default_activation_status') @@ -103,6 +107,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -113,6 +137,7 @@ def ==(o) default_group_by_fields == o.default_group_by_fields && user_activation_status == o.user_activation_status && user_group_by_fields == o.user_group_by_fields + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb index ba826b8d1887..812744c50c43 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb @@ -49,6 +49,8 @@ class CloudConfigurationRuleCreatePayload # The rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -89,12 +91,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudConfigurationRuleCreatePayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudConfigurationRuleCreatePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -213,6 +217,26 @@ def options=(options) @options = options end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -228,6 +252,7 @@ def ==(o) options == o.options && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb index b4fd50b95034..ed577c0a5718 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb @@ -26,6 +26,8 @@ class CloudConfigurationRuleOptions # attr_reader :compliance_rule_options + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -50,12 +52,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudConfigurationRuleOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudConfigurationRuleOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compliance_rule_options') @@ -81,6 +85,26 @@ def compliance_rule_options=(compliance_rule_options) @compliance_rule_options = compliance_rule_options end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && compliance_rule_options == o.compliance_rule_options + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb index 0a6810252a42..c0703f3190c6 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb @@ -49,6 +49,8 @@ class CloudConfigurationRulePayload # The rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -89,12 +91,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudConfigurationRulePayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudConfigurationRulePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -213,6 +217,26 @@ def options=(options) @options = options end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -228,6 +252,7 @@ def ==(o) options == o.options && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_cost_activity.rb b/lib/datadog_api_client/v2/models/cloud_cost_activity.rb index 742962a6c775..a47c7ab00506 100644 --- a/lib/datadog_api_client/v2/models/cloud_cost_activity.rb +++ b/lib/datadog_api_client/v2/models/cloud_cost_activity.rb @@ -27,6 +27,8 @@ class CloudCostActivity # Type of Cloud Cost Activity. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudCostActivity` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudCostActivity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb b/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb index 65bf93b6187e..14f980a622ec 100644 --- a/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb @@ -24,6 +24,8 @@ class CloudCostActivityAttributes # Whether or not the cloud account is enabled. attr_reader :is_enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudCostActivityAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudCostActivityAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'is_enabled') @@ -79,6 +83,26 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && is_enabled == o.is_enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb b/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb index 428eaf887375..80a6018bfc60 100644 --- a/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb @@ -24,6 +24,8 @@ class CloudCostActivityResponse # Cloud Cost Activity. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudCostActivityResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudCostActivityResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb index 928c8e39c9d3..b47013766209 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb @@ -27,6 +27,8 @@ class CloudWorkloadSecurityAgentRuleAction # Kill system call applied on the container matching the rule attr_accessor :kill + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAction` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && filter == o.filter && kill == o.kill + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb index fa45b8be5e4e..a6d9b148516d 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb @@ -72,6 +72,8 @@ class CloudWorkloadSecurityAgentRuleAttributes # The version of the Agent rule. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -136,12 +138,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'actions') @@ -217,6 +221,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -240,6 +264,7 @@ def ==(o) updated_at == o.updated_at && updater == o.updater && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb index df7f86c2ed0d..c7064a4e25f0 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb @@ -36,6 +36,8 @@ class CloudWorkloadSecurityAgentRuleCreateAttributes # The name of the Agent rule. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -128,6 +132,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -139,6 +163,7 @@ def ==(o) expression == o.expression && filters == o.filters && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb index ca50e942ea55..1b23b48f48b5 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb @@ -27,6 +27,8 @@ class CloudWorkloadSecurityAgentRuleCreateData # The type of the resource. The value should always be `agent_rule`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb index 7528fd8ebcab..62624100d437 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb @@ -24,6 +24,8 @@ class CloudWorkloadSecurityAgentRuleCreateRequest # Object for a single Agent rule. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb index d8fcf48a53f5..e5e22dd27534 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb @@ -27,6 +27,8 @@ class CloudWorkloadSecurityAgentRuleCreatorAttributes # The name of the user. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreatorAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreatorAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'handle') @@ -78,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) self.class == o.class && handle == o.handle && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb index 20681f7b1647..5d9ad28a64d9 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb @@ -30,6 +30,8 @@ class CloudWorkloadSecurityAgentRuleData # The type of the resource. The value should always be `agent_rule`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb index 39d7717ad3a8..8850e6722437 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb @@ -24,6 +24,8 @@ class CloudWorkloadSecurityAgentRuleKill # Supported signals for the kill system call. attr_accessor :signal + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleKill` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleKill`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'signal') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && signal == o.signal + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb index 9084694a39da..65d83126261c 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb @@ -24,6 +24,8 @@ class CloudWorkloadSecurityAgentRuleResponse # Object for a single Agent rule. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb index 36f7b75b1ee9..78816924bb3d 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb @@ -30,6 +30,8 @@ class CloudWorkloadSecurityAgentRuleUpdateAttributes # The SECL expression of the Agent rule. attr_accessor :expression + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) description == o.description && enabled == o.enabled && expression == o.expression + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb index 46c717409c53..dbb11a788a94 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb @@ -30,6 +30,8 @@ class CloudWorkloadSecurityAgentRuleUpdateData # The type of the resource. The value should always be `agent_rule`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb index 353dd20459dd..2c83659c494c 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb @@ -24,6 +24,8 @@ class CloudWorkloadSecurityAgentRuleUpdateRequest # Object for a single Agent rule. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb index 0af05a8e2ff1..3c086559a5c6 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb @@ -27,6 +27,8 @@ class CloudWorkloadSecurityAgentRuleUpdaterAttributes # The name of the user. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdaterAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdaterAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'handle') @@ -78,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) self.class == o.class && handle == o.handle && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb index 924a7060e83a..a5710e67bfa1 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb @@ -24,6 +24,8 @@ class CloudWorkloadSecurityAgentRulesListResponse # A list of Agent rules objects. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRulesListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRulesListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb index 259ebb002d01..9774090eb71d 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb @@ -24,6 +24,8 @@ class CloudflareAccountCreateRequest # Data object for creating a Cloudflare account. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb index 471fe3498c3f..abd5503f5f5e 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb @@ -36,6 +36,8 @@ class CloudflareAccountCreateRequestAttributes # An allowlist of zones to restrict pulling metrics for. attr_accessor :zones + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountCreateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountCreateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -130,6 +134,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -141,6 +165,7 @@ def ==(o) name == o.name && resources == o.resources && zones == o.zones + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb index 097b8f452fbf..1363b853457b 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb @@ -27,6 +27,8 @@ class CloudflareAccountCreateRequestData # The JSON:API type for this API. Should always be `cloudflare-accounts`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountCreateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountCreateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response.rb index ab7157a9b053..d494660cf556 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response.rb @@ -24,6 +24,8 @@ class CloudflareAccountResponse # Data object of a Cloudflare account. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb index 89ba72cbfcd5..bb3b6981c4f9 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb @@ -36,6 +36,8 @@ class CloudflareAccountResponseAttributes # An allowlist of zones to restrict pulling metrics for. attr_accessor :zones + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -119,6 +123,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -130,6 +154,7 @@ def ==(o) name == o.name && resources == o.resources && zones == o.zones + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb index 1dbf6f85ea08..e91d7fc588e7 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb @@ -30,6 +30,8 @@ class CloudflareAccountResponseData # The JSON:API type for this API. Should always be `cloudflare-accounts`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb index 7f4af448888a..4b764f4603d2 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb @@ -24,6 +24,8 @@ class CloudflareAccountUpdateRequest # Data object for updating a Cloudflare account. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb index 844cda9bb228..b98e3430ebe3 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb @@ -36,6 +36,8 @@ class CloudflareAccountUpdateRequestAttributes # An allowlist of zones to restrict pulling metrics for. attr_accessor :zones + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountUpdateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountUpdateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -119,6 +123,26 @@ def api_key=(api_key) @api_key = api_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -130,6 +154,7 @@ def ==(o) name == o.name && resources == o.resources && zones == o.zones + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb index ba8ef7cfcb8e..cce3aa43856a 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb @@ -27,6 +27,8 @@ class CloudflareAccountUpdateRequestData # The JSON:API type for this API. Should always be `cloudflare-accounts`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountUpdateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountUpdateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb b/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb index bdd73f28c8f4..91bc209baf8e 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb @@ -24,6 +24,8 @@ class CloudflareAccountsResponse # The JSON:API data schema. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudflareAccountsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudflareAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_create_request.rb b/lib/datadog_api_client/v2/models/confluent_account_create_request.rb index 9f6b6e51dd51..8edf8ec3fdcc 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_create_request.rb @@ -24,6 +24,8 @@ class ConfluentAccountCreateRequest # The data body for adding a Confluent account. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb index 374b6df5838d..e913fc6a1679 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb @@ -33,6 +33,8 @@ class ConfluentAccountCreateRequestAttributes # A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountCreateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountCreateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -121,6 +125,26 @@ def api_secret=(api_secret) @api_secret = api_secret end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -131,6 +155,7 @@ def ==(o) api_secret == o.api_secret && resources == o.resources && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb b/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb index 88ee13379ade..2ec258d9d2aa 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb @@ -27,6 +27,8 @@ class ConfluentAccountCreateRequestData # The JSON:API type for this API. Should always be `confluent-cloud-accounts`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountCreateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountCreateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb index 38bc96d87a2f..f5f571e27354 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb @@ -33,6 +33,8 @@ class ConfluentAccountResourceAttributes # A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountResourceAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountResourceAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enable_custom_metrics') @@ -108,6 +112,26 @@ def resource_type=(resource_type) @resource_type = resource_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) id == o.id && resource_type == o.resource_type && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_response.rb b/lib/datadog_api_client/v2/models/confluent_account_response.rb index 1981de01797d..aae559bfd112 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_response.rb @@ -24,6 +24,8 @@ class ConfluentAccountResponse # An API key and API secret pair that represents a Confluent account. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb index badd5ed1eed0..c286d0543ea7 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb @@ -30,6 +30,8 @@ class ConfluentAccountResponseAttributes # A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -101,6 +105,26 @@ def api_key=(api_key) @api_key = api_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) api_key == o.api_key && resources == o.resources && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_response_data.rb b/lib/datadog_api_client/v2/models/confluent_account_response_data.rb index 4230b55b7d41..c2a8bf82aa31 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_response_data.rb @@ -30,6 +30,8 @@ class ConfluentAccountResponseData # The JSON:API type for this API. Should always be `confluent-cloud-accounts`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_update_request.rb b/lib/datadog_api_client/v2/models/confluent_account_update_request.rb index e26be7843a73..093336d87e41 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_update_request.rb @@ -24,6 +24,8 @@ class ConfluentAccountUpdateRequest # Data object for updating a Confluent account. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb index 5362c6dbb202..987dfa551178 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb @@ -30,6 +30,8 @@ class ConfluentAccountUpdateRequestAttributes # A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountUpdateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountUpdateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -110,6 +114,26 @@ def api_secret=(api_secret) @api_secret = api_secret end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -119,6 +143,7 @@ def ==(o) api_key == o.api_key && api_secret == o.api_secret && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb b/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb index b39f28bd52cd..af457d4d97b8 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb @@ -27,6 +27,8 @@ class ConfluentAccountUpdateRequestData # The JSON:API type for this API. Should always be `confluent-cloud-accounts`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountUpdateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountUpdateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_accounts_response.rb b/lib/datadog_api_client/v2/models/confluent_accounts_response.rb index fa44adca5d12..fdc3dc6c68c5 100644 --- a/lib/datadog_api_client/v2/models/confluent_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_accounts_response.rb @@ -24,6 +24,8 @@ class ConfluentAccountsResponse # The Confluent account. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentAccountsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_resource_request.rb b/lib/datadog_api_client/v2/models/confluent_resource_request.rb index adedc74b8a9f..ceb244e9863d 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_request.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_request.rb @@ -24,6 +24,8 @@ class ConfluentResourceRequest # JSON:API request for updating a Confluent resource. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentResourceRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentResourceRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb b/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb index dd9082140317..c1bd29d3ae2c 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb @@ -30,6 +30,8 @@ class ConfluentResourceRequestAttributes # A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentResourceRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentResourceRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enable_custom_metrics') @@ -99,6 +103,26 @@ def resource_type=(resource_type) @resource_type = resource_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) enable_custom_metrics == o.enable_custom_metrics && resource_type == o.resource_type && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb b/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb index 93aa9eaf7a90..4f1e78aaa8e5 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb @@ -30,6 +30,8 @@ class ConfluentResourceRequestData # The JSON:API type for this request. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentResourceRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentResourceRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_resource_response.rb b/lib/datadog_api_client/v2/models/confluent_resource_response.rb index 4c160838b468..3120b35f4367 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_response.rb @@ -24,6 +24,8 @@ class ConfluentResourceResponse # Confluent Cloud resource data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentResourceResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentResourceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb b/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb index ca73fd7bf03c..87de15dc40dc 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb @@ -33,6 +33,8 @@ class ConfluentResourceResponseAttributes # A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentResourceResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentResourceResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enable_custom_metrics') @@ -108,6 +112,26 @@ def resource_type=(resource_type) @resource_type = resource_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) id == o.id && resource_type == o.resource_type && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb b/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb index 5713ca55ea5b..2fef5eaba0be 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb @@ -30,6 +30,8 @@ class ConfluentResourceResponseData # The JSON:API type for this request. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentResourceResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentResourceResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/confluent_resources_response.rb b/lib/datadog_api_client/v2/models/confluent_resources_response.rb index 5d96d3100d6d..4b6b11f77c39 100644 --- a/lib/datadog_api_client/v2/models/confluent_resources_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_resources_response.rb @@ -24,6 +24,8 @@ class ConfluentResourcesResponse # The JSON:API data attribute. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ConfluentResourcesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ConfluentResourcesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container.rb b/lib/datadog_api_client/v2/models/container.rb index f39ee84e91da..620e189d877d 100644 --- a/lib/datadog_api_client/v2/models/container.rb +++ b/lib/datadog_api_client/v2/models/container.rb @@ -30,6 +30,8 @@ class Container # Type of container. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Container` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Container`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_attributes.rb b/lib/datadog_api_client/v2/models/container_attributes.rb index 5e6a90e2ebc7..4d9759dbbe77 100644 --- a/lib/datadog_api_client/v2/models/container_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_attributes.rb @@ -51,6 +51,8 @@ class ContainerAttributes # List of tags associated with the container. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -102,12 +104,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'container_id') @@ -155,6 +159,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,6 +195,7 @@ def ==(o) started_at == o.started_at && state == o.state && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_group.rb b/lib/datadog_api_client/v2/models/container_group.rb index fb1bf52152ef..06c787bea79d 100644 --- a/lib/datadog_api_client/v2/models/container_group.rb +++ b/lib/datadog_api_client/v2/models/container_group.rb @@ -33,6 +33,8 @@ class ContainerGroup # Type of container group. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerGroup` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_group_attributes.rb b/lib/datadog_api_client/v2/models/container_group_attributes.rb index e01c1148f248..ae2ffa342901 100644 --- a/lib/datadog_api_client/v2/models/container_group_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_group_attributes.rb @@ -27,6 +27,8 @@ class ContainerGroupAttributes # Tags from the group name parsed in key/value format. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerGroupAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerGroupAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && count == o.count && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_group_relationships.rb b/lib/datadog_api_client/v2/models/container_group_relationships.rb index 96a508cf1750..b3533f19dd91 100644 --- a/lib/datadog_api_client/v2/models/container_group_relationships.rb +++ b/lib/datadog_api_client/v2/models/container_group_relationships.rb @@ -24,6 +24,8 @@ class ContainerGroupRelationships # Relationships to Containers inside a Container Group. attr_accessor :containers + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerGroupRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerGroupRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'containers') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && containers == o.containers + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_group_relationships_link.rb b/lib/datadog_api_client/v2/models/container_group_relationships_link.rb index d7021dccb66b..ee133cc42d1a 100644 --- a/lib/datadog_api_client/v2/models/container_group_relationships_link.rb +++ b/lib/datadog_api_client/v2/models/container_group_relationships_link.rb @@ -27,6 +27,8 @@ class ContainerGroupRelationshipsLink # Links attributes. attr_accessor :links + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerGroupRelationshipsLink` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerGroupRelationshipsLink`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && links == o.links + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_group_relationships_links.rb b/lib/datadog_api_client/v2/models/container_group_relationships_links.rb index 1ce782e7ac42..de5198b4c86f 100644 --- a/lib/datadog_api_client/v2/models/container_group_relationships_links.rb +++ b/lib/datadog_api_client/v2/models/container_group_relationships_links.rb @@ -24,6 +24,8 @@ class ContainerGroupRelationshipsLinks # Link to related containers. attr_accessor :related + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerGroupRelationshipsLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerGroupRelationshipsLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'related') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && related == o.related + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image.rb b/lib/datadog_api_client/v2/models/container_image.rb index 182fb504d3fb..4db894444e02 100644 --- a/lib/datadog_api_client/v2/models/container_image.rb +++ b/lib/datadog_api_client/v2/models/container_image.rb @@ -30,6 +30,8 @@ class ContainerImage # Type of Container Image. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_attributes.rb b/lib/datadog_api_client/v2/models/container_image_attributes.rb index 8543e4a423ab..d04a8a17069f 100644 --- a/lib/datadog_api_client/v2/models/container_image_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_image_attributes.rb @@ -75,6 +75,8 @@ class ContainerImageAttributes # Vulnerability counts associated with the Container Image. attr_accessor :vulnerability_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -131,12 +133,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'container_count') @@ -226,6 +230,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -249,6 +273,7 @@ def ==(o) sources == o.sources && tags == o.tags && vulnerability_count == o.vulnerability_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_flavor.rb b/lib/datadog_api_client/v2/models/container_image_flavor.rb index b95fee695158..f33e48c49507 100644 --- a/lib/datadog_api_client/v2/models/container_image_flavor.rb +++ b/lib/datadog_api_client/v2/models/container_image_flavor.rb @@ -36,6 +36,8 @@ class ContainerImageFlavor # Size of the platform-specific Container Image. attr_accessor :size + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageFlavor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageFlavor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'built_at') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) os_name == o.os_name && os_version == o.os_version && size == o.size + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_group.rb b/lib/datadog_api_client/v2/models/container_image_group.rb index 61e921bc9699..5f2aafb4a4b5 100644 --- a/lib/datadog_api_client/v2/models/container_image_group.rb +++ b/lib/datadog_api_client/v2/models/container_image_group.rb @@ -33,6 +33,8 @@ class ContainerImageGroup # Type of Container Image Group. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageGroup` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_group_attributes.rb b/lib/datadog_api_client/v2/models/container_image_group_attributes.rb index d2d007189e58..4d7275ef19c8 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_attributes.rb @@ -30,6 +30,8 @@ class ContainerImageGroupAttributes # Tags from the group name parsed in key/value format. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageGroupAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageGroupAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) count == o.count && name == o.name && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb b/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb index 2bcd20edd5c9..254f843f7e69 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb @@ -27,6 +27,8 @@ class ContainerImageGroupImagesRelationshipsLink # Links attributes. attr_accessor :links + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageGroupImagesRelationshipsLink` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageGroupImagesRelationshipsLink`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && links == o.links + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_group_relationships.rb b/lib/datadog_api_client/v2/models/container_image_group_relationships.rb index dc6c91689ccb..e1655660ccd4 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_relationships.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_relationships.rb @@ -24,6 +24,8 @@ class ContainerImageGroupRelationships # Relationships to Container Images inside a Container Image Group. attr_accessor :container_images + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageGroupRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageGroupRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'container_images') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && container_images == o.container_images + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb b/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb index 9f51bbb1833b..58eee7913a05 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb @@ -24,6 +24,8 @@ class ContainerImageGroupRelationshipsLinks # Link to related Container Images. attr_accessor :related + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageGroupRelationshipsLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageGroupRelationshipsLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'related') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && related == o.related + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_meta.rb b/lib/datadog_api_client/v2/models/container_image_meta.rb index 47d4a5473e0c..03ee68699598 100644 --- a/lib/datadog_api_client/v2/models/container_image_meta.rb +++ b/lib/datadog_api_client/v2/models/container_image_meta.rb @@ -24,6 +24,8 @@ class ContainerImageMeta # Paging attributes. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_meta_page.rb b/lib/datadog_api_client/v2/models/container_image_meta_page.rb index 8a20634c4935..86ef2377015b 100644 --- a/lib/datadog_api_client/v2/models/container_image_meta_page.rb +++ b/lib/datadog_api_client/v2/models/container_image_meta_page.rb @@ -39,6 +39,8 @@ class ContainerImageMetaPage # Type of Container Image pagination. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -136,6 +140,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -148,6 +172,7 @@ def ==(o) prev_cursor == o.prev_cursor && total == o.total && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb b/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb index 563ed9d9edbe..7a7df0685678 100644 --- a/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb +++ b/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb @@ -42,6 +42,8 @@ class ContainerImageVulnerabilities # Number of vulnerabilities with an unknown CVSS severity. attr_accessor :unknown + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImageVulnerabilities` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImageVulnerabilities`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'asset_id') @@ -115,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) medium == o.medium && none == o.none && unknown == o.unknown + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_images_response.rb b/lib/datadog_api_client/v2/models/container_images_response.rb index 655928fa823a..e82988aad1ea 100644 --- a/lib/datadog_api_client/v2/models/container_images_response.rb +++ b/lib/datadog_api_client/v2/models/container_images_response.rb @@ -30,6 +30,8 @@ class ContainerImagesResponse # Response metadata object. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImagesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImagesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_images_response_links.rb b/lib/datadog_api_client/v2/models/container_images_response_links.rb index 1e780f34bcec..34da8c2be5ff 100644 --- a/lib/datadog_api_client/v2/models/container_images_response_links.rb +++ b/lib/datadog_api_client/v2/models/container_images_response_links.rb @@ -36,6 +36,8 @@ class ContainerImagesResponseLinks # Link to current page. attr_accessor :_self + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImagesResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImagesResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'first') @@ -107,6 +111,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) _next == o._next && prev == o.prev && _self == o._self + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_meta.rb b/lib/datadog_api_client/v2/models/container_meta.rb index f5a02f2cbc7f..30ed593f8734 100644 --- a/lib/datadog_api_client/v2/models/container_meta.rb +++ b/lib/datadog_api_client/v2/models/container_meta.rb @@ -24,6 +24,8 @@ class ContainerMeta # Paging attributes. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/container_meta_page.rb b/lib/datadog_api_client/v2/models/container_meta_page.rb index 51eeca24a41d..bacdeb9369e9 100644 --- a/lib/datadog_api_client/v2/models/container_meta_page.rb +++ b/lib/datadog_api_client/v2/models/container_meta_page.rb @@ -39,6 +39,8 @@ class ContainerMetaPage # Type of Container pagination. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -136,6 +140,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -148,6 +172,7 @@ def ==(o) prev_cursor == o.prev_cursor && total == o.total && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/containers_response.rb b/lib/datadog_api_client/v2/models/containers_response.rb index b12198db9c22..18e8159f58ac 100644 --- a/lib/datadog_api_client/v2/models/containers_response.rb +++ b/lib/datadog_api_client/v2/models/containers_response.rb @@ -30,6 +30,8 @@ class ContainersResponse # Response metadata object. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainersResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/containers_response_links.rb b/lib/datadog_api_client/v2/models/containers_response_links.rb index f33a7a9e3806..5fd17d2de0e6 100644 --- a/lib/datadog_api_client/v2/models/containers_response_links.rb +++ b/lib/datadog_api_client/v2/models/containers_response_links.rb @@ -36,6 +36,8 @@ class ContainersResponseLinks # Link to current page. attr_accessor :_self + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainersResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainersResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'first') @@ -107,6 +111,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) _next == o._next && prev == o.prev && _self == o._self + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb b/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb index d5089d2ba049..507e472cc270 100644 --- a/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb +++ b/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb @@ -30,6 +30,8 @@ class CostAttributionAggregatesBody # The value for a given field. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CostAttributionAggregatesBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CostAttributionAggregatesBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'agg_type') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) agg_type == o.agg_type && field == o.field && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cost_by_org.rb b/lib/datadog_api_client/v2/models/cost_by_org.rb index c4a2c0feae94..73c422431749 100644 --- a/lib/datadog_api_client/v2/models/cost_by_org.rb +++ b/lib/datadog_api_client/v2/models/cost_by_org.rb @@ -30,6 +30,8 @@ class CostByOrg # Type of cost data. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CostByOrg` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CostByOrg`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb b/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb index 1599a8d0926a..ff58e923c9c3 100644 --- a/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb +++ b/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb @@ -45,6 +45,8 @@ class CostByOrgAttributes # The total cost of products for the month. attr_accessor :total_cost + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CostByOrgAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CostByOrgAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_name') @@ -126,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -140,6 +164,7 @@ def ==(o) public_id == o.public_id && region == o.region && total_cost == o.total_cost + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/cost_by_org_response.rb b/lib/datadog_api_client/v2/models/cost_by_org_response.rb index 7ab866781fa5..9151d8335c65 100644 --- a/lib/datadog_api_client/v2/models/cost_by_org_response.rb +++ b/lib/datadog_api_client/v2/models/cost_by_org_response.rb @@ -24,6 +24,8 @@ class CostByOrgResponse # Response containing Chargeback Summary. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CostByOrgResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CostByOrgResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/create_open_api_response.rb b/lib/datadog_api_client/v2/models/create_open_api_response.rb index 97a6b189c930..6f6168c69016 100644 --- a/lib/datadog_api_client/v2/models/create_open_api_response.rb +++ b/lib/datadog_api_client/v2/models/create_open_api_response.rb @@ -24,6 +24,8 @@ class CreateOpenAPIResponse # Data envelope for `CreateOpenAPIResponse`. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateOpenAPIResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CreateOpenAPIResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb b/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb index 0210cea496fd..2a2bf85e1530 100644 --- a/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb @@ -24,6 +24,8 @@ class CreateOpenAPIResponseAttributes # List of endpoints which couldn't be parsed. attr_accessor :failed_endpoints + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateOpenAPIResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CreateOpenAPIResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'failed_endpoints') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && failed_endpoints == o.failed_endpoints + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/create_open_api_response_data.rb b/lib/datadog_api_client/v2/models/create_open_api_response_data.rb index c3a0228650d7..8e9320577f11 100644 --- a/lib/datadog_api_client/v2/models/create_open_api_response_data.rb +++ b/lib/datadog_api_client/v2/models/create_open_api_response_data.rb @@ -27,6 +27,8 @@ class CreateOpenAPIResponseData # API identifier. attr_accessor :id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateOpenAPIResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CreateOpenAPIResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && id == o.id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/create_rule_request.rb b/lib/datadog_api_client/v2/models/create_rule_request.rb index 17d42ad7d58e..7d9cb190b897 100644 --- a/lib/datadog_api_client/v2/models/create_rule_request.rb +++ b/lib/datadog_api_client/v2/models/create_rule_request.rb @@ -24,6 +24,8 @@ class CreateRuleRequest # Scorecard create rule request data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateRuleRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CreateRuleRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/create_rule_request_data.rb b/lib/datadog_api_client/v2/models/create_rule_request_data.rb index fb1e2c272395..b051af1b4e64 100644 --- a/lib/datadog_api_client/v2/models/create_rule_request_data.rb +++ b/lib/datadog_api_client/v2/models/create_rule_request_data.rb @@ -27,6 +27,8 @@ class CreateRuleRequestData # The JSON:API type for scorecard rules. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateRuleRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CreateRuleRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/create_rule_response.rb b/lib/datadog_api_client/v2/models/create_rule_response.rb index 1ccc476bbfc3..cf71416e0ee0 100644 --- a/lib/datadog_api_client/v2/models/create_rule_response.rb +++ b/lib/datadog_api_client/v2/models/create_rule_response.rb @@ -24,6 +24,8 @@ class CreateRuleResponse # Create rule response data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateRuleResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CreateRuleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/create_rule_response_data.rb b/lib/datadog_api_client/v2/models/create_rule_response_data.rb index 42b301170e3e..d5ebbe809c93 100644 --- a/lib/datadog_api_client/v2/models/create_rule_response_data.rb +++ b/lib/datadog_api_client/v2/models/create_rule_response_data.rb @@ -33,6 +33,8 @@ class CreateRuleResponseData # The JSON:API type for scorecard rules. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateRuleResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CreateRuleResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index ee50db9b3afd..2ec445d3c175 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -30,6 +30,8 @@ class Creator # Name of the creator. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -66,12 +68,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Creator` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Creator`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'email') @@ -87,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) email == o.email && handle == o.handle && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb b/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb index 532bf702ad8e..24397c6af89d 100644 --- a/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb +++ b/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb @@ -24,6 +24,8 @@ class CustomCostGetResponseMeta # Version of Custom Costs file attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostGetResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostGetResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'version') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb b/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb index fa91569162ee..3950129e4ae5 100644 --- a/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb +++ b/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb @@ -27,6 +27,8 @@ class CustomCostListResponseMeta # Version of Custom Costs file attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostListResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostListResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_filtered_count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && total_filtered_count == o.total_filtered_count && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb b/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb index ddd3d4edda3f..ecd06c98551c 100644 --- a/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb +++ b/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb @@ -24,6 +24,8 @@ class CustomCostUploadResponseMeta # Version of Custom Costs file attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostUploadResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostUploadResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'version') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb b/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb index 41d16505dfeb..51950918defa 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb @@ -27,6 +27,8 @@ class CustomCostsFileGetResponse # Meta for the response from the Get Custom Costs endpoints. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsFileGetResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsFileGetResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb b/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb index bdceeee8fe80..d9306ab2594c 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb @@ -42,6 +42,8 @@ class CustomCostsFileLineItem # Additional tags for the line item. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsFileLineItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsFileLineItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'billed_cost') @@ -148,6 +152,26 @@ def charge_period_start=(charge_period_start) @charge_period_start = charge_period_start end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -161,6 +185,7 @@ def ==(o) charge_period_start == o.charge_period_start && provider_name == o.provider_name && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb b/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb index 93ae9867741f..b03b25208f66 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb @@ -27,6 +27,8 @@ class CustomCostsFileListResponse # Meta for the response from the List Custom Costs endpoints. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsFileListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsFileListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb index 52a5e56a9def..a29861fc0c3d 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb @@ -45,6 +45,8 @@ class CustomCostsFileMetadata # Metadata of the user that has uploaded the Custom Costs file. attr_accessor :uploaded_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsFileMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsFileMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'billed_cost') @@ -126,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -140,6 +164,7 @@ def ==(o) status == o.status && uploaded_at == o.uploaded_at && uploaded_by == o.uploaded_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb index c0ca665aa4f0..3a088b5d5d53 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb @@ -30,6 +30,8 @@ class CustomCostsFileMetadataHighLevel # Type of the Custom Costs file metadata. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsFileMetadataHighLevel` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsFileMetadataHighLevel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb index 7a4b732ead9b..69f69e59efe9 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb @@ -48,6 +48,8 @@ class CustomCostsFileMetadataWithContent # Metadata of the user that has uploaded the Custom Costs file. attr_accessor :uploaded_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsFileMetadataWithContent` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsFileMetadataWithContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'billed_cost') @@ -137,6 +141,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -152,6 +176,7 @@ def ==(o) status == o.status && uploaded_at == o.uploaded_at && uploaded_by == o.uploaded_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb index 6cf5a22fc196..4cd22299ce81 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb @@ -30,6 +30,8 @@ class CustomCostsFileMetadataWithContentHighLevel # Type of the Custom Costs file metadata. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsFileMetadataWithContentHighLevel` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsFileMetadataWithContentHighLevel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb b/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb index 353e2d269a18..c22b1f60da35 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb @@ -27,6 +27,8 @@ class CustomCostsFileUploadResponse # Meta for the response from the Upload Custom Costs endpoints. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsFileUploadResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsFileUploadResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb b/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb index 413f2c52b919..cd57e73af7b1 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb @@ -27,6 +27,8 @@ class CustomCostsFileUsageChargePeriod # Start of the usage of the Custom Costs file. attr_accessor :start + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsFileUsageChargePeriod` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsFileUsageChargePeriod`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_end') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && _end == o._end && start == o.start + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_costs_user.rb b/lib/datadog_api_client/v2/models/custom_costs_user.rb index 3c3f18dbddbb..b979a4bd156f 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_user.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_user.rb @@ -30,6 +30,8 @@ class CustomCostsUser # Name of the user. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomCostsUser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomCostsUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'email') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) email == o.email && icon == o.icon && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_create_request.rb b/lib/datadog_api_client/v2/models/custom_destination_create_request.rb index bc9f7b2989df..bc801ecfcab2 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_create_request.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_create_request.rb @@ -24,6 +24,8 @@ class CustomDestinationCreateRequest # The definition of a custom destination. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb b/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb index 3602b00f3091..5f92577ac293 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb @@ -49,6 +49,8 @@ class CustomDestinationCreateRequestAttributes # The custom destination query and filter. Logs matching this query are forwarded to the destination. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -85,12 +87,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enabled') @@ -168,6 +172,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -181,6 +205,7 @@ def ==(o) forwarder_destination == o.forwarder_destination && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb b/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb index b670f9daf6d6..0892c7989dbb 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb @@ -27,6 +27,8 @@ class CustomDestinationCreateRequestDefinition # The type of the resource. The value should always be `custom_destination`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb b/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb index 24bbd7d4577a..4c485624c410 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb @@ -27,6 +27,8 @@ class CustomDestinationElasticsearchDestinationAuth # The username of the authentication. This field is not returned by the API. attr_reader :username + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationElasticsearchDestinationAuth` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationElasticsearchDestinationAuth`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'password') @@ -99,6 +103,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && password == o.password && username == o.username + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb index 89c34faabb12..ca9d1ea89db6 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb @@ -46,6 +46,8 @@ class CustomDestinationForwardDestinationElasticsearch # Type of the Elasticsearch destination. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationForwardDestinationElasticsearch` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationForwardDestinationElasticsearch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'auth') @@ -158,6 +162,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -169,6 +193,7 @@ def ==(o) index_name == o.index_name && index_rotation == o.index_rotation && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb index 00448a2e97ba..d898be9ed95e 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb @@ -31,6 +31,8 @@ class CustomDestinationForwardDestinationHttp # Type of the HTTP destination. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationForwardDestinationHttp` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationForwardDestinationHttp`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'auth') @@ -120,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -129,6 +153,7 @@ def ==(o) auth == o.auth && endpoint == o.endpoint && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb index 2e536cfca93a..6ebac3a72593 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb @@ -31,6 +31,8 @@ class CustomDestinationForwardDestinationSplunk # Type of the Splunk HTTP Event Collector (HEC) destination. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationForwardDestinationSplunk` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationForwardDestinationSplunk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'access_token') @@ -120,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -129,6 +153,7 @@ def ==(o) access_token == o.access_token && endpoint == o.endpoint && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb index f1ddbe44f9a5..deaffa852fee 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb @@ -30,6 +30,8 @@ class CustomDestinationHttpDestinationAuthBasic # The username of the authentication. This field is not returned by the API. attr_reader :username + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthBasic` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthBasic`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'password') @@ -119,6 +123,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) password == o.password && type == o.type && username == o.username + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb index 464f068e7af2..2cc601f37288 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb @@ -30,6 +30,8 @@ class CustomDestinationHttpDestinationAuthCustomHeader # Type of the custom header access authentication. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthCustomHeader` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthCustomHeader`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'header_name') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) header_name == o.header_name && header_value == o.header_value && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_response.rb b/lib/datadog_api_client/v2/models/custom_destination_response.rb index efa7abac339f..024ed6df1dbc 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response.rb @@ -24,6 +24,8 @@ class CustomDestinationResponse # The definition of a custom destination. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb b/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb index ab013208a8cd..de69d8d8a13b 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb @@ -49,6 +49,8 @@ class CustomDestinationResponseAttributes # The custom destination query filter. Logs matching this query are forwarded to the destination. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -85,12 +87,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enabled') @@ -146,6 +150,26 @@ def forward_tags_restriction_list=(forward_tags_restriction_list) @forward_tags_restriction_list = forward_tags_restriction_list end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -159,6 +183,7 @@ def ==(o) forwarder_destination == o.forwarder_destination && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb b/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb index ddd5494e93c7..84be926ebd86 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb @@ -30,6 +30,8 @@ class CustomDestinationResponseDefinition # The type of the resource. The value should always be `custom_destination`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb index dd5f19ec8b0f..b6bdcb7e4eff 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb @@ -46,6 +46,8 @@ class CustomDestinationResponseForwardDestinationElasticsearch # Type of the Elasticsearch destination. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseForwardDestinationElasticsearch` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseForwardDestinationElasticsearch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'auth') @@ -158,6 +162,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -169,6 +193,7 @@ def ==(o) index_name == o.index_name && index_rotation == o.index_rotation && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb index 83b814f3e008..8b9555c4d2fc 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb @@ -31,6 +31,8 @@ class CustomDestinationResponseForwardDestinationHttp # Type of the HTTP destination. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseForwardDestinationHttp` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseForwardDestinationHttp`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'auth') @@ -120,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -129,6 +153,7 @@ def ==(o) auth == o.auth && endpoint == o.endpoint && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb index abb488a94614..fdd41aa3e0dc 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb @@ -28,6 +28,8 @@ class CustomDestinationResponseForwardDestinationSplunk # Type of the Splunk HTTP Event Collector (HEC) destination. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseForwardDestinationSplunk` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseForwardDestinationSplunk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'endpoint') @@ -100,6 +104,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) self.class == o.class && endpoint == o.endpoint && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb index 825360b48e06..ec2b6d121807 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb @@ -24,6 +24,8 @@ class CustomDestinationResponseHttpDestinationAuthBasic # Type of the basic access authentication. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseHttpDestinationAuthBasic` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseHttpDestinationAuthBasic`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -79,6 +83,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb index d204b7962c42..a32897f1786e 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb @@ -27,6 +27,8 @@ class CustomDestinationResponseHttpDestinationAuthCustomHeader # Type of the custom header access authentication. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationResponseHttpDestinationAuthCustomHeader` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationResponseHttpDestinationAuthCustomHeader`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'header_name') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && header_name == o.header_name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_update_request.rb b/lib/datadog_api_client/v2/models/custom_destination_update_request.rb index 9778f38a250a..1c8adec241ff 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_update_request.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_update_request.rb @@ -24,6 +24,8 @@ class CustomDestinationUpdateRequest # The definition of a custom destination. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb b/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb index 8cd7d198a203..ef23ce4c6bf7 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb @@ -47,6 +47,8 @@ class CustomDestinationUpdateRequestAttributes # The custom destination query and filter. Logs matching this query are forwarded to the destination. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationUpdateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationUpdateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enabled') @@ -144,6 +148,26 @@ def forward_tags_restriction_list=(forward_tags_restriction_list) @forward_tags_restriction_list = forward_tags_restriction_list end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -157,6 +181,7 @@ def ==(o) forwarder_destination == o.forwarder_destination && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb b/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb index 23535e6156b1..06ff7a142f65 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb @@ -30,6 +30,8 @@ class CustomDestinationUpdateRequestDefinition # The type of the resource. The value should always be `custom_destination`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationUpdateRequestDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationUpdateRequestDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/custom_destinations_response.rb b/lib/datadog_api_client/v2/models/custom_destinations_response.rb index dc042ba4d918..ad60799aa64e 100644 --- a/lib/datadog_api_client/v2/models/custom_destinations_response.rb +++ b/lib/datadog_api_client/v2/models/custom_destinations_response.rb @@ -24,6 +24,8 @@ class CustomDestinationsResponse # A list of custom destinations. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb index 17f9accd2bad..e960982638ca 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb @@ -24,6 +24,8 @@ class DashboardListAddItemsRequest # List of dashboards to add the dashboard list. attr_accessor :dashboards + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListAddItemsRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListAddItemsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dashboards') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && dashboards == o.dashboards + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb index 9ebc2ea9dad9..f2e4e0b4fd6c 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb @@ -24,6 +24,8 @@ class DashboardListAddItemsResponse # List of dashboards added to the dashboard list. attr_accessor :added_dashboards_to_list + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListAddItemsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListAddItemsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'added_dashboards_to_list') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && added_dashboards_to_list == o.added_dashboards_to_list + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb index 1951ecf3c769..e50276b88c75 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb @@ -24,6 +24,8 @@ class DashboardListDeleteItemsRequest # List of dashboards to delete from the dashboard list. attr_accessor :dashboards + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListDeleteItemsRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListDeleteItemsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dashboards') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && dashboards == o.dashboards + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb index 69c0f79f3237..331e37902469 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb @@ -24,6 +24,8 @@ class DashboardListDeleteItemsResponse # List of dashboards deleted from the dashboard list. attr_accessor :deleted_dashboards_from_list + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListDeleteItemsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListDeleteItemsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'deleted_dashboards_from_list') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && deleted_dashboards_from_list == o.deleted_dashboards_from_list + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item.rb b/lib/datadog_api_client/v2/models/dashboard_list_item.rb index 27f091d65de6..61ecb51cf90d 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -63,6 +63,8 @@ class DashboardListItem # URL path to the dashboard. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -123,12 +125,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'author') @@ -241,6 +245,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -261,6 +285,7 @@ def ==(o) title == o.title && type == o.type && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb index e39736a7dbb0..4a47a4994efd 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb @@ -27,6 +27,8 @@ class DashboardListItemRequest # The type of the dashboard. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItemRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListItemRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb index 6e38d72239f6..4d0d54e336b6 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb @@ -27,6 +27,8 @@ class DashboardListItemResponse # The type of the dashboard. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItemResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListItemResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_items.rb b/lib/datadog_api_client/v2/models/dashboard_list_items.rb index ec642dde556c..636c66e2d5a8 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -27,6 +27,8 @@ class DashboardListItems # Number of dashboards in the dashboard list. attr_accessor :total + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItems` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dashboards') @@ -90,6 +94,26 @@ def dashboards=(dashboards) @dashboards = dashboards end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && dashboards == o.dashboards && total == o.total + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb index ab91ceaa29b2..c12c94c0b098 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb @@ -24,6 +24,8 @@ class DashboardListUpdateItemsRequest # List of dashboards to update the dashboard list to. attr_accessor :dashboards + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListUpdateItemsRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListUpdateItemsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dashboards') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && dashboards == o.dashboards + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb index 1004792d5080..3e0fdbc36278 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb @@ -24,6 +24,8 @@ class DashboardListUpdateItemsResponse # List of dashboards in the dashboard list. attr_accessor :dashboards + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListUpdateItemsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DashboardListUpdateItemsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dashboards') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && dashboards == o.dashboards + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/data_scalar_column.rb b/lib/datadog_api_client/v2/models/data_scalar_column.rb index eadf4417da12..f6629576d3dc 100644 --- a/lib/datadog_api_client/v2/models/data_scalar_column.rb +++ b/lib/datadog_api_client/v2/models/data_scalar_column.rb @@ -33,6 +33,8 @@ class DataScalarColumn # The array of numerical values for one formula or query. attr_accessor :values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DataScalarColumn` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DataScalarColumn`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -90,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -100,6 +124,7 @@ def ==(o) name == o.name && type == o.type && values == o.values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/detailed_finding.rb b/lib/datadog_api_client/v2/models/detailed_finding.rb index c88b0fb5bd37..ba7a0092f334 100644 --- a/lib/datadog_api_client/v2/models/detailed_finding.rb +++ b/lib/datadog_api_client/v2/models/detailed_finding.rb @@ -30,6 +30,8 @@ class DetailedFinding # The JSON:API type for findings that have the message and resource configuration. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DetailedFinding` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DetailedFinding`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb b/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb index 9167520b59de..6a1479cbe899 100644 --- a/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb +++ b/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb @@ -54,6 +54,8 @@ class DetailedFindingAttributes # The tags associated with this finding. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DetailedFindingAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DetailedFindingAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'evaluation') @@ -182,6 +186,26 @@ def resource_discovery_date=(resource_discovery_date) @resource_discovery_date = resource_discovery_date end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -199,6 +223,7 @@ def ==(o) rule == o.rule && status == o.status && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/device_attributes.rb b/lib/datadog_api_client/v2/models/device_attributes.rb index 153804d238ab..70b77f0370c9 100644 --- a/lib/datadog_api_client/v2/models/device_attributes.rb +++ b/lib/datadog_api_client/v2/models/device_attributes.rb @@ -81,6 +81,8 @@ class DeviceAttributes # The device version attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -143,12 +145,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DeviceAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DeviceAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -234,6 +238,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -260,6 +284,7 @@ def ==(o) tags == o.tags && vendor == o.vendor && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb b/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb index 72e95cc94e5d..3e2291cda34a 100644 --- a/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb +++ b/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb @@ -33,6 +33,8 @@ class DeviceAttributesInterfaceStatuses # The number of interfaces that are in a warning state attr_accessor :warning + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DeviceAttributesInterfaceStatuses` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DeviceAttributesInterfaceStatuses`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'down') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) off == o.off && up == o.up && warning == o.warning + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/devices_list_data.rb b/lib/datadog_api_client/v2/models/devices_list_data.rb index 25fae688b602..d6fdb6a3b7c3 100644 --- a/lib/datadog_api_client/v2/models/devices_list_data.rb +++ b/lib/datadog_api_client/v2/models/devices_list_data.rb @@ -30,6 +30,8 @@ class DevicesListData # The type of the resource. The value should always be device. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DevicesListData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DevicesListData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request.rb b/lib/datadog_api_client/v2/models/dora_deployment_request.rb index c3835c2830c0..2180a18a6c28 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request.rb @@ -24,6 +24,8 @@ class DORADeploymentRequest # The JSON:API data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORADeploymentRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORADeploymentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb b/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb index 945d28df09d3..63a7ebd56793 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb @@ -42,6 +42,8 @@ class DORADeploymentRequestAttributes # Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/). attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORADeploymentRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORADeploymentRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'env') @@ -155,6 +159,26 @@ def started_at=(started_at) @started_at = started_at end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,6 +192,7 @@ def ==(o) service == o.service && started_at == o.started_at && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb b/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb index 10c64f236b6e..e23c9f25bdb0 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb @@ -24,6 +24,8 @@ class DORADeploymentRequestData # Attributes to create a DORA deployment event. attr_reader :attributes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORADeploymentRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORADeploymentRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && attributes == o.attributes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_deployment_response.rb b/lib/datadog_api_client/v2/models/dora_deployment_response.rb index 571ade4fddd4..04115d10b54b 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_response.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_response.rb @@ -24,6 +24,8 @@ class DORADeploymentResponse # The JSON:API data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORADeploymentResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORADeploymentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb b/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb index 622e30686666..68cf1547cc44 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb @@ -27,6 +27,8 @@ class DORADeploymentResponseData # JSON:API type for DORA deployment events. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORADeploymentResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORADeploymentResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -88,6 +92,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_git_info.rb b/lib/datadog_api_client/v2/models/dora_git_info.rb index 6742a1e36b42..a0bb0fe90a1d 100644 --- a/lib/datadog_api_client/v2/models/dora_git_info.rb +++ b/lib/datadog_api_client/v2/models/dora_git_info.rb @@ -27,6 +27,8 @@ class DORAGitInfo # Git Repository URL attr_reader :repository_url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAGitInfo` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORAGitInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'commit_sha') @@ -105,6 +109,26 @@ def repository_url=(repository_url) @repository_url = repository_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -113,6 +137,7 @@ def ==(o) self.class == o.class && commit_sha == o.commit_sha && repository_url == o.repository_url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_incident_request.rb b/lib/datadog_api_client/v2/models/dora_incident_request.rb index 64414901e6a1..c65c4a896cee 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_request.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_request.rb @@ -24,6 +24,8 @@ class DORAIncidentRequest # The JSON:API data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORAIncidentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb b/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb index 595b094dded3..3c9e6e1adc5c 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb @@ -51,6 +51,8 @@ class DORAIncidentRequestAttributes # Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/). attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORAIncidentRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'env') @@ -162,6 +166,26 @@ def started_at=(started_at) @started_at = started_at end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -178,6 +202,7 @@ def ==(o) started_at == o.started_at && team == o.team && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_incident_request_data.rb b/lib/datadog_api_client/v2/models/dora_incident_request_data.rb index 6729ba6e3045..f9d256e122f2 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_request_data.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_request_data.rb @@ -24,6 +24,8 @@ class DORAIncidentRequestData # Attributes to create a DORA incident event. attr_reader :attributes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORAIncidentRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && attributes == o.attributes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_incident_response.rb b/lib/datadog_api_client/v2/models/dora_incident_response.rb index 892e2f4756dd..86be6a3d05ec 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_response.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_response.rb @@ -24,6 +24,8 @@ class DORAIncidentResponse # Response after receiving a DORA incident event. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORAIncidentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/dora_incident_response_data.rb b/lib/datadog_api_client/v2/models/dora_incident_response_data.rb index 31a865ea9f80..440b951198b2 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_response_data.rb @@ -27,6 +27,8 @@ class DORAIncidentResponseData # JSON:API type for DORA incident events. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DORAIncidentResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -88,6 +92,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_create_request.rb b/lib/datadog_api_client/v2/models/downtime_create_request.rb index ee9579b928a0..17f54622a227 100644 --- a/lib/datadog_api_client/v2/models/downtime_create_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_create_request.rb @@ -24,6 +24,8 @@ class DowntimeCreateRequest # Object to create a downtime. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb b/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb index 528ead2cb1cd..ff27e11ffd6c 100644 --- a/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb @@ -47,6 +47,8 @@ class DowntimeCreateRequestAttributes # The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/). attr_reader :scope + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -94,12 +96,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeCreateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeCreateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'display_timezone') @@ -168,6 +172,26 @@ def scope=(scope) @scope = scope end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -182,6 +206,7 @@ def ==(o) notify_end_types == o.notify_end_types && schedule == o.schedule && scope == o.scope + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_create_request_data.rb b/lib/datadog_api_client/v2/models/downtime_create_request_data.rb index 076718487583..b771b7b71e31 100644 --- a/lib/datadog_api_client/v2/models/downtime_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_create_request_data.rb @@ -27,6 +27,8 @@ class DowntimeCreateRequestData # Downtime resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeCreateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeCreateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_meta.rb b/lib/datadog_api_client/v2/models/downtime_meta.rb index 5158574ad013..df177c9af62b 100644 --- a/lib/datadog_api_client/v2/models/downtime_meta.rb +++ b/lib/datadog_api_client/v2/models/downtime_meta.rb @@ -24,6 +24,8 @@ class DowntimeMeta # Object containing the total filtered count. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_meta_page.rb b/lib/datadog_api_client/v2/models/downtime_meta_page.rb index 7c1327a97bf8..35f51ba1705a 100644 --- a/lib/datadog_api_client/v2/models/downtime_meta_page.rb +++ b/lib/datadog_api_client/v2/models/downtime_meta_page.rb @@ -24,6 +24,8 @@ class DowntimeMetaPage # Total count of elements matched by the filter. attr_accessor :total_filtered_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_filtered_count') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && total_filtered_count == o.total_filtered_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb index fc01a575d127..9028cd7daa8a 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb @@ -24,6 +24,8 @@ class DowntimeMonitorIdentifierId # ID of the monitor to prevent notifications. attr_reader :monitor_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeMonitorIdentifierId` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeMonitorIdentifierId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'monitor_id') @@ -79,6 +83,26 @@ def monitor_id=(monitor_id) @monitor_id = monitor_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && monitor_id == o.monitor_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb index 9795d376261f..f28e3087e527 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb @@ -27,6 +27,8 @@ class DowntimeMonitorIdentifierTags # to `[*]` configures the downtime to mute all monitors for the given scope. attr_reader :monitor_tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -51,12 +53,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeMonitorIdentifierTags` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeMonitorIdentifierTags`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'monitor_tags') @@ -88,6 +92,26 @@ def monitor_tags=(monitor_tags) @monitor_tags = monitor_tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -95,6 +119,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && monitor_tags == o.monitor_tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb b/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb index 62f6a8d67d6b..28fa209f81ae 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb @@ -24,6 +24,8 @@ class DowntimeMonitorIncludedAttributes # The name of the monitor identified by the downtime. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeMonitorIncludedAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeMonitorIncludedAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb b/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb index e7f3511eadf6..b743fce26f15 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb @@ -30,6 +30,8 @@ class DowntimeMonitorIncludedItem # Monitor resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeMonitorIncludedItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeMonitorIncludedItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_relationships.rb b/lib/datadog_api_client/v2/models/downtime_relationships.rb index 9225bce1a8d3..5a8b8e1e9059 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships.rb @@ -27,6 +27,8 @@ class DowntimeRelationships # The monitor identified by the downtime. attr_accessor :monitor + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_by') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && created_by == o.created_by && monitor == o.monitor + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb b/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb index 609d83806b16..4708443d065e 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb @@ -24,6 +24,8 @@ class DowntimeRelationshipsCreatedBy # Data for the user who created the downtime. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeRelationshipsCreatedBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeRelationshipsCreatedBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -69,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -76,6 +100,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb b/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb index e99ffd8e7c70..4b798d67ef9d 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb @@ -27,6 +27,8 @@ class DowntimeRelationshipsCreatedByData # Users resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeRelationshipsCreatedByData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeRelationshipsCreatedByData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb b/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb index 6445571132c5..99a994254aa8 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb @@ -24,6 +24,8 @@ class DowntimeRelationshipsMonitor # Data for the monitor. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeRelationshipsMonitor` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeRelationshipsMonitor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -69,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -76,6 +100,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb b/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb index 2e95574c9b49..a4137a916de2 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb @@ -27,6 +27,8 @@ class DowntimeRelationshipsMonitorData # Monitor resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeRelationshipsMonitorData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeRelationshipsMonitorData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_response.rb b/lib/datadog_api_client/v2/models/downtime_response.rb index 11382efbcc3c..cd8e664cccf9 100644 --- a/lib/datadog_api_client/v2/models/downtime_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_response.rb @@ -30,6 +30,8 @@ class DowntimeResponse # Array of objects related to the downtime that the user requested. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -75,6 +79,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -83,6 +107,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_response_attributes.rb b/lib/datadog_api_client/v2/models/downtime_response_attributes.rb index 8d0f1fb0de47..8e9b9ef45912 100644 --- a/lib/datadog_api_client/v2/models/downtime_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_response_attributes.rb @@ -61,6 +61,8 @@ class DowntimeResponseAttributes # The current status of the downtime. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -117,12 +119,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'canceled') @@ -178,6 +182,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -196,6 +220,7 @@ def ==(o) schedule == o.schedule && scope == o.scope && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_response_data.rb b/lib/datadog_api_client/v2/models/downtime_response_data.rb index ede339805ee3..5c57a8d668b4 100644 --- a/lib/datadog_api_client/v2/models/downtime_response_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_response_data.rb @@ -33,6 +33,8 @@ class DowntimeResponseData # Downtime resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb index 14b15f71fcb0..225aa4406df1 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb @@ -29,6 +29,8 @@ class DowntimeScheduleCurrentDowntimeResponse # The start of the current downtime. attr_accessor :start + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeScheduleCurrentDowntimeResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeScheduleCurrentDowntimeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_end') @@ -80,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) self.class == o.class && _end == o._end && start == o.start + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb index 80559c5959cd..2a65555fd69e 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb @@ -27,6 +27,8 @@ class DowntimeScheduleOneTimeResponse # ISO-8601 Datetime to start the downtime. attr_reader :start + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeScheduleOneTimeResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeScheduleOneTimeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_end') @@ -96,6 +100,26 @@ def start=(start) @start = start end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -104,6 +128,7 @@ def ==(o) self.class == o.class && _end == o._end && start == o.start + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb index 12169ff379bf..c514a550c194 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb @@ -36,6 +36,8 @@ class DowntimeScheduleRecurrenceCreateUpdateRequest # downtime starts the moment it is created. attr_accessor :start + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -72,12 +74,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeScheduleRecurrenceCreateUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeScheduleRecurrenceCreateUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'duration') @@ -122,6 +126,26 @@ def rrule=(rrule) @rrule = rrule end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -131,6 +155,7 @@ def ==(o) duration == o.duration && rrule == o.rrule && start == o.start + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb index f32be07bea57..2e883e4de63e 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb @@ -36,6 +36,8 @@ class DowntimeScheduleRecurrenceResponse # downtime starts the moment it is created. attr_accessor :start + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeScheduleRecurrenceResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeScheduleRecurrenceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'duration') @@ -85,6 +89,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -94,6 +118,7 @@ def ==(o) duration == o.duration && rrule == o.rrule && start == o.start + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb index 1ee8265c44d3..e273adab95b5 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb @@ -27,6 +27,8 @@ class DowntimeScheduleRecurrencesCreateRequest # The timezone in which to schedule the downtime. attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeScheduleRecurrencesCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeScheduleRecurrencesCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'recurrences') @@ -90,6 +94,26 @@ def recurrences=(recurrences) @recurrences = recurrences end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && recurrences == o.recurrences && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb index 3c016682cd6e..0fad380c43c9 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb @@ -33,6 +33,8 @@ class DowntimeScheduleRecurrencesResponse # Must match `display_timezone`. attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeScheduleRecurrencesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeScheduleRecurrencesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'current_downtime') @@ -110,6 +114,26 @@ def recurrences=(recurrences) @recurrences = recurrences end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -119,6 +143,7 @@ def ==(o) current_downtime == o.current_downtime && recurrences == o.recurrences && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_update_request.rb b/lib/datadog_api_client/v2/models/downtime_update_request.rb index d7980896d223..c0c7d88a1e40 100644 --- a/lib/datadog_api_client/v2/models/downtime_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_update_request.rb @@ -24,6 +24,8 @@ class DowntimeUpdateRequest # Object to update a downtime. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb b/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb index 0bd732ec3a0b..df504a51c8ca 100644 --- a/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb @@ -47,6 +47,8 @@ class DowntimeUpdateRequestAttributes # The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/). attr_accessor :scope + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -94,12 +96,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeUpdateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeUpdateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'display_timezone') @@ -139,6 +143,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -153,6 +177,7 @@ def ==(o) notify_end_types == o.notify_end_types && schedule == o.schedule && scope == o.scope + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/downtime_update_request_data.rb b/lib/datadog_api_client/v2/models/downtime_update_request_data.rb index 88c6a7cbd4a2..8ffba0e94704 100644 --- a/lib/datadog_api_client/v2/models/downtime_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_update_request_data.rb @@ -30,6 +30,8 @@ class DowntimeUpdateRequestData # Downtime resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DowntimeUpdateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::DowntimeUpdateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/event.rb b/lib/datadog_api_client/v2/models/event.rb index f70752109da7..453fc4cdfeb1 100644 --- a/lib/datadog_api_client/v2/models/event.rb +++ b/lib/datadog_api_client/v2/models/event.rb @@ -33,6 +33,8 @@ class Event # Event type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Event` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Event`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) name == o.name && source_id == o.source_id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/event_attributes.rb b/lib/datadog_api_client/v2/models/event_attributes.rb index b5a256eb2cce..235cdb2f071e 100644 --- a/lib/datadog_api_client/v2/models/event_attributes.rb +++ b/lib/datadog_api_client/v2/models/event_attributes.rb @@ -84,6 +84,8 @@ class EventAttributes # The event title. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -155,12 +157,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation_key') @@ -244,6 +248,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -269,6 +293,7 @@ def ==(o) tags == o.tags && timestamp == o.timestamp && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/event_response.rb b/lib/datadog_api_client/v2/models/event_response.rb index eefbfb5d7590..6cbca2594979 100644 --- a/lib/datadog_api_client/v2/models/event_response.rb +++ b/lib/datadog_api_client/v2/models/event_response.rb @@ -30,6 +30,8 @@ class EventResponse # Type of the event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/event_response_attributes.rb b/lib/datadog_api_client/v2/models/event_response_attributes.rb index 8f372c7bfceb..3d6d4bae4b11 100644 --- a/lib/datadog_api_client/v2/models/event_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/event_response_attributes.rb @@ -33,6 +33,8 @@ class EventResponseAttributes # The timestamp of the event. attr_accessor :timestamp + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -90,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -100,6 +124,7 @@ def ==(o) message == o.message && tags == o.tags && timestamp == o.timestamp + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_compute.rb b/lib/datadog_api_client/v2/models/events_compute.rb index 90f290960839..353cb789e540 100644 --- a/lib/datadog_api_client/v2/models/events_compute.rb +++ b/lib/datadog_api_client/v2/models/events_compute.rb @@ -30,6 +30,8 @@ class EventsCompute # The "measure" attribute on which to perform the computation. attr_accessor :metric + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -97,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) aggregation == o.aggregation && interval == o.interval && metric == o.metric + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_group_by.rb b/lib/datadog_api_client/v2/models/events_group_by.rb index 8a73eb9108fc..78cc2b35c103 100644 --- a/lib/datadog_api_client/v2/models/events_group_by.rb +++ b/lib/datadog_api_client/v2/models/events_group_by.rb @@ -31,6 +31,8 @@ class EventsGroupBy # The dimension by which to sort a query's results. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -109,6 +113,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) facet == o.facet && limit == o.limit && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_group_by_sort.rb b/lib/datadog_api_client/v2/models/events_group_by_sort.rb index 27f692a5d2a7..b06ef9885a5e 100644 --- a/lib/datadog_api_client/v2/models/events_group_by_sort.rb +++ b/lib/datadog_api_client/v2/models/events_group_by_sort.rb @@ -33,6 +33,8 @@ class EventsGroupBySort # The type of sort to use on the calculated value. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsGroupBySort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsGroupBySort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -106,6 +110,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) metric == o.metric && order == o.order && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_list_request.rb b/lib/datadog_api_client/v2/models/events_list_request.rb index c918cc16a3c7..502ce7decb83 100644 --- a/lib/datadog_api_client/v2/models/events_list_request.rb +++ b/lib/datadog_api_client/v2/models/events_list_request.rb @@ -34,6 +34,8 @@ class EventsListRequest # The sort parameters when querying events. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsListRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsListRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -89,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) options == o.options && page == o.page && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_list_response.rb b/lib/datadog_api_client/v2/models/events_list_response.rb index 1301adcf01fe..1b224cfb510c 100644 --- a/lib/datadog_api_client/v2/models/events_list_response.rb +++ b/lib/datadog_api_client/v2/models/events_list_response.rb @@ -30,6 +30,8 @@ class EventsListResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_list_response_links.rb b/lib/datadog_api_client/v2/models/events_list_response_links.rb index 38c513a93b92..13ff294fabfb 100644 --- a/lib/datadog_api_client/v2/models/events_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/events_list_response_links.rb @@ -25,6 +25,8 @@ class EventsListResponseLinks # POST endpoint. attr_accessor :_next + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsListResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsListResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_next') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && _next == o._next + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_query_filter.rb b/lib/datadog_api_client/v2/models/events_query_filter.rb index 1d6109d01011..46706821726a 100644 --- a/lib/datadog_api_client/v2/models/events_query_filter.rb +++ b/lib/datadog_api_client/v2/models/events_query_filter.rb @@ -30,6 +30,8 @@ class EventsQueryFilter # The maximum time for the requested events. Supports date math and regular timestamps in milliseconds. attr_accessor :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsQueryFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsQueryFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) from == o.from && query == o.query && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_query_options.rb b/lib/datadog_api_client/v2/models/events_query_options.rb index 38722aad4880..d85720ab184f 100644 --- a/lib/datadog_api_client/v2/models/events_query_options.rb +++ b/lib/datadog_api_client/v2/models/events_query_options.rb @@ -28,6 +28,8 @@ class EventsQueryOptions # The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsQueryOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsQueryOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time_offset') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && time_offset == o.time_offset && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_request_page.rb b/lib/datadog_api_client/v2/models/events_request_page.rb index 5a4cf3f49859..1b6f5ad84b39 100644 --- a/lib/datadog_api_client/v2/models/events_request_page.rb +++ b/lib/datadog_api_client/v2/models/events_request_page.rb @@ -27,6 +27,8 @@ class EventsRequestPage # The maximum number of logs in the response. attr_reader :limit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsRequestPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsRequestPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -88,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && cursor == o.cursor && limit == o.limit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_response_metadata.rb b/lib/datadog_api_client/v2/models/events_response_metadata.rb index a97004e85e91..4c007ca0ef8e 100644 --- a/lib/datadog_api_client/v2/models/events_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/events_response_metadata.rb @@ -37,6 +37,8 @@ class EventsResponseMetadata # warnings are present in the response. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'elapsed') @@ -100,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) request_id == o.request_id && status == o.status && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_response_metadata_page.rb b/lib/datadog_api_client/v2/models/events_response_metadata_page.rb index 5726cc4e6990..04df9801e6ab 100644 --- a/lib/datadog_api_client/v2/models/events_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/events_response_metadata_page.rb @@ -25,6 +25,8 @@ class EventsResponseMetadataPage # parameters with the addition of the `page[cursor]`. attr_accessor :after + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsResponseMetadataPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsResponseMetadataPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'after') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && after == o.after + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_scalar_query.rb b/lib/datadog_api_client/v2/models/events_scalar_query.rb index 8c4cf08db421..2888702dd55b 100644 --- a/lib/datadog_api_client/v2/models/events_scalar_query.rb +++ b/lib/datadog_api_client/v2/models/events_scalar_query.rb @@ -39,6 +39,8 @@ class EventsScalarQuery # Configuration of the search/filter for an events query. attr_accessor :search + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsScalarQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsScalarQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -139,6 +143,26 @@ def data_source=(data_source) @data_source = data_source end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -151,6 +175,7 @@ def ==(o) indexes == o.indexes && name == o.name && search == o.search + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_search.rb b/lib/datadog_api_client/v2/models/events_search.rb index a79701f469d3..f1fbaa97ea28 100644 --- a/lib/datadog_api_client/v2/models/events_search.rb +++ b/lib/datadog_api_client/v2/models/events_search.rb @@ -24,6 +24,8 @@ class EventsSearch # The search/filter string for an events query. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsSearch` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsSearch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_timeseries_query.rb b/lib/datadog_api_client/v2/models/events_timeseries_query.rb index 8faf0c13de65..170e84f6ac74 100644 --- a/lib/datadog_api_client/v2/models/events_timeseries_query.rb +++ b/lib/datadog_api_client/v2/models/events_timeseries_query.rb @@ -39,6 +39,8 @@ class EventsTimeseriesQuery # Configuration of the search/filter for an events query. attr_accessor :search + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsTimeseriesQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsTimeseriesQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -139,6 +143,26 @@ def data_source=(data_source) @data_source = data_source end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -151,6 +175,7 @@ def ==(o) indexes == o.indexes && name == o.name && search == o.search + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/events_warning.rb b/lib/datadog_api_client/v2/models/events_warning.rb index 7b2529abadae..3a4f81864029 100644 --- a/lib/datadog_api_client/v2/models/events_warning.rb +++ b/lib/datadog_api_client/v2/models/events_warning.rb @@ -30,6 +30,8 @@ class EventsWarning # A short human-readable summary of the warning. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EventsWarning` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EventsWarning`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) code == o.code && detail == o.detail && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb b/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb index d0f04029c7f6..6f89b3093a6e 100644 --- a/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb @@ -30,6 +30,8 @@ class FastlyAccounResponseAttributes # A list of services belonging to the parent account. attr_accessor :services + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccounResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccounResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -99,6 +103,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) api_key == o.api_key && name == o.name && services == o.services + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_account_create_request.rb b/lib/datadog_api_client/v2/models/fastly_account_create_request.rb index 0bf9995eb7e9..59385202ec09 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_create_request.rb @@ -24,6 +24,8 @@ class FastlyAccountCreateRequest # Data object for creating a Fastly account. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccountCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccountCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb index bc195c0e044c..27f9da67abeb 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb @@ -30,6 +30,8 @@ class FastlyAccountCreateRequestAttributes # A list of services belonging to the parent account. attr_accessor :services + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccountCreateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccountCreateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -110,6 +114,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -119,6 +143,7 @@ def ==(o) api_key == o.api_key && name == o.name && services == o.services + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb b/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb index 55ead266d1f5..8edce0b13053 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb @@ -27,6 +27,8 @@ class FastlyAccountCreateRequestData # The JSON:API type for this API. Should always be `fastly-accounts`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccountCreateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccountCreateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_account_response.rb b/lib/datadog_api_client/v2/models/fastly_account_response.rb index b36ed9ef79f7..ebc6d0bb8866 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_response.rb @@ -24,6 +24,8 @@ class FastlyAccountResponse # Data object of a Fastly account. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccountResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_account_response_data.rb b/lib/datadog_api_client/v2/models/fastly_account_response_data.rb index 6eccf3c0cd13..60e33cb8cca7 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_response_data.rb @@ -30,6 +30,8 @@ class FastlyAccountResponseData # The JSON:API type for this API. Should always be `fastly-accounts`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccountResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccountResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_account_update_request.rb b/lib/datadog_api_client/v2/models/fastly_account_update_request.rb index 471cf44cb423..c6ec1a5b9682 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_update_request.rb @@ -24,6 +24,8 @@ class FastlyAccountUpdateRequest # Data object for updating a Fastly account. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccountUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccountUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb index e13e410f482d..261583b6fc07 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb @@ -27,6 +27,8 @@ class FastlyAccountUpdateRequestAttributes # The FastlyAccountUpdateRequestAttributes name. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccountUpdateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccountUpdateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && api_key == o.api_key && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb b/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb index d13ca39716ee..2f29ab825a33 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb @@ -27,6 +27,8 @@ class FastlyAccountUpdateRequestData # The JSON:API type for this API. Should always be `fastly-accounts`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccountUpdateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccountUpdateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_accounts_response.rb b/lib/datadog_api_client/v2/models/fastly_accounts_response.rb index 9c9f433ad577..fb6021b2aede 100644 --- a/lib/datadog_api_client/v2/models/fastly_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_accounts_response.rb @@ -24,6 +24,8 @@ class FastlyAccountsResponse # The JSON:API data schema. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyAccountsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_service.rb b/lib/datadog_api_client/v2/models/fastly_service.rb index bec035b26026..7fccc9c232dc 100644 --- a/lib/datadog_api_client/v2/models/fastly_service.rb +++ b/lib/datadog_api_client/v2/models/fastly_service.rb @@ -27,6 +27,8 @@ class FastlyService # A list of tags for the Fastly service. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyService` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyService`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -90,6 +94,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && id == o.id && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_service_attributes.rb b/lib/datadog_api_client/v2/models/fastly_service_attributes.rb index 8e99f67c7a1c..187e61437af3 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_attributes.rb @@ -24,6 +24,8 @@ class FastlyServiceAttributes # A list of tags for the Fastly service. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyServiceAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyServiceAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tags') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_service_data.rb b/lib/datadog_api_client/v2/models/fastly_service_data.rb index ee83532b7e69..ea5f931d7748 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_data.rb @@ -30,6 +30,8 @@ class FastlyServiceData # The JSON:API type for this API. Should always be `fastly-services`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyServiceData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyServiceData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_service_request.rb b/lib/datadog_api_client/v2/models/fastly_service_request.rb index d3d65f708c56..fe41a367b87c 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_request.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_request.rb @@ -24,6 +24,8 @@ class FastlyServiceRequest # Data object for Fastly service requests. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyServiceRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyServiceRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_service_response.rb b/lib/datadog_api_client/v2/models/fastly_service_response.rb index 1ac9f583f40d..d5b8be80e55e 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_response.rb @@ -24,6 +24,8 @@ class FastlyServiceResponse # Data object for Fastly service requests. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyServiceResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyServiceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/fastly_services_response.rb b/lib/datadog_api_client/v2/models/fastly_services_response.rb index ebcc7138de4b..4d01ad2f61b8 100644 --- a/lib/datadog_api_client/v2/models/fastly_services_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_services_response.rb @@ -24,6 +24,8 @@ class FastlyServicesResponse # The JSON:API data schema. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FastlyServicesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FastlyServicesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/finding.rb b/lib/datadog_api_client/v2/models/finding.rb index 019bcbf5432f..77a6175518d5 100644 --- a/lib/datadog_api_client/v2/models/finding.rb +++ b/lib/datadog_api_client/v2/models/finding.rb @@ -30,6 +30,8 @@ class Finding # The JSON:API type for findings. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Finding` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Finding`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/finding_attributes.rb b/lib/datadog_api_client/v2/models/finding_attributes.rb index 3b927667ed0c..6b3e38fa137f 100644 --- a/lib/datadog_api_client/v2/models/finding_attributes.rb +++ b/lib/datadog_api_client/v2/models/finding_attributes.rb @@ -48,6 +48,8 @@ class FindingAttributes # The tags associated with this finding. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FindingAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FindingAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'evaluation') @@ -164,6 +168,26 @@ def resource_discovery_date=(resource_discovery_date) @resource_discovery_date = resource_discovery_date end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -179,6 +203,7 @@ def ==(o) rule == o.rule && status == o.status && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/formula_limit.rb b/lib/datadog_api_client/v2/models/formula_limit.rb index fc48f4cb59cd..314b7fc4fda5 100644 --- a/lib/datadog_api_client/v2/models/formula_limit.rb +++ b/lib/datadog_api_client/v2/models/formula_limit.rb @@ -28,6 +28,8 @@ class FormulaLimit # Direction of sort. attr_accessor :order + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FormulaLimit` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FormulaLimit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -89,6 +93,26 @@ def count=(count) @count = count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -97,6 +121,7 @@ def ==(o) self.class == o.class && count == o.count && order == o.order + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/full_api_key.rb b/lib/datadog_api_client/v2/models/full_api_key.rb index 82cd7916d756..cd25da51b863 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -33,6 +33,8 @@ class FullAPIKey # API Keys resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullAPIKey` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FullAPIKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb index 18749932aeeb..c038b2f464d9 100644 --- a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb @@ -42,6 +42,8 @@ class FullAPIKeyAttributes # The remote config read enabled status. attr_accessor :remote_config_read_enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullAPIKeyAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FullAPIKeyAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'category') @@ -137,6 +141,26 @@ def last4=(last4) @last4 = last4 end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -150,6 +174,7 @@ def ==(o) modified_at == o.modified_at && name == o.name && remote_config_read_enabled == o.remote_config_read_enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/full_application_key.rb b/lib/datadog_api_client/v2/models/full_application_key.rb index 72c7898b4e1a..84e4615338f9 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -33,6 +33,8 @@ class FullApplicationKey # Application Keys resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullApplicationKey` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FullApplicationKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/full_application_key_attributes.rb b/lib/datadog_api_client/v2/models/full_application_key_attributes.rb index 75fe7115c611..80ddb5fd6f7d 100644 --- a/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/full_application_key_attributes.rb @@ -36,6 +36,8 @@ class FullApplicationKeyAttributes # Array of scopes to grant the application key. attr_accessor :scopes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -76,12 +78,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullApplicationKeyAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::FullApplicationKeyAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -129,6 +133,26 @@ def last4=(last4) @last4 = last4 end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -140,6 +164,7 @@ def ==(o) last4 == o.last4 && name == o.name && scopes == o.scopes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb b/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb index 3a7977972ba2..424257e0b1f0 100644 --- a/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb +++ b/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb @@ -24,6 +24,8 @@ class GCPServiceAccountMeta # The current list of projects accessible from your service account. attr_accessor :accessible_projects + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPServiceAccountMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPServiceAccountMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'accessible_projects') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && accessible_projects == o.accessible_projects + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb b/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb index 73b8315a19b3..8bca046b99bc 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb @@ -30,6 +30,8 @@ class GCPSTSDelegateAccount # The type of account. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSDelegateAccount` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSDelegateAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb index 0377e8e541ab..899a40e10dd4 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb @@ -24,6 +24,8 @@ class GCPSTSDelegateAccountAttributes # Your organization's Datadog principal email address. attr_accessor :delegate_account_email + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSDelegateAccountAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSDelegateAccountAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'delegate_account_email') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && delegate_account_email == o.delegate_account_email + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb index 28a5fbc0478c..4aec31aaf0a0 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb @@ -24,6 +24,8 @@ class GCPSTSDelegateAccountResponse # Datadog principal service account info. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSDelegateAccountResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSDelegateAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account.rb index 515905bc1c46..16e73902bbf5 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account.rb @@ -33,6 +33,8 @@ class GCPSTSServiceAccount # The type of account. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSServiceAccount` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSServiceAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && meta == o.meta && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb index 0dcbf300f62b..09ff55cf1b27 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb @@ -46,6 +46,8 @@ class GCPSTSServiceAccountAttributes # When enabled, Datadog scans for all resources in your GCP environment. attr_accessor :resource_collection_enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -84,12 +86,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSServiceAccountAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSServiceAccountAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_tags') @@ -131,6 +135,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -145,6 +169,7 @@ def ==(o) is_cspm_enabled == o.is_cspm_enabled && is_security_command_center_enabled == o.is_security_command_center_enabled && resource_collection_enabled == o.resource_collection_enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb index 966d67d411d0..1f33b6c865b4 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb @@ -24,6 +24,8 @@ class GCPSTSServiceAccountCreateRequest # Additional metadata on your generated service account. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb index 288bfbfba17a..614c11d47405 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb @@ -27,6 +27,8 @@ class GCPSTSServiceAccountData # The type of account. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSServiceAccountData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSServiceAccountData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb index c2f268b73f37..cc47a748b5a3 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb @@ -24,6 +24,8 @@ class GCPSTSServiceAccountResponse # Info on your service account. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSServiceAccountResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSServiceAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb index 45881de5b28a..0de8c16e0819 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb @@ -24,6 +24,8 @@ class GCPSTSServiceAccountUpdateRequest # Data on your service account. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb index 6a5a1ca5f325..0738a0111d4f 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb @@ -30,6 +30,8 @@ class GCPSTSServiceAccountUpdateRequestData # The type of account. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb b/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb index 933eb82ca859..ae5771f5ea2e 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb @@ -24,6 +24,8 @@ class GCPSTSServiceAccountsResponse # Array of GCP STS enabled service accounts. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GCPSTSServiceAccountsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GCPSTSServiceAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/get_device_attributes.rb b/lib/datadog_api_client/v2/models/get_device_attributes.rb index 105a2e92128e..a8c273fdc6df 100644 --- a/lib/datadog_api_client/v2/models/get_device_attributes.rb +++ b/lib/datadog_api_client/v2/models/get_device_attributes.rb @@ -78,6 +78,8 @@ class GetDeviceAttributes # The version of the device. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -138,12 +140,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetDeviceAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetDeviceAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -225,6 +229,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -250,6 +274,7 @@ def ==(o) tags == o.tags && vendor == o.vendor && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/get_device_data.rb b/lib/datadog_api_client/v2/models/get_device_data.rb index b92b26c17445..ad2e21a75292 100644 --- a/lib/datadog_api_client/v2/models/get_device_data.rb +++ b/lib/datadog_api_client/v2/models/get_device_data.rb @@ -30,6 +30,8 @@ class GetDeviceData # The type of the resource. The value should always be device. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetDeviceData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetDeviceData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/get_device_response.rb b/lib/datadog_api_client/v2/models/get_device_response.rb index 2daf046cbdb0..aaf23bc83808 100644 --- a/lib/datadog_api_client/v2/models/get_device_response.rb +++ b/lib/datadog_api_client/v2/models/get_device_response.rb @@ -24,6 +24,8 @@ class GetDeviceResponse # Get device response data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetDeviceResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetDeviceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/get_finding_response.rb b/lib/datadog_api_client/v2/models/get_finding_response.rb index 390805a07535..8b562597e9fd 100644 --- a/lib/datadog_api_client/v2/models/get_finding_response.rb +++ b/lib/datadog_api_client/v2/models/get_finding_response.rb @@ -24,6 +24,8 @@ class GetFindingResponse # A single finding with with message and resource configuration. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetFindingResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetFindingResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/get_interfaces_data.rb b/lib/datadog_api_client/v2/models/get_interfaces_data.rb index 2005e76bf6e2..a26bab77a5ab 100644 --- a/lib/datadog_api_client/v2/models/get_interfaces_data.rb +++ b/lib/datadog_api_client/v2/models/get_interfaces_data.rb @@ -30,6 +30,8 @@ class GetInterfacesData # The type of the resource. The value should always be interface. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetInterfacesData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetInterfacesData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/get_interfaces_response.rb b/lib/datadog_api_client/v2/models/get_interfaces_response.rb index 3b3922006298..da84a5806274 100644 --- a/lib/datadog_api_client/v2/models/get_interfaces_response.rb +++ b/lib/datadog_api_client/v2/models/get_interfaces_response.rb @@ -24,6 +24,8 @@ class GetInterfacesResponse # Get Interfaces response attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetInterfacesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetInterfacesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/group_scalar_column.rb b/lib/datadog_api_client/v2/models/group_scalar_column.rb index 212696bf2cd9..3624e9eeb44b 100644 --- a/lib/datadog_api_client/v2/models/group_scalar_column.rb +++ b/lib/datadog_api_client/v2/models/group_scalar_column.rb @@ -30,6 +30,8 @@ class GroupScalarColumn # The array of tag values for each group found for the results of the formulas or queries. attr_accessor :values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GroupScalarColumn` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GroupScalarColumn`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) name == o.name && type == o.type && values == o.values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/hourly_usage.rb b/lib/datadog_api_client/v2/models/hourly_usage.rb index 76640b710264..71e7fcbfffce 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage.rb @@ -30,6 +30,8 @@ class HourlyUsage # Type of usage data. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HourlyUsage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HourlyUsage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb b/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb index f2562cf9c9c5..9b49bc0c1c85 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb @@ -45,6 +45,8 @@ class HourlyUsageAttributes # Datetime in ISO-8601 format, UTC. The hour for the usage. attr_accessor :timestamp + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HourlyUsageAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HourlyUsageAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_name') @@ -126,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -140,6 +164,7 @@ def ==(o) public_id == o.public_id && region == o.region && timestamp == o.timestamp + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb b/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb index 389c97e4c9b7..d3e5dc0f596c 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb @@ -27,6 +27,8 @@ class HourlyUsageMeasurement # Contains the number measured for the given usage_type during the hour. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HourlyUsageMeasurement` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HourlyUsageMeasurement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'usage_type') @@ -78,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) self.class == o.class && usage_type == o.usage_type && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb b/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb index e26da44dbcf9..e602e13e6e1c 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb @@ -24,6 +24,8 @@ class HourlyUsageMetadata # The metadata for the current pagination. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HourlyUsageMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HourlyUsageMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb b/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb index 1f24d6b1aa69..883089974a2d 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb @@ -24,6 +24,8 @@ class HourlyUsagePagination # The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`. attr_accessor :next_record_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HourlyUsagePagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HourlyUsagePagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'next_record_id') @@ -69,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -76,6 +100,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && next_record_id == o.next_record_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/hourly_usage_response.rb b/lib/datadog_api_client/v2/models/hourly_usage_response.rb index 93bdb843eef2..84dbc1412fb5 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_response.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_response.rb @@ -27,6 +27,8 @@ class HourlyUsageResponse # The object containing document metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HourlyUsageResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HourlyUsageResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/http_log_error.rb b/lib/datadog_api_client/v2/models/http_log_error.rb index 60c073ddf9b2..b165533579fd 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -30,6 +30,8 @@ class HTTPLogError # Error title. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPLogError` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HTTPLogError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'detail') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) detail == o.detail && status == o.status && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/http_log_errors.rb b/lib/datadog_api_client/v2/models/http_log_errors.rb index 8d23b8e8f15d..a47d709b0ac8 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -24,6 +24,8 @@ class HTTPLogErrors # Structured errors. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPLogErrors` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HTTPLogErrors`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'errors') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/httpci_app_error.rb b/lib/datadog_api_client/v2/models/httpci_app_error.rb index b96ab8da3d99..d5ee23375685 100644 --- a/lib/datadog_api_client/v2/models/httpci_app_error.rb +++ b/lib/datadog_api_client/v2/models/httpci_app_error.rb @@ -30,6 +30,8 @@ class HTTPCIAppError # Error title. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPCIAppError` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HTTPCIAppError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'detail') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) detail == o.detail && status == o.status && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/httpci_app_errors.rb b/lib/datadog_api_client/v2/models/httpci_app_errors.rb index 20c2d5046db1..db313b56ffde 100644 --- a/lib/datadog_api_client/v2/models/httpci_app_errors.rb +++ b/lib/datadog_api_client/v2/models/httpci_app_errors.rb @@ -24,6 +24,8 @@ class HTTPCIAppErrors # Structured errors. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPCIAppErrors` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::HTTPCIAppErrors`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'errors') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb b/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb index 94c5ebe79833..2766275a9a88 100644 --- a/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb +++ b/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb @@ -24,6 +24,8 @@ class IdPMetadataFormData # The IdP metadata XML file attr_accessor :idp_file + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IdPMetadataFormData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IdPMetadataFormData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'idp_file') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && idp_file == o.idp_file + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachment_data.rb b/lib/datadog_api_client/v2/models/incident_attachment_data.rb index 7c163346757d..771dbae9acea 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_data.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_data.rb @@ -33,6 +33,8 @@ class IncidentAttachmentData # The incident attachment resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -139,6 +143,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -149,6 +173,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb index 8e5793131856..b69df29b0d86 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb @@ -30,6 +30,8 @@ class IncidentAttachmentLinkAttributes # Timestamp when the incident attachment link was last modified. attr_accessor :modified + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentLinkAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentLinkAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attachment') @@ -108,6 +112,26 @@ def attachment_type=(attachment_type) @attachment_type = attachment_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attachment == o.attachment && attachment_type == o.attachment_type && modified == o.modified + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb index 12398f521b50..e3acd333f349 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb @@ -27,6 +27,8 @@ class IncidentAttachmentLinkAttributesAttachmentObject # The title of this link attachment. attr_reader :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentLinkAttributesAttachmentObject` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentLinkAttributesAttachmentObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'document_url') @@ -99,6 +103,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && document_url == o.document_url && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb b/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb index a79298fde4a0..a1f980470c0b 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb @@ -27,6 +27,8 @@ class IncidentAttachmentPostmortemAttributes # The type of postmortem attachment attributes. attr_reader :attachment_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentPostmortemAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentPostmortemAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attachment') @@ -99,6 +103,26 @@ def attachment_type=(attachment_type) @attachment_type = attachment_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attachment == o.attachment && attachment_type == o.attachment_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb b/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb index bc67b954ef50..7a6bb9614987 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb @@ -24,6 +24,8 @@ class IncidentAttachmentRelationships # Relationship to user. attr_accessor :last_modified_by_user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'last_modified_by_user') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && last_modified_by_user == o.last_modified_by_user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb b/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb index c64083f01ab0..1b77406e790e 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb @@ -30,6 +30,8 @@ class IncidentAttachmentUpdateData # The incident attachment resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb b/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb index cfbeee4d3602..5311d24a8578 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb @@ -27,6 +27,8 @@ class IncidentAttachmentUpdateRequest # indicates that you want to update that attachment. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -51,12 +53,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -84,6 +88,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -91,6 +115,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb b/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb index 5490e4c05ead..406fdad425af 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb @@ -28,6 +28,8 @@ class IncidentAttachmentUpdateResponse # Included related resources that the user requested. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentUpdateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentUpdateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -93,6 +97,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -101,6 +125,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb b/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb index bd5ed22fcaab..979d5b96ac05 100644 --- a/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +++ b/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb @@ -27,6 +27,8 @@ class IncidentAttachmentsPostmortemAttributesAttachmentObject # The title of this postmortem attachment. attr_reader :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentsPostmortemAttributesAttachmentObject` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentsPostmortemAttributesAttachmentObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'document_url') @@ -99,6 +103,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && document_url == o.document_url && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_attachments_response.rb b/lib/datadog_api_client/v2/models/incident_attachments_response.rb index 20896dadc324..10998f76eeda 100644 --- a/lib/datadog_api_client/v2/models/incident_attachments_response.rb +++ b/lib/datadog_api_client/v2/models/incident_attachments_response.rb @@ -27,6 +27,8 @@ class IncidentAttachmentsResponse # Included related resources that the user requested. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentAttachmentsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -92,6 +96,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -100,6 +124,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_create_attributes.rb index f3442d39fe05..a71b9c580151 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -39,6 +39,8 @@ class IncidentCreateAttributes # The title of the incident, which summarizes what happened. attr_reader :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'customer_impact_scope') @@ -139,6 +143,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -151,6 +175,7 @@ def ==(o) initial_cells == o.initial_cells && notification_handles == o.notification_handles && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_create_data.rb b/lib/datadog_api_client/v2/models/incident_create_data.rb index fc5108f107f4..b87d3daa9934 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -30,6 +30,8 @@ class IncidentCreateData # Incident resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_create_relationships.rb b/lib/datadog_api_client/v2/models/incident_create_relationships.rb index b4309ca7ea48..4c85d45026f0 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -24,6 +24,8 @@ class IncidentCreateRelationships # Relationship to user. attr_accessor :commander_user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentCreateRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'commander_user') @@ -69,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -76,6 +100,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && commander_user == o.commander_user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_create_request.rb b/lib/datadog_api_client/v2/models/incident_create_request.rb index 690220718685..412402ae85af 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -24,6 +24,8 @@ class IncidentCreateRequest # Incident data for a create request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb index 2f9ed992fe83..328eb8fe7c35 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb @@ -27,6 +27,8 @@ class IncidentFieldAttributesMultipleValue # The multiple values selected for this field. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentFieldAttributesMultipleValue` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentFieldAttributesMultipleValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -80,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) self.class == o.class && type == o.type && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb index 3b4a463a0ee6..c1229870cbbd 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb @@ -27,6 +27,8 @@ class IncidentFieldAttributesSingleValue # The single value selected for this field. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentFieldAttributesSingleValue` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentFieldAttributesSingleValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'type') @@ -78,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) self.class == o.class && type == o.type && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb index 93d7b578b291..ed48d8fb95b4 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb @@ -42,6 +42,8 @@ class IncidentIntegrationMetadataAttributes # 4 indicates manually updated; 5 indicates failed. attr_reader :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -76,12 +78,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationMetadataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationMetadataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created') @@ -153,6 +157,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -165,6 +189,7 @@ def ==(o) metadata == o.metadata && modified == o.modified && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb index 99b3f58345e2..c7b308bd7838 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb @@ -27,6 +27,8 @@ class IncidentIntegrationMetadataCreateData # Integration metadata resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationMetadataCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationMetadataCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb index f6b81ba725a8..a1d9837bacf3 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb @@ -24,6 +24,8 @@ class IncidentIntegrationMetadataCreateRequest # Incident integration metadata data for a create request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationMetadataCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationMetadataCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb index 19ea46be2931..b1c8ee6647f7 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb @@ -30,6 +30,8 @@ class IncidentIntegrationMetadataListResponse # The metadata object containing pagination metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationMetadataListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationMetadataListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -101,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb index 6c1ce9f8a4a9..0ded517d8eed 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb @@ -27,6 +27,8 @@ class IncidentIntegrationMetadataPatchData # Integration metadata resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationMetadataPatchData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationMetadataPatchData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb index 154c76c5105e..3275537cbdfb 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb @@ -24,6 +24,8 @@ class IncidentIntegrationMetadataPatchRequest # Incident integration metadata data for a patch request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationMetadataPatchRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationMetadataPatchRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb index 394125f9851a..c139ab14c439 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb @@ -27,6 +27,8 @@ class IncidentIntegrationMetadataResponse # Included related resources that the user requested. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationMetadataResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationMetadataResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -90,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb index 8968712e924d..dcdf2d5a8891 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb @@ -33,6 +33,8 @@ class IncidentIntegrationMetadataResponseData # Integration metadata resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationMetadataResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationMetadataResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_integration_relationships.rb b/lib/datadog_api_client/v2/models/incident_integration_relationships.rb index 15d655999c06..fed14643480b 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_relationships.rb @@ -27,6 +27,8 @@ class IncidentIntegrationRelationships # Relationship to user. attr_accessor :last_modified_by_user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_by_user') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && created_by_user == o.created_by_user && last_modified_by_user == o.last_modified_by_user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb b/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb index bdb8df48667b..150c7d603b7f 100644 --- a/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb +++ b/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb @@ -27,6 +27,8 @@ class IncidentNonDatadogCreator # Non Datadog creator name. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentNonDatadogCreator` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentNonDatadogCreator`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'image_48_px') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && image_48_px == o.image_48_px && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_notification_handle.rb b/lib/datadog_api_client/v2/models/incident_notification_handle.rb index fc1f71f54544..f0cffab69227 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -27,6 +27,8 @@ class IncidentNotificationHandle # The email address used for the notification. attr_accessor :handle + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentNotificationHandle` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentNotificationHandle`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'display_name') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && display_name == o.display_name && handle == o.handle + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index d9f3d5d0b08b..7ebcf26be734 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -27,6 +27,8 @@ class IncidentResponse # Included related resources that the user requested. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -90,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_response_attributes.rb index 6ee8b82a365f..d4d9ceb9f3af 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -92,6 +92,8 @@ class IncidentResponseAttributes # The incident visibility status. attr_accessor :visibility + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -178,12 +180,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'archived') @@ -299,6 +303,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -328,6 +352,7 @@ def ==(o) time_to_resolve == o.time_to_resolve && title == o.title && visibility == o.visibility + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_response_data.rb b/lib/datadog_api_client/v2/models/incident_response_data.rb index 6205c83ac5bf..23af292694fc 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -33,6 +33,8 @@ class IncidentResponseData # Incident resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_response_meta.rb b/lib/datadog_api_client/v2/models/incident_response_meta.rb index e4382591d732..72dd4566e8f3 100644 --- a/lib/datadog_api_client/v2/models/incident_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_response_meta.rb @@ -24,6 +24,8 @@ class IncidentResponseMeta # Pagination properties. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb index e83456315e82..8b7e724c629e 100644 --- a/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb @@ -30,6 +30,8 @@ class IncidentResponseMetaPagination # Maximum size of pages to return. attr_accessor :size + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseMetaPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentResponseMetaPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'next_offset') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) next_offset == o.next_offset && offset == o.offset && size == o.size + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_response_relationships.rb b/lib/datadog_api_client/v2/models/incident_response_relationships.rb index bacf0f49954d..7d4d920a5af5 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -45,6 +45,8 @@ class IncidentResponseRelationships # Relationship to incident user defined fields. attr_accessor :user_defined_fields + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -91,12 +93,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentResponseRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attachments') @@ -132,6 +136,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -146,6 +170,7 @@ def ==(o) last_modified_by_user == o.last_modified_by_user && responders == o.responders && user_defined_fields == o.user_defined_fields + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response.rb b/lib/datadog_api_client/v2/models/incident_search_response.rb index 5e24fc6dbe21..efc1ec9b2fca 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response.rb @@ -30,6 +30,8 @@ class IncidentSearchResponse # The metadata object containing pagination metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -99,6 +103,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb index a83e303ba399..382ecf1f92f7 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb @@ -30,6 +30,8 @@ class IncidentSearchResponseAttributes # Number of incidents returned by the search. attr_reader :total + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facets') @@ -125,6 +129,26 @@ def total=(total) @total = total end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -134,6 +158,7 @@ def ==(o) facets == o.facets && incidents == o.incidents && total == o.total + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_data.rb index 7da38d9a2ea8..05c78f03dbb7 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_data.rb @@ -27,6 +27,8 @@ class IncidentSearchResponseData # Incident search result type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb index e162eaf7db40..73f1711b52c0 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb @@ -54,6 +54,8 @@ class IncidentSearchResponseFacetsData # Facet data for incident time to resolve metrics. attr_accessor :time_to_resolve + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseFacetsData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseFacetsData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'commander') @@ -173,6 +177,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -190,6 +214,7 @@ def ==(o) state == o.state && time_to_repair == o.time_to_repair && time_to_resolve == o.time_to_resolve + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb index 47d9b0cc4cc6..2d5c4c327932 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb @@ -27,6 +27,8 @@ class IncidentSearchResponseFieldFacetData # The facet value appearing in search results. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseFieldFacetData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseFieldFacetData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -88,6 +92,26 @@ def count=(count) @count = count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && count == o.count && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb index f6c5fb75536c..033ecd274814 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb @@ -24,6 +24,8 @@ class IncidentSearchResponseIncidentsData # Incident data from a response. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseIncidentsData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseIncidentsData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_meta.rb b/lib/datadog_api_client/v2/models/incident_search_response_meta.rb index f082bf2af713..b6be7dd00f93 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_meta.rb @@ -24,6 +24,8 @@ class IncidentSearchResponseMeta # Pagination properties. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb index f459938cf182..b6dc9dec7376 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb @@ -27,6 +27,8 @@ class IncidentSearchResponseNumericFacetData # Name of the incident property field. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseNumericFacetData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseNumericFacetData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregates') @@ -99,6 +103,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && aggregates == o.aggregates && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb index 8471d8aa71b2..cbb63e344266 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb @@ -27,6 +27,8 @@ class IncidentSearchResponseNumericFacetDataAggregates # Minimum value of the numeric aggregates. attr_accessor :min + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -62,12 +64,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseNumericFacetDataAggregates` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseNumericFacetDataAggregates`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'max') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -87,6 +111,7 @@ def ==(o) self.class == o.class && max == o.max && min == o.min + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb index 46053385715e..88b2be4562e4 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb @@ -30,6 +30,8 @@ class IncidentSearchResponsePropertyFieldFacetData # Name of the incident property field. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponsePropertyFieldFacetData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponsePropertyFieldFacetData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregates') @@ -110,6 +114,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -119,6 +143,7 @@ def ==(o) aggregates == o.aggregates && facets == o.facets && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb index de6c58d022de..4a99ee5856c0 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb @@ -36,6 +36,8 @@ class IncidentSearchResponseUserFacetData # ID of the user. attr_accessor :uuid + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentSearchResponseUserFacetData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentSearchResponseUserFacetData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count') @@ -115,6 +119,26 @@ def count=(count) @count = count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -126,6 +150,7 @@ def ==(o) handle == o.handle && name == o.name && uuid == o.uuid + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb index b2ae7d90ebab..f99c18020114 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb @@ -24,6 +24,8 @@ class IncidentServiceCreateAttributes # Name of the incident service. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -79,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_create_data.rb b/lib/datadog_api_client/v2/models/incident_service_create_data.rb index 1d60e906be22..f16977fc1be3 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_data.rb @@ -30,6 +30,8 @@ class IncidentServiceCreateData # Incident service resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_create_request.rb b/lib/datadog_api_client/v2/models/incident_service_create_request.rb index fe13c67c0e4c..b7b063e01bd0 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_request.rb @@ -24,6 +24,8 @@ class IncidentServiceCreateRequest # Incident Service payload for create requests. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_relationships.rb b/lib/datadog_api_client/v2/models/incident_service_relationships.rb index 4e084154ff59..f4b2e60e9b43 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -27,6 +27,8 @@ class IncidentServiceRelationships # Relationship to user. attr_accessor :last_modified_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_by') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && created_by == o.created_by && last_modified_by == o.last_modified_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_response.rb b/lib/datadog_api_client/v2/models/incident_service_response.rb index efb44e25c8c3..03645c4306b1 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -27,6 +27,8 @@ class IncidentServiceResponse # Included objects from relationships. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -90,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb index 34b6a154fe04..a9779cce538c 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb @@ -30,6 +30,8 @@ class IncidentServiceResponseAttributes # Name of the incident service. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) created == o.created && modified == o.modified && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_response_data.rb b/lib/datadog_api_client/v2/models/incident_service_response_data.rb index 852ba20d87ca..5d525d32b7c3 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response_data.rb @@ -33,6 +33,8 @@ class IncidentServiceResponseData # Incident service resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb index dcdb4fda7d7b..868d2a468c09 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb @@ -24,6 +24,8 @@ class IncidentServiceUpdateAttributes # Name of the incident service. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -79,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_update_data.rb b/lib/datadog_api_client/v2/models/incident_service_update_data.rb index 721cdd3d0a27..87c5a3d70eba 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_data.rb @@ -33,6 +33,8 @@ class IncidentServiceUpdateData # Incident service resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -106,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_service_update_request.rb b/lib/datadog_api_client/v2/models/incident_service_update_request.rb index 1a23dc39b704..7923f4a46823 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_request.rb @@ -24,6 +24,8 @@ class IncidentServiceUpdateRequest # Incident Service payload for update requests. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServiceUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_services_response.rb b/lib/datadog_api_client/v2/models/incident_services_response.rb index 3c465312fc7c..2c8f3b530a08 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -30,6 +30,8 @@ class IncidentServicesResponse # The metadata object containing pagination metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServicesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentServicesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -101,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb index a01fcfc210b4..ceedc7d328a6 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb @@ -24,6 +24,8 @@ class IncidentTeamCreateAttributes # Name of the incident team. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -79,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_create_data.rb b/lib/datadog_api_client/v2/models/incident_team_create_data.rb index 2bd522ef84a7..c3b812e7e206 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_data.rb @@ -30,6 +30,8 @@ class IncidentTeamCreateData # Incident Team resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_create_request.rb b/lib/datadog_api_client/v2/models/incident_team_create_request.rb index 750c675a5368..535d7a64f437 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_request.rb @@ -24,6 +24,8 @@ class IncidentTeamCreateRequest # Incident Team data for a create request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_relationships.rb b/lib/datadog_api_client/v2/models/incident_team_relationships.rb index 722a3115c8d0..b94c2da84db3 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -27,6 +27,8 @@ class IncidentTeamRelationships # Relationship to user. attr_accessor :last_modified_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_by') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && created_by == o.created_by && last_modified_by == o.last_modified_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_response.rb b/lib/datadog_api_client/v2/models/incident_team_response.rb index e0d45158e742..58b9b81f1507 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -27,6 +27,8 @@ class IncidentTeamResponse # Included objects from relationships. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -90,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb index aaa910613117..606514e7f361 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb @@ -30,6 +30,8 @@ class IncidentTeamResponseAttributes # Name of the incident team. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) created == o.created && modified == o.modified && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_response_data.rb b/lib/datadog_api_client/v2/models/incident_team_response_data.rb index 8ab2ab34bef1..1c015649bfde 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response_data.rb @@ -33,6 +33,8 @@ class IncidentTeamResponseData # Incident Team resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb index 72e8a49051af..268926f7b094 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb @@ -24,6 +24,8 @@ class IncidentTeamUpdateAttributes # Name of the incident team. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -79,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_update_data.rb b/lib/datadog_api_client/v2/models/incident_team_update_data.rb index a72a83a12ba1..435c5a3a3a2b 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_data.rb @@ -33,6 +33,8 @@ class IncidentTeamUpdateData # Incident Team resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -106,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_team_update_request.rb b/lib/datadog_api_client/v2/models/incident_team_update_request.rb index 202de3fe57a8..00ef374c6d76 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_request.rb @@ -24,6 +24,8 @@ class IncidentTeamUpdateRequest # Incident Team data for an update request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_teams_response.rb b/lib/datadog_api_client/v2/models/incident_teams_response.rb index cb593061139d..13c027ffcb96 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -30,6 +30,8 @@ class IncidentTeamsResponse # The metadata object containing pagination metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -101,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb index 000e1052068f..a1af65674a46 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb @@ -30,6 +30,8 @@ class IncidentTimelineCellMarkdownCreateAttributes # A flag indicating whether the timeline cell is important and should be highlighted. attr_accessor :important + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cell_type') @@ -108,6 +112,26 @@ def content=(content) @content = content end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) cell_type == o.cell_type && content == o.content && important == o.important + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb index 44b0704274d5..0ea3f4045133 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb @@ -24,6 +24,8 @@ class IncidentTimelineCellMarkdownCreateAttributesContent # The Markdown content of the cell. attr_accessor :content + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributesContent` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributesContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'content') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && content == o.content + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb b/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb index 20426825b2a3..abbaab0f9d9b 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb @@ -33,6 +33,8 @@ class IncidentTodoAnonymousAssignee # The source of the anonymous assignee. attr_reader :source + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoAnonymousAssignee` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoAnonymousAssignee`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'icon') @@ -139,6 +143,26 @@ def source=(source) @source = source end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -149,6 +173,7 @@ def ==(o) id == o.id && name == o.name && source == o.source + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_attributes.rb b/lib/datadog_api_client/v2/models/incident_todo_attributes.rb index bcb1ecef0a50..e822c67892b8 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_attributes.rb @@ -42,6 +42,8 @@ class IncidentTodoAttributes # Timestamp when the incident todo was last modified. attr_accessor :modified + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -87,12 +89,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'assignees') @@ -155,6 +159,26 @@ def content=(content) @content = content end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,6 +192,7 @@ def ==(o) due_date == o.due_date && incident_id == o.incident_id && modified == o.modified + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_create_data.rb b/lib/datadog_api_client/v2/models/incident_todo_create_data.rb index ccd333f1e4fc..31883a848c28 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_create_data.rb @@ -27,6 +27,8 @@ class IncidentTodoCreateData # Todo resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_create_request.rb b/lib/datadog_api_client/v2/models/incident_todo_create_request.rb index 436b431025d9..b1c36148ab77 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_create_request.rb @@ -24,6 +24,8 @@ class IncidentTodoCreateRequest # Incident todo data for a create request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_list_response.rb b/lib/datadog_api_client/v2/models/incident_todo_list_response.rb index 9ec6732ff1a2..e7746e4baf3e 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_list_response.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_list_response.rb @@ -30,6 +30,8 @@ class IncidentTodoListResponse # The metadata object containing pagination metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -101,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb b/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb index 91cea8ec373a..16697eb7ac7b 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb @@ -27,6 +27,8 @@ class IncidentTodoPatchData # Todo resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoPatchData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoPatchData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb b/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb index d551df3b1ab1..01844afcd706 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb @@ -24,6 +24,8 @@ class IncidentTodoPatchRequest # Incident todo data for a patch request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoPatchRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoPatchRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_relationships.rb b/lib/datadog_api_client/v2/models/incident_todo_relationships.rb index 1be7c81d52b4..cd84592387d1 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_relationships.rb @@ -27,6 +27,8 @@ class IncidentTodoRelationships # Relationship to user. attr_accessor :last_modified_by_user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_by_user') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && created_by_user == o.created_by_user && last_modified_by_user == o.last_modified_by_user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_response.rb b/lib/datadog_api_client/v2/models/incident_todo_response.rb index 3e474add6696..d65091af9a8b 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_response.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_response.rb @@ -27,6 +27,8 @@ class IncidentTodoResponse # Included related resources that the user requested. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -90,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_todo_response_data.rb b/lib/datadog_api_client/v2/models/incident_todo_response_data.rb index 4441f8655ead..38b94f5b9d73 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_response_data.rb @@ -33,6 +33,8 @@ class IncidentTodoResponseData # Todo resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_update_attributes.rb index 2e931c1e4b59..512ae5d94e1d 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -45,6 +45,8 @@ class IncidentUpdateAttributes # The title of the incident, which summarizes what happened. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'customer_impact_end') @@ -136,6 +140,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -150,6 +174,7 @@ def ==(o) fields == o.fields && notification_handles == o.notification_handles && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_update_data.rb b/lib/datadog_api_client/v2/models/incident_update_data.rb index 27258b01795f..c87b3da847d2 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -33,6 +33,8 @@ class IncidentUpdateData # Incident resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_update_relationships.rb b/lib/datadog_api_client/v2/models/incident_update_relationships.rb index 7f5d1b7b2da0..e787b83ce937 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -30,6 +30,8 @@ class IncidentUpdateRelationships # A relationship reference for postmortems. attr_accessor :postmortem + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -66,12 +68,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentUpdateRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'commander_user') @@ -87,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) commander_user == o.commander_user && integrations == o.integrations && postmortem == o.postmortem + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incident_update_request.rb b/lib/datadog_api_client/v2/models/incident_update_request.rb index db5167713bff..e8ff7c3c89d8 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -24,6 +24,8 @@ class IncidentUpdateRequest # Incident data for an update request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index 88c917c129ff..9e7d5fe83755 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -30,6 +30,8 @@ class IncidentsResponse # The metadata object containing pagination metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -101,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/intake_payload_accepted.rb b/lib/datadog_api_client/v2/models/intake_payload_accepted.rb index 574b838dbb8a..62f964664f1f 100644 --- a/lib/datadog_api_client/v2/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v2/models/intake_payload_accepted.rb @@ -24,6 +24,8 @@ class IntakePayloadAccepted # A list of errors. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IntakePayloadAccepted` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IntakePayloadAccepted`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'errors') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/interface_attributes.rb b/lib/datadog_api_client/v2/models/interface_attributes.rb index ea4ff5aef34b..fab7b299e0f4 100644 --- a/lib/datadog_api_client/v2/models/interface_attributes.rb +++ b/lib/datadog_api_client/v2/models/interface_attributes.rb @@ -39,6 +39,8 @@ class InterfaceAttributes # The interface status attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::InterfaceAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::InterfaceAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_alias') @@ -106,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) mac_address == o.mac_address && name == o.name && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb b/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb index fd251596ca41..0c3aa6f29c16 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb @@ -27,6 +27,8 @@ class IPAllowlistAttributes # Array of entries in the IP allowlist. attr_accessor :entries + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IPAllowlistAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IPAllowlistAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enabled') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && enabled == o.enabled && entries == o.entries + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_data.rb b/lib/datadog_api_client/v2/models/ip_allowlist_data.rb index abf821f1cddf..a80a7924bc07 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_data.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_data.rb @@ -30,6 +30,8 @@ class IPAllowlistData # IP allowlist type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IPAllowlistData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IPAllowlistData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb b/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb index 4e4ae287984e..d21f92889ed6 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb @@ -24,6 +24,8 @@ class IPAllowlistEntry # Data of the IP allowlist entry object. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IPAllowlistEntry` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IPAllowlistEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb b/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb index 33f54b3ebf2c..e9b02fe99151 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb @@ -33,6 +33,8 @@ class IPAllowlistEntryAttributes # A note describing the IP allowlist entry. attr_accessor :note + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IPAllowlistEntryAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IPAllowlistEntryAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cidr_block') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) created_at == o.created_at && modified_at == o.modified_at && note == o.note + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb b/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb index 9ca60617c456..e4d2e66ff17d 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb @@ -30,6 +30,8 @@ class IPAllowlistEntryData # IP allowlist Entry type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IPAllowlistEntryData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IPAllowlistEntryData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_response.rb b/lib/datadog_api_client/v2/models/ip_allowlist_response.rb index d40a70014e17..7de1c61d5896 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_response.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_response.rb @@ -24,6 +24,8 @@ class IPAllowlistResponse # IP allowlist data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IPAllowlistResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IPAllowlistResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb b/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb index 20d2e3e4a0c6..a608f7090f05 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb @@ -24,6 +24,8 @@ class IPAllowlistUpdateRequest # IP allowlist data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IPAllowlistUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IPAllowlistUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/jira_integration_metadata.rb b/lib/datadog_api_client/v2/models/jira_integration_metadata.rb index 0418da9cd97e..88e802588c37 100644 --- a/lib/datadog_api_client/v2/models/jira_integration_metadata.rb +++ b/lib/datadog_api_client/v2/models/jira_integration_metadata.rb @@ -24,6 +24,8 @@ class JiraIntegrationMetadata # Array of Jira issues in this integration metadata. attr_reader :issues + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::JiraIntegrationMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::JiraIntegrationMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'issues') @@ -81,6 +85,26 @@ def issues=(issues) @issues = issues end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && issues == o.issues + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb b/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb index 80224dadfee6..d5510a211185 100644 --- a/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb +++ b/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb @@ -36,6 +36,8 @@ class JiraIntegrationMetadataIssuesItem # URL redirecting to the Jira issue. attr_accessor :redirect_url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::JiraIntegrationMetadataIssuesItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::JiraIntegrationMetadataIssuesItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account') @@ -126,6 +130,26 @@ def project_key=(project_key) @project_key = project_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -137,6 +161,7 @@ def ==(o) issuetype_id == o.issuetype_id && project_key == o.project_key && redirect_url == o.redirect_url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/jira_issue.rb b/lib/datadog_api_client/v2/models/jira_issue.rb index 6c16cb6a3f3e..5e0cc247580c 100644 --- a/lib/datadog_api_client/v2/models/jira_issue.rb +++ b/lib/datadog_api_client/v2/models/jira_issue.rb @@ -27,6 +27,8 @@ class JiraIssue # Case status attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::JiraIssue` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::JiraIssue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'result') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && result == o.result && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/jira_issue_result.rb b/lib/datadog_api_client/v2/models/jira_issue_result.rb index ef3a1c245a86..839def28f592 100644 --- a/lib/datadog_api_client/v2/models/jira_issue_result.rb +++ b/lib/datadog_api_client/v2/models/jira_issue_result.rb @@ -33,6 +33,8 @@ class JiraIssueResult # Jira project key attr_accessor :project_key + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::JiraIssueResult` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::JiraIssueResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'issue_id') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) issue_key == o.issue_key && issue_url == o.issue_url && project_key == o.project_key + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/jsonapi_error_item.rb b/lib/datadog_api_client/v2/models/jsonapi_error_item.rb index cb7ca55fc158..20986088d5c3 100644 --- a/lib/datadog_api_client/v2/models/jsonapi_error_item.rb +++ b/lib/datadog_api_client/v2/models/jsonapi_error_item.rb @@ -30,6 +30,8 @@ class JSONAPIErrorItem # Short human-readable summary of the error. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::JSONAPIErrorItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::JSONAPIErrorItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'detail') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) detail == o.detail && status == o.status && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/jsonapi_error_response.rb b/lib/datadog_api_client/v2/models/jsonapi_error_response.rb index 4b3a651ecbc2..6e9651aa97b0 100644 --- a/lib/datadog_api_client/v2/models/jsonapi_error_response.rb +++ b/lib/datadog_api_client/v2/models/jsonapi_error_response.rb @@ -24,6 +24,8 @@ class JSONAPIErrorResponse # A list of errors. attr_reader :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::JSONAPIErrorResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::JSONAPIErrorResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'errors') @@ -81,6 +85,26 @@ def errors=(errors) @errors = errors end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/leaked_key.rb b/lib/datadog_api_client/v2/models/leaked_key.rb index 248ccf6260b9..9461782c78a1 100644 --- a/lib/datadog_api_client/v2/models/leaked_key.rb +++ b/lib/datadog_api_client/v2/models/leaked_key.rb @@ -30,6 +30,8 @@ class LeakedKey # The definition of LeakedKeyType object. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LeakedKey` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LeakedKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/leaked_key_attributes.rb b/lib/datadog_api_client/v2/models/leaked_key_attributes.rb index b612249e47a9..4cb28da03ac5 100644 --- a/lib/datadog_api_client/v2/models/leaked_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/leaked_key_attributes.rb @@ -27,6 +27,8 @@ class LeakedKeyAttributes # The LeakedKeyAttributes leak_source. attr_accessor :leak_source + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LeakedKeyAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LeakedKeyAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'date') @@ -88,6 +92,26 @@ def date=(date) @date = date end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && date == o.date && leak_source == o.leak_source + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_apis_response.rb b/lib/datadog_api_client/v2/models/list_apis_response.rb index c00f1b5d3f07..b321e777fbce 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response.rb @@ -27,6 +27,8 @@ class ListAPIsResponse # Metadata for `ListAPIsResponse`. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListAPIsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListAPIsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_apis_response_data.rb b/lib/datadog_api_client/v2/models/list_apis_response_data.rb index 9c0af8174418..a8d3d3f2d92a 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_data.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_data.rb @@ -27,6 +27,8 @@ class ListAPIsResponseData # API identifier. attr_accessor :id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListAPIsResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListAPIsResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && id == o.id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb b/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb index e65c6e5535d8..24499d2a8c56 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb @@ -24,6 +24,8 @@ class ListAPIsResponseDataAttributes # API name. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListAPIsResponseDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListAPIsResponseDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_apis_response_meta.rb b/lib/datadog_api_client/v2/models/list_apis_response_meta.rb index 4cde7cdffcec..9e4e2ad4f660 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_meta.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_meta.rb @@ -24,6 +24,8 @@ class ListAPIsResponseMeta # Pagination metadata information for `ListAPIsResponse`. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListAPIsResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListAPIsResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb index ee426b185dd4..6181153e921e 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb @@ -30,6 +30,8 @@ class ListAPIsResponseMetaPagination # Total number of items. attr_accessor :total_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListAPIsResponseMetaPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListAPIsResponseMetaPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'limit') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) limit == o.limit && offset == o.offset && total_count == o.total_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_application_keys_response.rb b/lib/datadog_api_client/v2/models/list_application_keys_response.rb index 93ba597c01a6..77acf50ece87 100644 --- a/lib/datadog_api_client/v2/models/list_application_keys_response.rb +++ b/lib/datadog_api_client/v2/models/list_application_keys_response.rb @@ -30,6 +30,8 @@ class ListApplicationKeysResponse # Additional information related to the application key response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListApplicationKeysResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListApplicationKeysResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -83,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -92,6 +116,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_devices_response.rb b/lib/datadog_api_client/v2/models/list_devices_response.rb index 58882e518fee..23bf93313ea3 100644 --- a/lib/datadog_api_client/v2/models/list_devices_response.rb +++ b/lib/datadog_api_client/v2/models/list_devices_response.rb @@ -27,6 +27,8 @@ class ListDevicesResponse # Object describing meta attributes of response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListDevicesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListDevicesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb b/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb index 33679714fc02..fd0e2a20a7e4 100644 --- a/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb @@ -24,6 +24,8 @@ class ListDevicesResponseMetadata # Pagination object. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListDevicesResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListDevicesResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb b/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb index ad2bd9f6e150..5cf903fe637b 100644 --- a/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb @@ -24,6 +24,8 @@ class ListDevicesResponseMetadataPage # Total count of devices matched by the filter. attr_accessor :total_filtered_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListDevicesResponseMetadataPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListDevicesResponseMetadataPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_filtered_count') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && total_filtered_count == o.total_filtered_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_downtimes_response.rb b/lib/datadog_api_client/v2/models/list_downtimes_response.rb index b3f0093d66b5..4349eaa91620 100644 --- a/lib/datadog_api_client/v2/models/list_downtimes_response.rb +++ b/lib/datadog_api_client/v2/models/list_downtimes_response.rb @@ -30,6 +30,8 @@ class ListDowntimesResponse # Pagination metadata returned by the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListDowntimesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListDowntimesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -83,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -92,6 +116,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_findings_response.rb b/lib/datadog_api_client/v2/models/list_findings_response.rb index 6633cb21bb67..d2831565e361 100644 --- a/lib/datadog_api_client/v2/models/list_findings_response.rb +++ b/lib/datadog_api_client/v2/models/list_findings_response.rb @@ -27,6 +27,8 @@ class ListFindingsResponse # Metadata for pagination. attr_reader :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListFindingsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListFindingsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -101,6 +105,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -109,6 +133,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_powerpacks_response.rb b/lib/datadog_api_client/v2/models/list_powerpacks_response.rb index 0fc32fd07cad..0a7b578017eb 100644 --- a/lib/datadog_api_client/v2/models/list_powerpacks_response.rb +++ b/lib/datadog_api_client/v2/models/list_powerpacks_response.rb @@ -33,6 +33,8 @@ class ListPowerpacksResponse # Powerpack response metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListPowerpacksResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListPowerpacksResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -92,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -102,6 +126,7 @@ def ==(o) included == o.included && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_rules_response.rb b/lib/datadog_api_client/v2/models/list_rules_response.rb index 8598044525ec..444146cea09c 100644 --- a/lib/datadog_api_client/v2/models/list_rules_response.rb +++ b/lib/datadog_api_client/v2/models/list_rules_response.rb @@ -27,6 +27,8 @@ class ListRulesResponse # Links attributes. attr_accessor :links + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListRulesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListRulesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && links == o.links + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb b/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb index 3733d74c6898..3246b75c6ae0 100644 --- a/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb +++ b/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb @@ -33,6 +33,8 @@ class ListRulesResponseDataItem # The JSON:API type for scorecard rules. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListRulesResponseDataItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListRulesResponseDataItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_rules_response_links.rb b/lib/datadog_api_client/v2/models/list_rules_response_links.rb index 3ad6a82e9455..0da42eb2fc50 100644 --- a/lib/datadog_api_client/v2/models/list_rules_response_links.rb +++ b/lib/datadog_api_client/v2/models/list_rules_response_links.rb @@ -24,6 +24,8 @@ class ListRulesResponseLinks # Link for the next set of rules. attr_accessor :_next + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListRulesResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListRulesResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_next') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && _next == o._next + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_tags_response.rb b/lib/datadog_api_client/v2/models/list_tags_response.rb index 2dc016fdf672..165b8c929bb1 100644 --- a/lib/datadog_api_client/v2/models/list_tags_response.rb +++ b/lib/datadog_api_client/v2/models/list_tags_response.rb @@ -24,6 +24,8 @@ class ListTagsResponse # The list tags response data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListTagsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListTagsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_tags_response_data.rb b/lib/datadog_api_client/v2/models/list_tags_response_data.rb index 3fe4b09bdb71..5f51b443b2b4 100644 --- a/lib/datadog_api_client/v2/models/list_tags_response_data.rb +++ b/lib/datadog_api_client/v2/models/list_tags_response_data.rb @@ -30,6 +30,8 @@ class ListTagsResponseData # The type of the resource. The value should always be tags. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListTagsResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListTagsResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb b/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb index 1c97fe9851d2..2b8ff8d8999f 100644 --- a/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb @@ -24,6 +24,8 @@ class ListTagsResponseDataAttributes # The list of tags attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListTagsResponseDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListTagsResponseDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tags') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index 96e3e1de623e..3e7741e47a26 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -30,6 +30,8 @@ class Log # Type of the event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Log` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Log`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index 992ebf164caa..0ead271f7344 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -46,6 +46,8 @@ class LogAttributes # Timestamp of your log. attr_accessor :timestamp + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -82,12 +84,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -121,6 +125,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -134,6 +158,7 @@ def ==(o) status == o.status && tags == o.tags && timestamp == o.timestamp + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb index e9bcc60c1079..ed3f673acc30 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -27,6 +27,8 @@ class LogsAggregateBucket # A map of the metric name -> value for regular compute or list of values for a timeseries attr_accessor :computes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateBucket` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsAggregateBucket`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'by') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && by == o.by && computes == o.computes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb index c76c9b34a89d..ac6a355ab90d 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb @@ -27,6 +27,8 @@ class LogsAggregateBucketValueTimeseriesPoint # The value for this point attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateBucketValueTimeseriesPoint` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsAggregateBucketValueTimeseriesPoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && time == o.time && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb index 07c214d00953..fbda2b8ea95a 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -37,6 +37,8 @@ class LogsAggregateRequest # Paging settings attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsAggregateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -102,6 +106,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -113,6 +137,7 @@ def ==(o) group_by == o.group_by && options == o.options && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb b/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb index ec08449b13b2..466c5e7fe6dc 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb @@ -24,6 +24,8 @@ class LogsAggregateRequestPage # The returned paging point to use to get the next results. Note: at most 1000 results can be paged. attr_accessor :cursor + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateRequestPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsAggregateRequestPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && cursor == o.cursor + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb index 7b18be28c598..f3f473842866 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -27,6 +27,8 @@ class LogsAggregateResponse # The metadata associated with a request attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsAggregateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb index 4b63f0a5186a..c134501e76bf 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb @@ -24,6 +24,8 @@ class LogsAggregateResponseData # The list of matching buckets, one item per bucket attr_accessor :buckets + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsAggregateResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'buckets') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && buckets == o.buckets + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb index 4ec03bf432a8..28d993d807e2 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -33,6 +33,8 @@ class LogsAggregateSort # The type of sorting algorithm attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateSort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsAggregateSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) metric == o.metric && order == o.order && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index 5837d191d4ef..e90c25eb8395 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -24,6 +24,8 @@ class LogsArchive # The definition of an archive. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchive` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchive`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb index 1713a1fc7fec..7f926792fa8a 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -43,6 +43,8 @@ class LogsArchiveAttributes # The state of the archive. attr_accessor :state + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'destination') @@ -156,6 +160,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -169,6 +193,7 @@ def ==(o) rehydration_max_scan_size_in_gb == o.rehydration_max_scan_size_in_gb && rehydration_tags == o.rehydration_tags && state == o.state + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request.rb index d83b5794eb94..7593255530dc 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request.rb @@ -24,6 +24,8 @@ class LogsArchiveCreateRequest # The definition of an archive. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb index 164124b5ba3f..4bc705f1fbc0 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb @@ -40,6 +40,8 @@ class LogsArchiveCreateRequestAttributes # An array of tags to add to rehydrated logs from an archive. attr_accessor :rehydration_tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -82,12 +84,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveCreateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveCreateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'destination') @@ -157,6 +161,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -169,6 +193,7 @@ def ==(o) query == o.query && rehydration_max_scan_size_in_gb == o.rehydration_max_scan_size_in_gb && rehydration_tags == o.rehydration_tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb index 555b6ab5b369..20f3a0d27a9b 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb @@ -27,6 +27,8 @@ class LogsArchiveCreateRequestDefinition # The type of the resource. The value should always be archives. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveCreateRequestDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveCreateRequestDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_definition.rb index 5440b53d7374..7d6711460c78 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -30,6 +30,8 @@ class LogsArchiveDefinition # The type of the resource. The value should always be archives. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb index d05ef42ed89e..ef38e7dfe4ea 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb @@ -39,6 +39,8 @@ class LogsArchiveDestinationAzure # Type of the Azure archive destination. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationAzure` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveDestinationAzure`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'container') @@ -157,6 +161,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -169,6 +193,7 @@ def ==(o) region == o.region && storage_account == o.storage_account && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb index 2041de968476..4703ef0fe9fa 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb @@ -33,6 +33,8 @@ class LogsArchiveDestinationGCS # Type of the GCS archive destination. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationGCS` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveDestinationGCS`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'bucket') @@ -128,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) integration == o.integration && path == o.path && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb index a32297d5f9a3..3da43b725834 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb @@ -33,6 +33,8 @@ class LogsArchiveDestinationS3 # Type of the S3 archive destination. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationS3` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveDestinationS3`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'bucket') @@ -128,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) integration == o.integration && path == o.path && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb index da65f728925b..7aaa1c2229d5 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb @@ -27,6 +27,8 @@ class LogsArchiveIntegrationAzure # A tenant ID. attr_reader :tenant_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveIntegrationAzure` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveIntegrationAzure`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'client_id') @@ -99,6 +103,26 @@ def tenant_id=(tenant_id) @tenant_id = tenant_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && client_id == o.client_id && tenant_id == o.tenant_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb index fa8c2dca040d..bb570892796c 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb @@ -27,6 +27,8 @@ class LogsArchiveIntegrationGCS # A project ID. attr_accessor :project_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveIntegrationGCS` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveIntegrationGCS`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'client_email') @@ -88,6 +92,26 @@ def client_email=(client_email) @client_email = client_email end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && client_email == o.client_email && project_id == o.project_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb index 2c3f3246a08b..dc805933788d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb @@ -27,6 +27,8 @@ class LogsArchiveIntegrationS3 # The path of the integration. attr_reader :role_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveIntegrationS3` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveIntegrationS3`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_id') @@ -99,6 +103,26 @@ def role_name=(role_name) @role_name = role_name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && account_id == o.account_id && role_name == o.role_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_order.rb b/lib/datadog_api_client/v2/models/logs_archive_order.rb index 34c3f306363b..2eb86fe1382d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -24,6 +24,8 @@ class LogsArchiveOrder # The definition of an archive order. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveOrder` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveOrder`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb index 76f6b1638ab3..d6d8ef6c88be 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb @@ -25,6 +25,8 @@ class LogsArchiveOrderAttributes # define the overall archives order for Datadog. attr_reader :archive_ids + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveOrderAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveOrderAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'archive_ids') @@ -82,6 +86,26 @@ def archive_ids=(archive_ids) @archive_ids = archive_ids end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -89,6 +113,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && archive_ids == o.archive_ids + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb index b2b16a187511..e29f4edce297 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb @@ -27,6 +27,8 @@ class LogsArchiveOrderDefinition # Type of the archive order definition. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveOrderDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchiveOrderDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index f0c063dcf382..3a317a1384b5 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -24,6 +24,8 @@ class LogsArchives # A list of archives. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchives` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsArchives`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index f40742e5dddf..ea4413635cc9 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -34,6 +34,8 @@ class LogsCompute # The type of compute attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -107,6 +111,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) interval == o.interval && metric == o.metric && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_group_by.rb b/lib/datadog_api_client/v2/models/logs_group_by.rb index d71b02d4b34e..47532cf0ee8c 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -41,6 +41,8 @@ class LogsGroupBy # A resulting object to put the given computes in over all the matching records. attr_accessor :total + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -75,12 +77,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -126,6 +130,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) missing == o.missing && sort == o.sort && total == o.total + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb b/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb index bea69e7f6c94..42f10dadb9f2 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb @@ -33,6 +33,8 @@ class LogsGroupByHistogram # (values smaller than this one are filtered out) attr_reader :min + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsGroupByHistogram` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsGroupByHistogram`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'interval') @@ -122,6 +126,26 @@ def min=(min) @min = min end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -131,6 +155,7 @@ def ==(o) interval == o.interval && max == o.max && min == o.min + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_list_request.rb b/lib/datadog_api_client/v2/models/logs_list_request.rb index bd2c31f6d19b..d4d25125a353 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -34,6 +34,8 @@ class LogsListRequest # Sort parameters when querying logs. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsListRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -89,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) options == o.options && page == o.page && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_list_request_page.rb b/lib/datadog_api_client/v2/models/logs_list_request_page.rb index 445c9e68a294..f96c6646ec54 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request_page.rb @@ -27,6 +27,8 @@ class LogsListRequestPage # Maximum number of logs in the response. attr_reader :limit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListRequestPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsListRequestPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -88,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && cursor == o.cursor && limit == o.limit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_list_response.rb b/lib/datadog_api_client/v2/models/logs_list_response.rb index b257feb8e822..396fde6e6065 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -30,6 +30,8 @@ class LogsListResponse # The metadata associated with a request attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_list_response_links.rb b/lib/datadog_api_client/v2/models/logs_list_response_links.rb index 803d74f2310b..89426a558899 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response_links.rb @@ -25,6 +25,8 @@ class LogsListResponseLinks # POST endpoint. attr_accessor :_next + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsListResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_next') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && _next == o._next + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_compute.rb index e2ee8e59e85f..b67c04bc25a5 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -31,6 +31,8 @@ class LogsMetricCompute # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation_type') @@ -98,6 +102,26 @@ def aggregation_type=(aggregation_type) @aggregation_type = aggregation_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) aggregation_type == o.aggregation_type && include_percentiles == o.include_percentiles && path == o.path + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb index cf4ee35ff9a2..7068321a7eb8 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb @@ -30,6 +30,8 @@ class LogsMetricCreateAttributes # The rules for the group by. attr_accessor :group_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -99,6 +103,26 @@ def compute=(compute) @compute = compute end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) compute == o.compute && filter == o.filter && group_by == o.group_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_data.rb b/lib/datadog_api_client/v2/models/logs_metric_create_data.rb index fd501837a5f8..9e48db58c5df 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_data.rb @@ -30,6 +30,8 @@ class LogsMetricCreateData # The type of the resource. The value should always be logs_metrics. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_request.rb b/lib/datadog_api_client/v2/models/logs_metric_create_request.rb index b27680affdae..6fccdd1b530a 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_request.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_request.rb @@ -24,6 +24,8 @@ class LogsMetricCreateRequest # The new log-based metric properties. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_filter.rb b/lib/datadog_api_client/v2/models/logs_metric_filter.rb index fd38ecf14bee..88c624061a68 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -24,6 +24,8 @@ class LogsMetricFilter # The search query - following the log search syntax. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_group_by.rb b/lib/datadog_api_client/v2/models/logs_metric_group_by.rb index 877a3963e525..372e1963049d 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_group_by.rb @@ -27,6 +27,8 @@ class LogsMetricGroupBy # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. attr_accessor :tag_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'path') @@ -88,6 +92,26 @@ def path=(path) @path = path end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && path == o.path && tag_name == o.tag_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_response.rb b/lib/datadog_api_client/v2/models/logs_metric_response.rb index 8c530f5d5fed..f3b8450460a6 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -24,6 +24,8 @@ class LogsMetricResponse # The log-based metric properties. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb index 55b5fe9a4d6b..54c7fe792326 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb @@ -30,6 +30,8 @@ class LogsMetricResponseAttributes # The rules for the group by. attr_accessor :group_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) compute == o.compute && filter == o.filter && group_by == o.group_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb index ffe4e45dd1c8..b43708c7cc2f 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb @@ -31,6 +31,8 @@ class LogsMetricResponseCompute # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricResponseCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation_type') @@ -80,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -89,6 +113,7 @@ def ==(o) aggregation_type == o.aggregation_type && include_percentiles == o.include_percentiles && path == o.path + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_data.rb b/lib/datadog_api_client/v2/models/logs_metric_response_data.rb index d4bf8adef71d..d8d948183f7e 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_data.rb @@ -30,6 +30,8 @@ class LogsMetricResponseData # The type of the resource. The value should always be logs_metrics. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb b/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb index 45b94ced8f50..74eeb71d1aea 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb @@ -24,6 +24,8 @@ class LogsMetricResponseFilter # The search query - following the log search syntax. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricResponseFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb b/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb index 2dc7b15c8b48..36480a12701f 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb @@ -27,6 +27,8 @@ class LogsMetricResponseGroupBy # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. attr_accessor :tag_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricResponseGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'path') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && path == o.path && tag_name == o.tag_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb index e9d32f0249c3..9f6c7df29c60 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb @@ -30,6 +30,8 @@ class LogsMetricUpdateAttributes # The rules for the group by. attr_accessor :group_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) compute == o.compute && filter == o.filter && group_by == o.group_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb index 65b39b37a686..47042092173b 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb @@ -25,6 +25,8 @@ class LogsMetricUpdateCompute # Only present when the `aggregation_type` is `distribution`. attr_accessor :include_percentiles + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricUpdateCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'include_percentiles') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && include_percentiles == o.include_percentiles + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_data.rb b/lib/datadog_api_client/v2/models/logs_metric_update_data.rb index 1886cc9a7f23..8691f115a47c 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_data.rb @@ -27,6 +27,8 @@ class LogsMetricUpdateData # The type of the resource. The value should always be logs_metrics. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_request.rb b/lib/datadog_api_client/v2/models/logs_metric_update_request.rb index a2d4980f93f9..2ec0ee5d18f6 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_request.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_request.rb @@ -24,6 +24,8 @@ class LogsMetricUpdateRequest # The new log-based metric properties. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_metrics_response.rb b/lib/datadog_api_client/v2/models/logs_metrics_response.rb index 8b261898ef69..7bb1f58fd83e 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -24,6 +24,8 @@ class LogsMetricsResponse # A list of log-based metric objects. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsMetricsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_query_filter.rb b/lib/datadog_api_client/v2/models/logs_query_filter.rb index 57d2de8c36f7..206fe3982fe1 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -36,6 +36,8 @@ class LogsQueryFilter # The maximum time for the requested logs, supports date math and regular timestamps (milliseconds). attr_accessor :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsQueryFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsQueryFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -99,6 +103,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) query == o.query && storage_tier == o.storage_tier && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_query_options.rb b/lib/datadog_api_client/v2/models/logs_query_options.rb index 83a43b7f8fd7..31ea1a71e673 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -28,6 +28,8 @@ class LogsQueryOptions # The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsQueryOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsQueryOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time_offset') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && time_offset == o.time_offset && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_response_metadata.rb b/lib/datadog_api_client/v2/models/logs_response_metadata.rb index 78139eb13435..47bddc2b7224 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -37,6 +37,8 @@ class LogsResponseMetadata # warnings are present in the response. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'elapsed') @@ -100,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) request_id == o.request_id && status == o.status && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb b/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb index b274d0dcb972..3eaf3a778d51 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb @@ -25,6 +25,8 @@ class LogsResponseMetadataPage # parameters with the addition of the `page[cursor]`. attr_accessor :after + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsResponseMetadataPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsResponseMetadataPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'after') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && after == o.after + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index 2614927ba05e..9293533c7f6f 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -30,6 +30,8 @@ class LogsWarning # A short human-readable summary of the warning attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsWarning` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::LogsWarning`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) code == o.code && detail == o.detail && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index 1c87171b2cb6..2603080317c5 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -27,6 +27,8 @@ class Metric # The metric resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Metric` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Metric`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_all_tags.rb b/lib/datadog_api_client/v2/models/metric_all_tags.rb index cd9d13cddfad..cea3b2611bbd 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -30,6 +30,8 @@ class MetricAllTags # The metric resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAllTags` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAllTags`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb b/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb index 22dfbfffbe55..9e5f7824c115 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb @@ -24,6 +24,8 @@ class MetricAllTagsAttributes # List of indexed tag value pairs. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAllTagsAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAllTagsAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tags') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_all_tags_response.rb b/lib/datadog_api_client/v2/models/metric_all_tags_response.rb index 045859d314be..b0bf6f70c583 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags_response.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags_response.rb @@ -24,6 +24,8 @@ class MetricAllTagsResponse # Object for a single metric's indexed tags. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAllTagsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAllTagsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb index 0eb28a9488a0..ebbc04f67b82 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb @@ -24,6 +24,8 @@ class MetricAssetAttributes # Title of the asset. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'title') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb index b539f5158cd2..77b445c39024 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb @@ -27,6 +27,8 @@ class MetricAssetDashboardRelationship # Dashboard resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetDashboardRelationship` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetDashboardRelationship`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb index 92e26b3dcc69..b95048faef74 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb @@ -24,6 +24,8 @@ class MetricAssetDashboardRelationships # A list of dashboards that can be referenced in the `included` data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetDashboardRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetDashboardRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb index 59f097644860..e4f59668f390 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb @@ -27,6 +27,8 @@ class MetricAssetMonitorRelationship # Monitor resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetMonitorRelationship` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetMonitorRelationship`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb index b0da7dbf05a9..df0a5baa95d5 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb @@ -24,6 +24,8 @@ class MetricAssetMonitorRelationships # A list of monitors that can be referenced in the `included` data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetMonitorRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetMonitorRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb index 1919245ccbed..2860f78c97a9 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb @@ -27,6 +27,8 @@ class MetricAssetNotebookRelationship # Notebook resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetNotebookRelationship` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetNotebookRelationship`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb index 551b8e58d85b..59ceadff7d4b 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb @@ -24,6 +24,8 @@ class MetricAssetNotebookRelationships # A list of notebooks that can be referenced in the `included` data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetNotebookRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetNotebookRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_response_data.rb b/lib/datadog_api_client/v2/models/metric_asset_response_data.rb index 72aab0bed719..9f2e48a3e72b 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_response_data.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_response_data.rb @@ -30,6 +30,8 @@ class MetricAssetResponseData # The metric resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb index 633408480416..cc98efa329d7 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb @@ -33,6 +33,8 @@ class MetricAssetResponseRelationships # An object containing a list of SLOs that can be referenced in the `included` data. attr_accessor :slos + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetResponseRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetResponseRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dashboards') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) monitors == o.monitors && notebooks == o.notebooks && slos == o.slos + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb index 24fd495f37c6..0f12bd4fc772 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb @@ -27,6 +27,8 @@ class MetricAssetSLORelationship # SLO resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetSLORelationship` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetSLORelationship`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb index b01407460b0d..088778500e4b 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb @@ -24,6 +24,8 @@ class MetricAssetSLORelationships # A list of SLOs that can be referenced in the `included` data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetSLORelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetSLORelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_assets_response.rb b/lib/datadog_api_client/v2/models/metric_assets_response.rb index feb3719d457a..197eee8c11e5 100644 --- a/lib/datadog_api_client/v2/models/metric_assets_response.rb +++ b/lib/datadog_api_client/v2/models/metric_assets_response.rb @@ -27,6 +27,8 @@ class MetricAssetsResponse # Array of objects related to the metric assets. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAssetsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricAssetsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb index 8125036969a2..065e3857a781 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb @@ -30,6 +30,8 @@ class MetricBulkTagConfigCreate # The metric bulk configure tags resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricBulkTagConfigCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricBulkTagConfigCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb index f73b0921b06f..dd87cace3cd0 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb @@ -32,6 +32,8 @@ class MetricBulkTagConfigCreateAttributes # A list of tag names to apply to the configuration. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -60,12 +62,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricBulkTagConfigCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricBulkTagConfigCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'emails') @@ -85,6 +89,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -94,6 +118,7 @@ def ==(o) emails == o.emails && exclude_tags_mode == o.exclude_tags_mode && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb index 5170432d4cbb..68fbdb5d9937 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb @@ -24,6 +24,8 @@ class MetricBulkTagConfigCreateRequest # Request object to bulk configure tags for metrics matching the given prefix. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricBulkTagConfigCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricBulkTagConfigCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb index 90c7e379a448..06844b0f3f90 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb @@ -30,6 +30,8 @@ class MetricBulkTagConfigDelete # The metric bulk configure tags resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricBulkTagConfigDelete` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricBulkTagConfigDelete`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb index c512df7e6625..c57429754b3b 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb @@ -24,6 +24,8 @@ class MetricBulkTagConfigDeleteAttributes # A list of account emails to notify when the configuration is applied. attr_accessor :emails + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricBulkTagConfigDeleteAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricBulkTagConfigDeleteAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'emails') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && emails == o.emails + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb index 93e43b39aaff..727a0ffa138f 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb @@ -24,6 +24,8 @@ class MetricBulkTagConfigDeleteRequest # Request object to bulk delete all tag configurations for metrics matching the given prefix. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricBulkTagConfigDeleteRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricBulkTagConfigDeleteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb index eee737bfeed5..4d9d06d338f4 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb @@ -25,6 +25,8 @@ class MetricBulkTagConfigResponse # It contains the fields from the original request for reference. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricBulkTagConfigResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricBulkTagConfigResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb index 11d8ec5ef220..be008570a176 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb @@ -31,6 +31,8 @@ class MetricBulkTagConfigStatus # The metric bulk configure tags resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricBulkTagConfigStatus` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricBulkTagConfigStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -109,6 +113,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb index fd3407211fbe..e5627a997666 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb @@ -34,6 +34,8 @@ class MetricBulkTagConfigStatusAttributes # A list of tag names to apply to the configuration. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricBulkTagConfigStatusAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricBulkTagConfigStatusAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'emails') @@ -93,6 +97,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -103,6 +127,7 @@ def ==(o) exclude_tags_mode == o.exclude_tags_mode && status == o.status && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb index b05827edf81c..b504661b5398 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -27,6 +27,8 @@ class MetricCustomAggregation # A time aggregation for use in query. attr_reader :time + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricCustomAggregation` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricCustomAggregation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'space') @@ -99,6 +103,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && space == o.space && time == o.time + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb b/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb index 76f47b6133e7..a3abcde1c3df 100644 --- a/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb @@ -30,6 +30,8 @@ class MetricDashboardAsset # Dashboard resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricDashboardAsset` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricDashboardAsset`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb b/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb index 916ec3208441..066e0f4fab80 100644 --- a/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb @@ -27,6 +27,8 @@ class MetricDashboardAttributes # Title of the asset. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricDashboardAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricDashboardAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'popularity') @@ -92,6 +96,26 @@ def popularity=(popularity) @popularity = popularity end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -100,6 +124,7 @@ def ==(o) self.class == o.class && popularity == o.popularity && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb index f92c1aa24366..7c2988a491e6 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -30,6 +30,8 @@ class MetricDistinctVolume # The metric distinct volume type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricDistinctVolume` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricDistinctVolume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb index 0484fa7df344..da1f3622cb6c 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb @@ -24,6 +24,8 @@ class MetricDistinctVolumeAttributes # Distinct volume for the given metric. attr_accessor :distinct_volume + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricDistinctVolumeAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricDistinctVolumeAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'distinct_volume') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && distinct_volume == o.distinct_volume + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_estimate.rb b/lib/datadog_api_client/v2/models/metric_estimate.rb index 845c2ba306ba..6fd4365cfb6a 100644 --- a/lib/datadog_api_client/v2/models/metric_estimate.rb +++ b/lib/datadog_api_client/v2/models/metric_estimate.rb @@ -30,6 +30,8 @@ class MetricEstimate # The metric estimate resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricEstimate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricEstimate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb b/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb index 0cf466629563..1b014794beb0 100644 --- a/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb @@ -30,6 +30,8 @@ class MetricEstimateAttributes # Estimated cardinality of the metric based on the queried configuration. attr_accessor :estimated_output_series + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricEstimateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricEstimateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'estimate_type') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) estimate_type == o.estimate_type && estimated_at == o.estimated_at && estimated_output_series == o.estimated_output_series + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_estimate_response.rb b/lib/datadog_api_client/v2/models/metric_estimate_response.rb index badc3e9eaeef..48a3b5cf0c79 100644 --- a/lib/datadog_api_client/v2/models/metric_estimate_response.rb +++ b/lib/datadog_api_client/v2/models/metric_estimate_response.rb @@ -24,6 +24,8 @@ class MetricEstimateResponse # Object for a metric cardinality estimate. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricEstimateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricEstimateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb index f0f857abca5d..11441c2fad1d 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb @@ -30,6 +30,8 @@ class MetricIngestedIndexedVolume # The metric ingested and indexed volume type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricIngestedIndexedVolume` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricIngestedIndexedVolume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb index 324fd174f926..5746d66c8d32 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb @@ -27,6 +27,8 @@ class MetricIngestedIndexedVolumeAttributes # Ingested volume for the given metric. attr_accessor :ingested_volume + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricIngestedIndexedVolumeAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricIngestedIndexedVolumeAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'indexed_volume') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && indexed_volume == o.indexed_volume && ingested_volume == o.ingested_volume + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_metadata.rb b/lib/datadog_api_client/v2/models/metric_metadata.rb index 138d6e37b560..d441501f4745 100644 --- a/lib/datadog_api_client/v2/models/metric_metadata.rb +++ b/lib/datadog_api_client/v2/models/metric_metadata.rb @@ -24,6 +24,8 @@ class MetricMetadata # Metric origin information. attr_accessor :origin + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'origin') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && origin == o.origin + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb index a768ae1c7269..27af1af69127 100644 --- a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb @@ -30,6 +30,8 @@ class MetricMonitorAsset # Monitor resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricMonitorAsset` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricMonitorAsset`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb index bb8086b11d45..cdc6c4c17668 100644 --- a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb @@ -30,6 +30,8 @@ class MetricNotebookAsset # Notebook resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricNotebookAsset` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricNotebookAsset`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_origin.rb b/lib/datadog_api_client/v2/models/metric_origin.rb index ef222851ec74..74ed1facea51 100644 --- a/lib/datadog_api_client/v2/models/metric_origin.rb +++ b/lib/datadog_api_client/v2/models/metric_origin.rb @@ -30,6 +30,8 @@ class MetricOrigin # The origin service code attr_reader :service + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricOrigin` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricOrigin`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'metric_type') @@ -119,6 +123,26 @@ def service=(service) @service = service end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) metric_type == o.metric_type && product == o.product && service == o.service + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_payload.rb b/lib/datadog_api_client/v2/models/metric_payload.rb index 1d327af00593..9f726ab051aa 100644 --- a/lib/datadog_api_client/v2/models/metric_payload.rb +++ b/lib/datadog_api_client/v2/models/metric_payload.rb @@ -24,6 +24,8 @@ class MetricPayload # A list of timeseries to submit to Datadog. attr_reader :series + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricPayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'series') @@ -81,6 +85,26 @@ def series=(series) @series = series end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && series == o.series + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_point.rb b/lib/datadog_api_client/v2/models/metric_point.rb index 34521aa24e47..28bf2d9de1d3 100644 --- a/lib/datadog_api_client/v2/models/metric_point.rb +++ b/lib/datadog_api_client/v2/models/metric_point.rb @@ -28,6 +28,8 @@ class MetricPoint # The numeric value format should be a 64bit float gauge-type value. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricPoint` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricPoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'timestamp') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && timestamp == o.timestamp && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_resource.rb b/lib/datadog_api_client/v2/models/metric_resource.rb index ce7aba3669a0..7d2435bc0e76 100644 --- a/lib/datadog_api_client/v2/models/metric_resource.rb +++ b/lib/datadog_api_client/v2/models/metric_resource.rb @@ -27,6 +27,8 @@ class MetricResource # The type of the resource. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricResource` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricResource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_series.rb b/lib/datadog_api_client/v2/models/metric_series.rb index 90029d9f06ba..3ac88a526c53 100644 --- a/lib/datadog_api_client/v2/models/metric_series.rb +++ b/lib/datadog_api_client/v2/models/metric_series.rb @@ -49,6 +49,8 @@ class MetricSeries # The unit of point value. attr_accessor :unit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -89,12 +91,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricSeries` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricSeries`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'interval') @@ -169,6 +173,26 @@ def points=(points) @points = points end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -184,6 +208,7 @@ def ==(o) tags == o.tags && type == o.type && unit == o.unit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_slo_asset.rb b/lib/datadog_api_client/v2/models/metric_slo_asset.rb index a333b49b523e..617c223ff578 100644 --- a/lib/datadog_api_client/v2/models/metric_slo_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_slo_asset.rb @@ -30,6 +30,8 @@ class MetricSLOAsset # SLO resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricSLOAsset` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricSLOAsset`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb index 7fa7fcbb2025..54db2a0c41e1 100644 --- a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb +++ b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb @@ -30,6 +30,8 @@ class MetricSuggestedTagsAndAggregations # The metric actively queried configuration resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricSuggestedTagsAndAggregations` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricSuggestedTagsAndAggregations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb index b68d1462b71b..98571d229250 100644 --- a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb +++ b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb @@ -24,6 +24,8 @@ class MetricSuggestedTagsAndAggregationsResponse # Object for a single metric's actively queried tags and aggregations. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricSuggestedTagsAndAggregationsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricSuggestedTagsAndAggregationsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb b/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb index d5d66616bd1d..bd0f9c27a944 100644 --- a/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb @@ -27,6 +27,8 @@ class MetricSuggestedTagsAttributes # List of tag keys that have been actively queried. attr_accessor :active_tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricSuggestedTagsAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricSuggestedTagsAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'active_aggregations') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -82,6 +106,7 @@ def ==(o) self.class == o.class && active_aggregations == o.active_aggregations && active_tags == o.active_tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb index 66c93aed9fca..cff18367f3c8 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -30,6 +30,8 @@ class MetricTagConfiguration # The metric tag configuration resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfiguration` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricTagConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb index 9140dfde475a..59154b0d5973 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb @@ -60,6 +60,8 @@ class MetricTagConfigurationAttributes # List of tag keys on which to group. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -96,12 +98,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricTagConfigurationAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregations') @@ -137,6 +141,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -150,6 +174,7 @@ def ==(o) metric_type == o.metric_type && modified_at == o.modified_at && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb index 6271ea0ca74b..eee27d56415d 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb @@ -54,6 +54,8 @@ class MetricTagConfigurationCreateAttributes # A list of tag keys that will be queryable for your metric. attr_reader :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -86,12 +88,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricTagConfigurationCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregations') @@ -148,6 +152,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -159,6 +183,7 @@ def ==(o) include_percentiles == o.include_percentiles && metric_type == o.metric_type && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb index b7d49bfbe1d3..2ffc94fff8e7 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb @@ -30,6 +30,8 @@ class MetricTagConfigurationCreateData # The metric tag configuration resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricTagConfigurationCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb index cde5cbb8330a..aaae38173e18 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb @@ -24,6 +24,8 @@ class MetricTagConfigurationCreateRequest # Object for a single metric to be configure tags on. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricTagConfigurationCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb index 8737fad2c35f..686b0b6701b8 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb @@ -24,6 +24,8 @@ class MetricTagConfigurationResponse # Object for a single metric tag configuration. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricTagConfigurationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb index 1e634ce3b1b1..09a40ecbce0f 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb @@ -51,6 +51,8 @@ class MetricTagConfigurationUpdateAttributes # A list of tag keys that will be queryable for your metric. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -81,12 +83,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricTagConfigurationUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregations') @@ -110,6 +114,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -120,6 +144,7 @@ def ==(o) exclude_tags_mode == o.exclude_tags_mode && include_percentiles == o.include_percentiles && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb index 36907296000e..08aacf00095d 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb @@ -30,6 +30,8 @@ class MetricTagConfigurationUpdateData # The metric tag configuration resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricTagConfigurationUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb index 83149a1ddaae..2068820e2ad7 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb @@ -24,6 +24,8 @@ class MetricTagConfigurationUpdateRequest # Object for a single tag configuration to be edited. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricTagConfigurationUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metric_volumes_response.rb b/lib/datadog_api_client/v2/models/metric_volumes_response.rb index ee34275d90fe..eaf03f10c449 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -24,6 +24,8 @@ class MetricVolumesResponse # Possible response objects for a metric's volume. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricVolumesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricVolumesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb index 1d75876108be..665a63af240e 100644 --- a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb +++ b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb @@ -24,6 +24,8 @@ class MetricsAndMetricTagConfigurationsResponse # Array of metrics and metric tag configurations. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricsAndMetricTagConfigurationsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricsAndMetricTagConfigurationsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metrics_scalar_query.rb b/lib/datadog_api_client/v2/models/metrics_scalar_query.rb index 9a86164275c7..c8b52d116a3e 100644 --- a/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +++ b/lib/datadog_api_client/v2/models/metrics_scalar_query.rb @@ -33,6 +33,8 @@ class MetricsScalarQuery # A classic metrics query string. attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricsScalarQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricsScalarQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregator') @@ -128,6 +132,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) data_source == o.data_source && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb b/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb index 259c4f833d2a..0c2212647c03 100644 --- a/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb +++ b/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb @@ -30,6 +30,8 @@ class MetricsTimeseriesQuery # A classic metrics query string. attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricsTimeseriesQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricsTimeseriesQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data_source') @@ -108,6 +112,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) data_source == o.data_source && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb index d910ad9a664c..b908fdb03cea 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb @@ -27,6 +27,8 @@ class MonitorConfigPolicyAttributeCreateRequest # The monitor configuration policy type. attr_reader :policy_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyAttributeCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyAttributeCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'policy') @@ -99,6 +103,26 @@ def policy_type=(policy_type) @policy_type = policy_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && policy == o.policy && policy_type == o.policy_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb index a9ca4072c11f..f16bcdfef208 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb @@ -27,6 +27,8 @@ class MonitorConfigPolicyAttributeEditRequest # The monitor configuration policy type. attr_reader :policy_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyAttributeEditRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyAttributeEditRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'policy') @@ -99,6 +103,26 @@ def policy_type=(policy_type) @policy_type = policy_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && policy == o.policy && policy_type == o.policy_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb index 83bebc14e552..4d44fef542e2 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb @@ -27,6 +27,8 @@ class MonitorConfigPolicyAttributeResponse # The monitor configuration policy type. attr_accessor :policy_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyAttributeResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyAttributeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'policy') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && policy == o.policy && policy_type == o.policy_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb index c7c03f73ed17..a2cdeaf5dedc 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb @@ -27,6 +27,8 @@ class MonitorConfigPolicyCreateData # Monitor configuration policy resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb index c00a8b616177..b876d4e038f9 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb @@ -24,6 +24,8 @@ class MonitorConfigPolicyCreateRequest # A monitor configuration policy data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb index 212db9d03f62..6bb811b0a186 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb @@ -30,6 +30,8 @@ class MonitorConfigPolicyEditData # Monitor configuration policy resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyEditData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyEditData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb index 3bd1b43d2fdc..94397121a82c 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb @@ -24,6 +24,8 @@ class MonitorConfigPolicyEditRequest # A monitor configuration policy data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyEditRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyEditRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb index bbe4326dc704..98602be75fea 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb @@ -24,6 +24,8 @@ class MonitorConfigPolicyListResponse # An array of monitor configuration policies. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb index 9a0aea38384d..88bc23210577 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb @@ -24,6 +24,8 @@ class MonitorConfigPolicyResponse # A monitor configuration policy data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb index 2124654f0e22..152fcef35f03 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb @@ -30,6 +30,8 @@ class MonitorConfigPolicyResponseData # Monitor configuration policy resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb index 7a04b55872bf..b2de29703b12 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb @@ -30,6 +30,8 @@ class MonitorConfigPolicyTagPolicy # Valid values for the tag. attr_accessor :valid_tag_values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyTagPolicy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyTagPolicy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tag_key') @@ -99,6 +103,26 @@ def tag_key=(tag_key) @tag_key = tag_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) tag_key == o.tag_key && tag_key_required == o.tag_key_required && valid_tag_values == o.valid_tag_values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb index e75051529566..c84c0d5eca0c 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb @@ -30,6 +30,8 @@ class MonitorConfigPolicyTagPolicyCreateRequest # Valid values for the tag. attr_reader :valid_tag_values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorConfigPolicyTagPolicyCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorConfigPolicyTagPolicyCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'tag_key') @@ -125,6 +129,26 @@ def valid_tag_values=(valid_tag_values) @valid_tag_values = valid_tag_values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -134,6 +158,7 @@ def ==(o) tag_key == o.tag_key && tag_key_required == o.tag_key_required && valid_tag_values == o.valid_tag_values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb b/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb index 3809c5c8bf64..e483eb8c6ba0 100644 --- a/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb @@ -27,6 +27,8 @@ class MonitorDowntimeMatchResponse # Pagination metadata returned by the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorDowntimeMatchResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorDowntimeMatchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb index 8a9af7adc878..718f8c40f959 100644 --- a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb @@ -33,6 +33,8 @@ class MonitorDowntimeMatchResponseAttributes # The start of the downtime. attr_accessor :start + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_end') @@ -98,6 +102,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) groups == o.groups && scope == o.scope && start == o.start + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb index 0c493dc924bd..8308aa2401c6 100644 --- a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb @@ -30,6 +30,8 @@ class MonitorDowntimeMatchResponseData # Monitor Downtime Match resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -66,12 +68,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -87,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monitor_type.rb b/lib/datadog_api_client/v2/models/monitor_type.rb index 5ccf59415513..3c7780c52ea7 100644 --- a/lib/datadog_api_client/v2/models/monitor_type.rb +++ b/lib/datadog_api_client/v2/models/monitor_type.rb @@ -54,6 +54,8 @@ class MonitorType # The monitor type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorType` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -173,6 +177,26 @@ def group_status=(group_status) @group_status = group_status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -190,6 +214,7 @@ def ==(o) tags == o.tags && templated_name == o.templated_name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb index c3ff3cee30fc..456caaa7f6be 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb @@ -45,6 +45,8 @@ class MonthlyCostAttributionAttributes # Fields in Cost Attribution by tag(s). Example: `infra_host_on_demand_cost`, `infra_host_committed_cost`, `infra_host_total_cost`, `infra_host_percentage_in_org`, `infra_host_percentage_in_account`. attr_accessor :values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -89,12 +91,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonthlyCostAttributionAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonthlyCostAttributionAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'month') @@ -126,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -139,6 +163,7 @@ def ==(o) tags == o.tags && updated_at == o.updated_at && values == o.values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb index e30e5673da60..f09bed6c751e 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb @@ -30,6 +30,8 @@ class MonthlyCostAttributionBody # Type of cost attribution data. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonthlyCostAttributionBody` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonthlyCostAttributionBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb index 279485cdfe51..69e6a794d75e 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb @@ -27,6 +27,8 @@ class MonthlyCostAttributionMeta # The metadata for the current pagination. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonthlyCostAttributionMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonthlyCostAttributionMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregates') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && aggregates == o.aggregates && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb index dec51adb01fc..aa08a485f88a 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb @@ -24,6 +24,8 @@ class MonthlyCostAttributionPagination # The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of the `next_record_id`. attr_accessor :next_record_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonthlyCostAttributionPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonthlyCostAttributionPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'next_record_id') @@ -69,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -76,6 +100,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && next_record_id == o.next_record_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb index a1c32c611566..c8f75d96a8ef 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb @@ -27,6 +27,8 @@ class MonthlyCostAttributionResponse # The object containing document metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonthlyCostAttributionResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonthlyCostAttributionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb b/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb index a304e9f8a208..54d6af14db8f 100644 --- a/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb @@ -24,6 +24,8 @@ class NullableRelationshipToUser # Relationship to user object. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::NullableRelationshipToUser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::NullableRelationshipToUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -69,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -76,6 +100,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb b/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb index 6d0c23fc7d47..e555d470c5a6 100644 --- a/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb +++ b/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb @@ -27,6 +27,8 @@ class NullableRelationshipToUserData # Users resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::NullableRelationshipToUserData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::NullableRelationshipToUserData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/nullable_user_relationship.rb b/lib/datadog_api_client/v2/models/nullable_user_relationship.rb index f1cfffa58227..5ff16102b043 100644 --- a/lib/datadog_api_client/v2/models/nullable_user_relationship.rb +++ b/lib/datadog_api_client/v2/models/nullable_user_relationship.rb @@ -24,6 +24,8 @@ class NullableUserRelationship # Relationship to user object. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::NullableUserRelationship` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::NullableUserRelationship`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -69,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -76,6 +100,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb b/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb index e69e8cfd1472..6e81ced20d13 100644 --- a/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb +++ b/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb @@ -27,6 +27,8 @@ class NullableUserRelationshipData # User resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::NullableUserRelationshipData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::NullableUserRelationshipData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/okta_account.rb b/lib/datadog_api_client/v2/models/okta_account.rb index 1d583e0a8b06..3ee96f7231c6 100644 --- a/lib/datadog_api_client/v2/models/okta_account.rb +++ b/lib/datadog_api_client/v2/models/okta_account.rb @@ -30,6 +30,8 @@ class OktaAccount # Account type for an Okta account. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OktaAccount` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OktaAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/okta_account_attributes.rb b/lib/datadog_api_client/v2/models/okta_account_attributes.rb index 4d4bc215a97f..b8b5891225db 100644 --- a/lib/datadog_api_client/v2/models/okta_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/okta_account_attributes.rb @@ -39,6 +39,8 @@ class OktaAccountAttributes # The name of the Okta account. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OktaAccountAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OktaAccountAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -146,6 +150,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -158,6 +182,7 @@ def ==(o) client_secret == o.client_secret && domain == o.domain && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/okta_account_request.rb b/lib/datadog_api_client/v2/models/okta_account_request.rb index f1ced6f6d2d2..0c9e11600407 100644 --- a/lib/datadog_api_client/v2/models/okta_account_request.rb +++ b/lib/datadog_api_client/v2/models/okta_account_request.rb @@ -24,6 +24,8 @@ class OktaAccountRequest # Schema for an Okta account. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OktaAccountRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OktaAccountRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/okta_account_response.rb b/lib/datadog_api_client/v2/models/okta_account_response.rb index 49852dabb6da..ea7c2b0409b6 100644 --- a/lib/datadog_api_client/v2/models/okta_account_response.rb +++ b/lib/datadog_api_client/v2/models/okta_account_response.rb @@ -24,6 +24,8 @@ class OktaAccountResponse # Schema for an Okta account. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OktaAccountResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OktaAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/okta_account_response_data.rb b/lib/datadog_api_client/v2/models/okta_account_response_data.rb index 9f470388c921..d7f55c48ebc2 100644 --- a/lib/datadog_api_client/v2/models/okta_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/okta_account_response_data.rb @@ -30,6 +30,8 @@ class OktaAccountResponseData # Account type for an Okta account. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OktaAccountResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OktaAccountResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/okta_account_update_request.rb b/lib/datadog_api_client/v2/models/okta_account_update_request.rb index 08e6bc335bb0..37e1da80948d 100644 --- a/lib/datadog_api_client/v2/models/okta_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/okta_account_update_request.rb @@ -24,6 +24,8 @@ class OktaAccountUpdateRequest # Data object for updating an Okta account. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OktaAccountUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OktaAccountUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb index 2ebfe0ee46f2..85dfa4a538b8 100644 --- a/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb @@ -36,6 +36,8 @@ class OktaAccountUpdateRequestAttributes # The domain associated with an Okta account. attr_reader :domain + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OktaAccountUpdateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OktaAccountUpdateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'api_key') @@ -126,6 +130,26 @@ def domain=(domain) @domain = domain end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -137,6 +161,7 @@ def ==(o) client_id == o.client_id && client_secret == o.client_secret && domain == o.domain + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb b/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb index 0c3057f492cd..409f8f98159b 100644 --- a/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb @@ -27,6 +27,8 @@ class OktaAccountUpdateRequestData # Account type for an Okta account. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OktaAccountUpdateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OktaAccountUpdateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/okta_accounts_response.rb b/lib/datadog_api_client/v2/models/okta_accounts_response.rb index 074bb216b5ed..c9ab9f681f7c 100644 --- a/lib/datadog_api_client/v2/models/okta_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/okta_accounts_response.rb @@ -24,6 +24,8 @@ class OktaAccountsResponse # List of Okta accounts. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OktaAccountsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OktaAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb index 35f6732d5c73..1b9bb913cb01 100644 --- a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +++ b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb @@ -27,6 +27,8 @@ class OnDemandConcurrencyCap # On-demand concurrency cap type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OnDemandConcurrencyCap` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OnDemandConcurrencyCap`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb index bcdca5e769af..a41651f8762d 100644 --- a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb +++ b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb @@ -24,6 +24,8 @@ class OnDemandConcurrencyCapAttributes # Value of the on-demand concurrency cap. attr_accessor :on_demand_concurrency_cap + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OnDemandConcurrencyCapAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OnDemandConcurrencyCapAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'on_demand_concurrency_cap') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && on_demand_concurrency_cap == o.on_demand_concurrency_cap + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb index b237e0cf1cef..e759b6d1afcf 100644 --- a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb +++ b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb @@ -24,6 +24,8 @@ class OnDemandConcurrencyCapResponse # On-demand concurrency cap. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OnDemandConcurrencyCapResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OnDemandConcurrencyCapResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/open_api_endpoint.rb b/lib/datadog_api_client/v2/models/open_api_endpoint.rb index 6fc8e94f10ad..39d0120a1c19 100644 --- a/lib/datadog_api_client/v2/models/open_api_endpoint.rb +++ b/lib/datadog_api_client/v2/models/open_api_endpoint.rb @@ -27,6 +27,8 @@ class OpenAPIEndpoint # The endpoint path. attr_accessor :path + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpenAPIEndpoint` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpenAPIEndpoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'method') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && method == o.method && path == o.path + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/open_api_file.rb b/lib/datadog_api_client/v2/models/open_api_file.rb index 90352108207d..78dfdeeedc98 100644 --- a/lib/datadog_api_client/v2/models/open_api_file.rb +++ b/lib/datadog_api_client/v2/models/open_api_file.rb @@ -24,6 +24,8 @@ class OpenAPIFile # Binary `OpenAPI` spec file attr_accessor :openapi_spec_file + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpenAPIFile` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpenAPIFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'openapi_spec_file') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && openapi_spec_file == o.openapi_spec_file + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb index a7fa30a55864..57cd06ef567f 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb @@ -33,6 +33,8 @@ class OpsgenieServiceCreateAttributes # The region for the Opsgenie service. attr_reader :region + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_url') @@ -132,6 +136,26 @@ def region=(region) @region = region end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -142,6 +166,7 @@ def ==(o) name == o.name && opsgenie_api_key == o.opsgenie_api_key && region == o.region + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb b/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb index 11810eff75b3..18f0a0583693 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb @@ -27,6 +27,8 @@ class OpsgenieServiceCreateData # Opsgenie service resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb b/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb index 16d5e5834792..8c7f6b2b82f4 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb @@ -24,6 +24,8 @@ class OpsgenieServiceCreateRequest # Opsgenie service data for a create request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response.rb index 3cfc2792f040..6df3198bd84b 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response.rb @@ -24,6 +24,8 @@ class OpsgenieServiceResponse # Opsgenie service data from a response. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb index 63e0d913ec9b..706592cf4890 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb @@ -33,6 +33,8 @@ class OpsgenieServiceResponseAttributes # The region for the Opsgenie service. attr_accessor :region + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_url') @@ -114,6 +118,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -124,6 +148,7 @@ def ==(o) name == o.name && opsgenie_api_key == o.opsgenie_api_key && region == o.region + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb index 7d7aee9b3c25..e65546e63f3f 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb @@ -30,6 +30,8 @@ class OpsgenieServiceResponseData # Opsgenie service resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -127,6 +131,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -136,6 +160,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb index acc44ff0e6e3..cbce442b7af2 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb @@ -33,6 +33,8 @@ class OpsgenieServiceUpdateAttributes # The region for the Opsgenie service. attr_accessor :region + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom_url') @@ -114,6 +118,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -124,6 +148,7 @@ def ==(o) name == o.name && opsgenie_api_key == o.opsgenie_api_key && region == o.region + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb index a27b7fb87096..c1af9eedaf86 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb @@ -30,6 +30,8 @@ class OpsgenieServiceUpdateData # Opsgenie service resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -127,6 +131,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -136,6 +160,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb index 512987e01f28..6b03b8b1ab5b 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb @@ -24,6 +24,8 @@ class OpsgenieServiceUpdateRequest # Opsgenie service for an update request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/opsgenie_services_response.rb b/lib/datadog_api_client/v2/models/opsgenie_services_response.rb index 24ebe33ecc19..d0c5a8e5c7e4 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_services_response.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_services_response.rb @@ -24,6 +24,8 @@ class OpsgenieServicesResponse # An array of Opsgenie services. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServicesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServicesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/org_config_get_response.rb b/lib/datadog_api_client/v2/models/org_config_get_response.rb index 5f639f929476..fa9bc19f3821 100644 --- a/lib/datadog_api_client/v2/models/org_config_get_response.rb +++ b/lib/datadog_api_client/v2/models/org_config_get_response.rb @@ -24,6 +24,8 @@ class OrgConfigGetResponse # A single Org Config. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConfigGetResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OrgConfigGetResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/org_config_list_response.rb b/lib/datadog_api_client/v2/models/org_config_list_response.rb index a2533b184b1b..2f994daeaacc 100644 --- a/lib/datadog_api_client/v2/models/org_config_list_response.rb +++ b/lib/datadog_api_client/v2/models/org_config_list_response.rb @@ -24,6 +24,8 @@ class OrgConfigListResponse # An array of Org Configs. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConfigListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OrgConfigListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/org_config_read.rb b/lib/datadog_api_client/v2/models/org_config_read.rb index 36a8f2e1a64e..8e80d7083907 100644 --- a/lib/datadog_api_client/v2/models/org_config_read.rb +++ b/lib/datadog_api_client/v2/models/org_config_read.rb @@ -30,6 +30,8 @@ class OrgConfigRead # Data type of an Org Config. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConfigRead` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OrgConfigRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/org_config_read_attributes.rb b/lib/datadog_api_client/v2/models/org_config_read_attributes.rb index 50bf484e7bff..37070861fa5c 100644 --- a/lib/datadog_api_client/v2/models/org_config_read_attributes.rb +++ b/lib/datadog_api_client/v2/models/org_config_read_attributes.rb @@ -36,6 +36,8 @@ class OrgConfigReadAttributes # The type of an Org Config value. attr_reader :value_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -76,12 +78,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConfigReadAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OrgConfigReadAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -156,6 +160,26 @@ def value_type=(value_type) @value_type = value_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -167,6 +191,7 @@ def ==(o) name == o.name && value == o.value && value_type == o.value_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/org_config_write.rb b/lib/datadog_api_client/v2/models/org_config_write.rb index e4073065116b..b5e09d20f816 100644 --- a/lib/datadog_api_client/v2/models/org_config_write.rb +++ b/lib/datadog_api_client/v2/models/org_config_write.rb @@ -27,6 +27,8 @@ class OrgConfigWrite # Data type of an Org Config. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConfigWrite` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OrgConfigWrite`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/org_config_write_attributes.rb b/lib/datadog_api_client/v2/models/org_config_write_attributes.rb index cd2d85bacdbc..acbb4c13a3dd 100644 --- a/lib/datadog_api_client/v2/models/org_config_write_attributes.rb +++ b/lib/datadog_api_client/v2/models/org_config_write_attributes.rb @@ -24,6 +24,8 @@ class OrgConfigWriteAttributes # The value of an Org Config. attr_reader :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConfigWriteAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OrgConfigWriteAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'value') @@ -79,6 +83,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/org_config_write_request.rb b/lib/datadog_api_client/v2/models/org_config_write_request.rb index 4509f2db4cb4..4e843733dde4 100644 --- a/lib/datadog_api_client/v2/models/org_config_write_request.rb +++ b/lib/datadog_api_client/v2/models/org_config_write_request.rb @@ -24,6 +24,8 @@ class OrgConfigWriteRequest # An Org Config write operation. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConfigWriteRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OrgConfigWriteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 5ce71a1a9ae3..5726ef2b9e0f 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -30,6 +30,8 @@ class Organization # Organizations resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Organization` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Organization`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index f04c0c5ad0fe..5f8fb0d87b12 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -45,6 +45,8 @@ class OrganizationAttributes # URL of the site that this organization exists at. attr_accessor :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrganizationAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OrganizationAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -124,6 +128,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) public_id == o.public_id && sharing == o.sharing && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb b/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb index 162ac2ec1618..8fdfc9f770ac 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb @@ -24,6 +24,8 @@ class OutcomesBatchAttributes # Set of scorecard outcomes to update. attr_accessor :results + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesBatchAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesBatchAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'results') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && results == o.results + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_request.rb b/lib/datadog_api_client/v2/models/outcomes_batch_request.rb index a190d012a8dc..802c6923e45b 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_request.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_request.rb @@ -24,6 +24,8 @@ class OutcomesBatchRequest # Scorecard outcomes batch request data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesBatchRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesBatchRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb b/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb index ae03d2024e5d..ad01144362ac 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb @@ -27,6 +27,8 @@ class OutcomesBatchRequestData # The JSON:API type for scorecard outcomes. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesBatchRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesBatchRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb b/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb index 4bc64ee2add6..c363d8f115d2 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb @@ -33,6 +33,8 @@ class OutcomesBatchRequestItem # The state of the rule evaluation. attr_reader :state + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesBatchRequestItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesBatchRequestItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'remarks') @@ -128,6 +132,26 @@ def state=(state) @state = state end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) rule_id == o.rule_id && service_name == o.service_name && state == o.state + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_response.rb b/lib/datadog_api_client/v2/models/outcomes_batch_response.rb index b24d3e08a5a7..b6d3ac04a363 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_response.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_response.rb @@ -27,6 +27,8 @@ class OutcomesBatchResponse # Metadata pertaining to the bulk operation. attr_reader :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesBatchResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesBatchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -101,6 +105,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -109,6 +133,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb b/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb index 4906f8cdc27f..31daf1922e3e 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb @@ -36,6 +36,8 @@ class OutcomesBatchResponseAttributes # The state of the rule evaluation. attr_accessor :state + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesBatchResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesBatchResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) remarks == o.remarks && service_name == o.service_name && state == o.state + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb b/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb index 9a330f7b7f72..5ea0818992ce 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb @@ -27,6 +27,8 @@ class OutcomesBatchResponseMeta # Total number of scorecard results modified during the bulk operation. attr_accessor :total_updated + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesBatchResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesBatchResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_received') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && total_received == o.total_received && total_updated == o.total_updated + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_response.rb b/lib/datadog_api_client/v2/models/outcomes_response.rb index 3dc23b7be2f0..6d7ae708773d 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response.rb @@ -30,6 +30,8 @@ class OutcomesResponse # Links attributes. attr_accessor :links + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -83,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -92,6 +116,7 @@ def ==(o) data == o.data && included == o.included && links == o.links + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb b/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb index de3f783edf8d..f70ee26cac16 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb @@ -33,6 +33,8 @@ class OutcomesResponseDataItem # The JSON:API type for an outcome. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesResponseDataItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesResponseDataItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb b/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb index 5c04abdbda2a..39fe4e1262c5 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb @@ -30,6 +30,8 @@ class OutcomesResponseIncludedItem # The JSON:API type for scorecard rules. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesResponseIncludedItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesResponseIncludedItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb b/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb index 99109ab2de2c..18a0ac71b6bc 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb @@ -27,6 +27,8 @@ class OutcomesResponseIncludedRuleAttributes # The scorecard name to which this rule must belong. attr_accessor :scorecard_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesResponseIncludedRuleAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesResponseIncludedRuleAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && name == o.name && scorecard_name == o.scorecard_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/outcomes_response_links.rb b/lib/datadog_api_client/v2/models/outcomes_response_links.rb index 043c66bef334..c44f6a2bd30a 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_links.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_links.rb @@ -24,6 +24,8 @@ class OutcomesResponseLinks # Link for the next set of results. attr_accessor :_next + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OutcomesResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OutcomesResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_next') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && _next == o._next + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index 008a6b9f5c26..0666d289812f 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -27,6 +27,8 @@ class Pagination # Total count of elements matched by the filter. attr_accessor :total_filtered_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Pagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Pagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_count') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && total_count == o.total_count && total_filtered_count == o.total_filtered_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/partial_api_key.rb b/lib/datadog_api_client/v2/models/partial_api_key.rb index c5c2ca7fc3cb..64a7120cb52e 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -33,6 +33,8 @@ class PartialAPIKey # API Keys resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialAPIKey` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PartialAPIKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb index ebc7c0e5846e..030f6db1b590 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb @@ -39,6 +39,8 @@ class PartialAPIKeyAttributes # The remote config read enabled status. attr_accessor :remote_config_read_enabled + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialAPIKeyAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PartialAPIKeyAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'category') @@ -128,6 +132,26 @@ def last4=(last4) @last4 = last4 end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -140,6 +164,7 @@ def ==(o) modified_at == o.modified_at && name == o.name && remote_config_read_enabled == o.remote_config_read_enabled + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/partial_application_key.rb b/lib/datadog_api_client/v2/models/partial_application_key.rb index f87ea524475e..5cc02c460156 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -33,6 +33,8 @@ class PartialApplicationKey # Application Keys resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialApplicationKey` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PartialApplicationKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb b/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb index bd0d221fc973..32916a42dc79 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb @@ -33,6 +33,8 @@ class PartialApplicationKeyAttributes # Array of scopes to grant the application key. attr_accessor :scopes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialApplicationKeyAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PartialApplicationKeyAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -120,6 +124,26 @@ def last4=(last4) @last4 = last4 end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -130,6 +154,7 @@ def ==(o) last4 == o.last4 && name == o.name && scopes == o.scopes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/partial_application_key_response.rb b/lib/datadog_api_client/v2/models/partial_application_key_response.rb index af1624c80a6a..68548e761d47 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key_response.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key_response.rb @@ -27,6 +27,8 @@ class PartialApplicationKeyResponse # Array of objects related to the application key. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialApplicationKeyResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PartialApplicationKeyResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index e53c8dd142c4..a14c44b676c1 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -30,6 +30,8 @@ class Permission # Permissions resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Permission` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Permission`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index af5247de8a84..a60b488c3ed1 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -42,6 +42,8 @@ class PermissionAttributes # Whether or not the permission is restricted. attr_accessor :restricted + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PermissionAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PermissionAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created') @@ -115,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) group_name == o.group_name && name == o.name && restricted == o.restricted + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index 01706fbbd721..f3fa2f918f2e 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -24,6 +24,8 @@ class PermissionsResponse # Array of permissions. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PermissionsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PermissionsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack.rb b/lib/datadog_api_client/v2/models/powerpack.rb index 87b503cecf3b..316bf373d1dd 100644 --- a/lib/datadog_api_client/v2/models/powerpack.rb +++ b/lib/datadog_api_client/v2/models/powerpack.rb @@ -24,6 +24,8 @@ class Powerpack # Powerpack data object. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Powerpack` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Powerpack`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_attributes.rb b/lib/datadog_api_client/v2/models/powerpack_attributes.rb index 41e5f4410c90..aa145f9742e7 100644 --- a/lib/datadog_api_client/v2/models/powerpack_attributes.rb +++ b/lib/datadog_api_client/v2/models/powerpack_attributes.rb @@ -36,6 +36,8 @@ class PowerpackAttributes # List of template variables for this powerpack. attr_accessor :template_variables + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -141,6 +145,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -152,6 +176,7 @@ def ==(o) name == o.name && tags == o.tags && template_variables == o.template_variables + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_data.rb b/lib/datadog_api_client/v2/models/powerpack_data.rb index a2360a231b26..03d27c72e948 100644 --- a/lib/datadog_api_client/v2/models/powerpack_data.rb +++ b/lib/datadog_api_client/v2/models/powerpack_data.rb @@ -33,6 +33,8 @@ class PowerpackData # Type of widget, must be powerpack. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_group_widget.rb b/lib/datadog_api_client/v2/models/powerpack_group_widget.rb index 0649e61d5bdb..218f36a8eca9 100644 --- a/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +++ b/lib/datadog_api_client/v2/models/powerpack_group_widget.rb @@ -30,6 +30,8 @@ class PowerpackGroupWidget # The available timeframes depend on the widget you are using. attr_accessor :live_span + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackGroupWidget` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackGroupWidget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'definition') @@ -97,6 +101,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) definition == o.definition && layout == o.layout && live_span == o.live_span + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb b/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb index a05f37864e77..f795f1225504 100644 --- a/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb +++ b/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb @@ -36,6 +36,8 @@ class PowerpackGroupWidgetDefinition # Widgets inside the powerpack. attr_reader :widgets + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackGroupWidgetDefinition` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackGroupWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'layout_type') @@ -139,6 +143,26 @@ def widgets=(widgets) @widgets = widgets end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -150,6 +174,7 @@ def ==(o) title == o.title && type == o.type && widgets == o.widgets + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb b/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb index bcbc053739d3..dd7e86b1257a 100644 --- a/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb +++ b/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb @@ -33,6 +33,8 @@ class PowerpackGroupWidgetLayout # The position of the widget on the y (vertical) axis. Should be a non-negative integer. attr_reader :y + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackGroupWidgetLayout` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackGroupWidgetLayout`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'height') @@ -155,6 +159,26 @@ def y=(y) @y = y end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -165,6 +189,7 @@ def ==(o) width == o.width && x == o.x && y == o.y + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb b/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb index b9fa8ec7c014..50ab168349d6 100644 --- a/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb +++ b/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb @@ -33,6 +33,8 @@ class PowerpackInnerWidgetLayout # The position of the widget on the y (vertical) axis. Should be a non-negative integer. attr_reader :y + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackInnerWidgetLayout` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackInnerWidgetLayout`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'height') @@ -155,6 +159,26 @@ def y=(y) @y = y end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -165,6 +189,7 @@ def ==(o) width == o.width && x == o.x && y == o.y + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb b/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb index 5201757dd135..0ec826ce6b39 100644 --- a/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb +++ b/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb @@ -27,6 +27,8 @@ class PowerpackInnerWidgets # Powerpack inner widget layout. attr_accessor :layout + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackInnerWidgets` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackInnerWidgets`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'definition') @@ -88,6 +92,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && definition == o.definition && layout == o.layout + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_relationships.rb b/lib/datadog_api_client/v2/models/powerpack_relationships.rb index 1a3250b620bf..04665fcce9b6 100644 --- a/lib/datadog_api_client/v2/models/powerpack_relationships.rb +++ b/lib/datadog_api_client/v2/models/powerpack_relationships.rb @@ -24,6 +24,8 @@ class PowerpackRelationships # Relationship to user. attr_accessor :author + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'author') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && author == o.author + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_response.rb b/lib/datadog_api_client/v2/models/powerpack_response.rb index 4ba5060ed2d4..507e0c0e0399 100644 --- a/lib/datadog_api_client/v2/models/powerpack_response.rb +++ b/lib/datadog_api_client/v2/models/powerpack_response.rb @@ -27,6 +27,8 @@ class PowerpackResponse # Array of objects related to the users. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_response_links.rb b/lib/datadog_api_client/v2/models/powerpack_response_links.rb index 6cf11c39002b..07f6c806eaca 100644 --- a/lib/datadog_api_client/v2/models/powerpack_response_links.rb +++ b/lib/datadog_api_client/v2/models/powerpack_response_links.rb @@ -36,6 +36,8 @@ class PowerpackResponseLinks # Link to current page. attr_accessor :_self + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -77,12 +79,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'first') @@ -106,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) _next == o._next && prev == o.prev && _self == o._self + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpack_template_variable.rb b/lib/datadog_api_client/v2/models/powerpack_template_variable.rb index 226dab1f57d1..935824732b85 100644 --- a/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +++ b/lib/datadog_api_client/v2/models/powerpack_template_variable.rb @@ -27,6 +27,8 @@ class PowerpackTemplateVariable # The name of the variable. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpackTemplateVariable` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackTemplateVariable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'defaults') @@ -90,6 +94,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && defaults == o.defaults && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb b/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb index 53858a5e8903..47e27f93ef74 100644 --- a/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb +++ b/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb @@ -24,6 +24,8 @@ class PowerpacksResponseMeta # Powerpack response pagination metadata. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpacksResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpacksResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb index 4d7b30bd697e..0776f7eb730f 100644 --- a/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb @@ -45,6 +45,8 @@ class PowerpacksResponseMetaPagination # Offset type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -91,12 +93,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PowerpacksResponseMetaPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpacksResponseMetaPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'first_offset') @@ -132,6 +136,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -146,6 +170,7 @@ def ==(o) prev_offset == o.prev_offset && total == o.total && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/process_summaries_meta.rb b/lib/datadog_api_client/v2/models/process_summaries_meta.rb index 9e3c59ca19ec..0413253a71f5 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -24,6 +24,8 @@ class ProcessSummariesMeta # Paging attributes. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummariesMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProcessSummariesMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb b/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb index 36c8ac59b0b9..c94a06bd2cc0 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb @@ -28,6 +28,8 @@ class ProcessSummariesMetaPage # Number of results returned. attr_reader :size + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummariesMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProcessSummariesMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'after') @@ -93,6 +97,26 @@ def size=(size) @size = size end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -101,6 +125,7 @@ def ==(o) self.class == o.class && after == o.after && size == o.size + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/process_summaries_response.rb b/lib/datadog_api_client/v2/models/process_summaries_response.rb index 02918009400a..a9fffc5346de 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -27,6 +27,8 @@ class ProcessSummariesResponse # Response metadata object. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummariesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProcessSummariesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index 4317e4a6d755..de13ceeda81c 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -30,6 +30,8 @@ class ProcessSummary # Type of process summary. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummary` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProcessSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/process_summary_attributes.rb b/lib/datadog_api_client/v2/models/process_summary_attributes.rb index 81c00ecc63ab..bde735cf3dad 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -45,6 +45,8 @@ class ProcessSummaryAttributes # Process owner. attr_accessor :user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummaryAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProcessSummaryAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cmdline') @@ -126,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -140,6 +164,7 @@ def ==(o) tags == o.tags && timestamp == o.timestamp && user == o.user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/project.rb b/lib/datadog_api_client/v2/models/project.rb index 72bf895273d0..fdb2575d957d 100644 --- a/lib/datadog_api_client/v2/models/project.rb +++ b/lib/datadog_api_client/v2/models/project.rb @@ -33,6 +33,8 @@ class Project # Project resource type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Project` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Project`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -128,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/project_attributes.rb b/lib/datadog_api_client/v2/models/project_attributes.rb index b72a7cb852de..4434a6afb3b2 100644 --- a/lib/datadog_api_client/v2/models/project_attributes.rb +++ b/lib/datadog_api_client/v2/models/project_attributes.rb @@ -27,6 +27,8 @@ class ProjectAttributes # Project's name attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'key') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && key == o.key && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/project_create.rb b/lib/datadog_api_client/v2/models/project_create.rb index a65457e47b95..f92834681004 100644 --- a/lib/datadog_api_client/v2/models/project_create.rb +++ b/lib/datadog_api_client/v2/models/project_create.rb @@ -27,6 +27,8 @@ class ProjectCreate # Project resource type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/project_create_attributes.rb b/lib/datadog_api_client/v2/models/project_create_attributes.rb index e09b498c32e4..3c99a7ad5dd6 100644 --- a/lib/datadog_api_client/v2/models/project_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/project_create_attributes.rb @@ -27,6 +27,8 @@ class ProjectCreateAttributes # name attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'key') @@ -99,6 +103,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && key == o.key && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/project_create_request.rb b/lib/datadog_api_client/v2/models/project_create_request.rb index 76f6bee87fcd..464166815f6c 100644 --- a/lib/datadog_api_client/v2/models/project_create_request.rb +++ b/lib/datadog_api_client/v2/models/project_create_request.rb @@ -24,6 +24,8 @@ class ProjectCreateRequest # Project create attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/project_relationship.rb b/lib/datadog_api_client/v2/models/project_relationship.rb index 5330d3b53cdb..d07d026f6e8a 100644 --- a/lib/datadog_api_client/v2/models/project_relationship.rb +++ b/lib/datadog_api_client/v2/models/project_relationship.rb @@ -24,6 +24,8 @@ class ProjectRelationship # Relationship to project object attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectRelationship` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectRelationship`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/project_relationship_data.rb b/lib/datadog_api_client/v2/models/project_relationship_data.rb index f6ed14822567..aeaf2b3d0f9b 100644 --- a/lib/datadog_api_client/v2/models/project_relationship_data.rb +++ b/lib/datadog_api_client/v2/models/project_relationship_data.rb @@ -27,6 +27,8 @@ class ProjectRelationshipData # Project resource type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectRelationshipData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectRelationshipData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/project_relationships.rb b/lib/datadog_api_client/v2/models/project_relationships.rb index 74dc7ddc09bb..c6379ee7ec3d 100644 --- a/lib/datadog_api_client/v2/models/project_relationships.rb +++ b/lib/datadog_api_client/v2/models/project_relationships.rb @@ -27,6 +27,8 @@ class ProjectRelationships # Relationship to users. attr_accessor :member_user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'member_team') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && member_team == o.member_team && member_user == o.member_user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/project_response.rb b/lib/datadog_api_client/v2/models/project_response.rb index f59cc54805de..1ca981ed0dc7 100644 --- a/lib/datadog_api_client/v2/models/project_response.rb +++ b/lib/datadog_api_client/v2/models/project_response.rb @@ -24,6 +24,8 @@ class ProjectResponse # A Project attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/projected_cost.rb b/lib/datadog_api_client/v2/models/projected_cost.rb index 65137cbbffdd..672045715b7e 100644 --- a/lib/datadog_api_client/v2/models/projected_cost.rb +++ b/lib/datadog_api_client/v2/models/projected_cost.rb @@ -30,6 +30,8 @@ class ProjectedCost # Type of cost data. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectedCost` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectedCost`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/projected_cost_attributes.rb b/lib/datadog_api_client/v2/models/projected_cost_attributes.rb index d9ffee23232f..473329b8c68c 100644 --- a/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +++ b/lib/datadog_api_client/v2/models/projected_cost_attributes.rb @@ -45,6 +45,8 @@ class ProjectedCostAttributes # The region of the Datadog instance that the organization belongs to. attr_accessor :region + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectedCostAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectedCostAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'account_name') @@ -126,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -140,6 +164,7 @@ def ==(o) projected_total_cost == o.projected_total_cost && public_id == o.public_id && region == o.region + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/projected_cost_response.rb b/lib/datadog_api_client/v2/models/projected_cost_response.rb index 8fcdf7bf51b9..8a6b2c0a346f 100644 --- a/lib/datadog_api_client/v2/models/projected_cost_response.rb +++ b/lib/datadog_api_client/v2/models/projected_cost_response.rb @@ -24,6 +24,8 @@ class ProjectedCostResponse # Response containing Projected Cost. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectedCostResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectedCostResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/projects_response.rb b/lib/datadog_api_client/v2/models/projects_response.rb index f6bb1ee0539e..2cd515f532f3 100644 --- a/lib/datadog_api_client/v2/models/projects_response.rb +++ b/lib/datadog_api_client/v2/models/projects_response.rb @@ -24,6 +24,8 @@ class ProjectsResponse # Projects response data attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProjectsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ProjectsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/query_formula.rb b/lib/datadog_api_client/v2/models/query_formula.rb index 4bc25e7906d1..57841f45acbc 100644 --- a/lib/datadog_api_client/v2/models/query_formula.rb +++ b/lib/datadog_api_client/v2/models/query_formula.rb @@ -28,6 +28,8 @@ class QueryFormula # This limit is only for scalar queries and has no effect on timeseries queries. attr_accessor :limit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::QueryFormula` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::QueryFormula`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'formula') @@ -89,6 +93,26 @@ def formula=(formula) @formula = formula end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -97,6 +121,7 @@ def ==(o) self.class == o.class && formula == o.formula && limit == o.limit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb index 196f47c6418a..422cd1903485 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb @@ -24,6 +24,8 @@ class RelationshipToIncidentAttachment # An array of incident attachments. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentAttachment` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentAttachment`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb index 60472a655d7a..fbe5b857219e 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb @@ -27,6 +27,8 @@ class RelationshipToIncidentAttachmentData # The incident attachment resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentAttachmentData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentAttachmentData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb index dd8b14c3bf7f..c464e34ab22d 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb @@ -27,6 +27,8 @@ class RelationshipToIncidentImpactData # The incident impacts type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentImpactData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentImpactData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb index 44882bc46b89..9a7050f5e038 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb @@ -24,6 +24,8 @@ class RelationshipToIncidentImpacts # An array of incident impacts. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentImpacts` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentImpacts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb index 530113df43c5..b155d8223486 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb @@ -27,6 +27,8 @@ class RelationshipToIncidentIntegrationMetadataData # Integration metadata resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentIntegrationMetadataData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentIntegrationMetadataData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb index 727b01e81878..ddc23a971082 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb @@ -24,6 +24,8 @@ class RelationshipToIncidentIntegrationMetadatas # Integration metadata relationship array attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentIntegrationMetadatas` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentIntegrationMetadatas`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb index 127e717057ba..b132646ed6aa 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb @@ -24,6 +24,8 @@ class RelationshipToIncidentPostmortem # The postmortem relationship data. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentPostmortem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentPostmortem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb index 3d05ec612fac..41203f1984ec 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb @@ -27,6 +27,8 @@ class RelationshipToIncidentPostmortemData # Incident postmortem resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentPostmortemData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentPostmortemData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb index 7d5703c07563..9553b0678b04 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb @@ -27,6 +27,8 @@ class RelationshipToIncidentResponderData # The incident responders type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentResponderData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentResponderData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb index 6238406cedbc..778600b2a7ef 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb @@ -24,6 +24,8 @@ class RelationshipToIncidentResponders # An array of incident responders. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentResponders` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentResponders`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb index f99fd1f5e3d6..53b3d96a1ef6 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb @@ -27,6 +27,8 @@ class RelationshipToIncidentUserDefinedFieldData # The incident user defined fields type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentUserDefinedFieldData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentUserDefinedFieldData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb index 5a1e82d0c1ef..f9254ef44fdc 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb @@ -24,6 +24,8 @@ class RelationshipToIncidentUserDefinedFields # An array of user defined fields. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentUserDefinedFields` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToIncidentUserDefinedFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_organization.rb b/lib/datadog_api_client/v2/models/relationship_to_organization.rb index f659dcec8fb0..dabc03a1a8de 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -24,6 +24,8 @@ class RelationshipToOrganization # Relationship to organization object. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOrganization` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToOrganization`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb b/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb index 6d45ec27e1f7..8d8ba19feec9 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb @@ -27,6 +27,8 @@ class RelationshipToOrganizationData # Organizations resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOrganizationData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToOrganizationData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb index c6276f4189d7..c3e051c7ab9a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -24,6 +24,8 @@ class RelationshipToOrganizations # Relationships to organization objects. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOrganizations` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToOrganizations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_outcome.rb b/lib/datadog_api_client/v2/models/relationship_to_outcome.rb index 392add15f294..be3d19633193 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_outcome.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_outcome.rb @@ -24,6 +24,8 @@ class RelationshipToOutcome # The JSON:API relationship to an outcome, which returns the related rule id. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOutcome` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToOutcome`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb b/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb index cd2b550a4e74..d371dc3c76a6 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb @@ -27,6 +27,8 @@ class RelationshipToOutcomeData # The JSON:API type for scorecard rules. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOutcomeData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToOutcomeData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_permission.rb b/lib/datadog_api_client/v2/models/relationship_to_permission.rb index 9074c97e1fd5..f84466c950b7 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -24,6 +24,8 @@ class RelationshipToPermission # Relationship to permission object. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToPermission` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToPermission`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb b/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb index a48beb294658..dfd2419646ef 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb @@ -27,6 +27,8 @@ class RelationshipToPermissionData # Permissions resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToPermissionData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToPermissionData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb index af33ba78f7fe..cf50ad252a38 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -24,6 +24,8 @@ class RelationshipToPermissions # Relationships to permission objects. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToPermissions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToPermissions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_role.rb b/lib/datadog_api_client/v2/models/relationship_to_role.rb index 3a0ee7e56541..aacda2dec221 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -24,6 +24,8 @@ class RelationshipToRole # Relationship to role object. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRole` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToRole`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_role_data.rb b/lib/datadog_api_client/v2/models/relationship_to_role_data.rb index 2591d0bd924a..d708817a92a1 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role_data.rb @@ -27,6 +27,8 @@ class RelationshipToRoleData # Roles type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRoleData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToRoleData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_roles.rb b/lib/datadog_api_client/v2/models/relationship_to_roles.rb index d5a4d84ff572..7b03468aff9f 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -24,6 +24,8 @@ class RelationshipToRoles # An array containing type and the unique identifier of a role. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRoles` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToRoles`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_rule.rb b/lib/datadog_api_client/v2/models/relationship_to_rule.rb index b01ba1766cc8..4575177742bb 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_rule.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_rule.rb @@ -24,6 +24,8 @@ class RelationshipToRule # Relationship data for a rule. attr_accessor :scorecard + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRule` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToRule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'scorecard') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && scorecard == o.scorecard + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb b/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb index 735981327f88..b468aceb663c 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb @@ -24,6 +24,8 @@ class RelationshipToRuleData # Rule relationship data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRuleData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToRuleData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb b/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb index 3adbf49506fd..555373178643 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb @@ -27,6 +27,8 @@ class RelationshipToRuleDataObject # The JSON:API type for scorecard. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRuleDataObject` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToRuleDataObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb index adfd6cc3d8e0..e533ad7516dc 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb @@ -24,6 +24,8 @@ class RelationshipToSAMLAssertionAttribute # Data of AuthN Mapping relationship to SAML Assertion Attribute. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToSAMLAssertionAttribute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToSAMLAssertionAttribute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb index 45eca8f9603a..42672a5a9c8a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb @@ -27,6 +27,8 @@ class RelationshipToSAMLAssertionAttributeData # SAML assertion attributes resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToSAMLAssertionAttributeData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToSAMLAssertionAttributeData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_team.rb b/lib/datadog_api_client/v2/models/relationship_to_team.rb index 36edf6649265..70cab11457da 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team.rb @@ -24,6 +24,8 @@ class RelationshipToTeam # Relationship to Team object. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToTeam` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToTeam`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_team_data.rb b/lib/datadog_api_client/v2/models/relationship_to_team_data.rb index 920954253e6c..80ad94e0575a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team_data.rb @@ -27,6 +27,8 @@ class RelationshipToTeamData # Team type attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToTeamData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToTeamData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb b/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb index 55783f329b7a..9d02fa725ffb 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb @@ -27,6 +27,8 @@ class RelationshipToTeamLinkData # Team link type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToTeamLinkData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToTeamLinkData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_team_links.rb b/lib/datadog_api_client/v2/models/relationship_to_team_links.rb index 65765cfae8fe..b66766eaf7bd 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team_links.rb @@ -27,6 +27,8 @@ class RelationshipToTeamLinks # Links attributes. attr_accessor :links + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToTeamLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToTeamLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && links == o.links + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_user.rb b/lib/datadog_api_client/v2/models/relationship_to_user.rb index 93c7e4b1927d..fec9bfdda5ff 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -24,6 +24,8 @@ class RelationshipToUser # Relationship to user object. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_data.rb index 8221f72c0446..438568ea71a2 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_data.rb @@ -27,6 +27,8 @@ class RelationshipToUserData # Users resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUserData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToUserData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb index 048e772e8df2..cd3be9d08337 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb @@ -27,6 +27,8 @@ class RelationshipToUserTeamPermission # Links attributes. attr_accessor :links + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUserTeamPermission` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToUserTeamPermission`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && links == o.links + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb index 7411452a9fa8..00915d027049 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb @@ -27,6 +27,8 @@ class RelationshipToUserTeamPermissionData # User team permission type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUserTeamPermissionData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToUserTeamPermissionData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb index e836b4ca9f30..c6690ef0fb61 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb @@ -24,6 +24,8 @@ class RelationshipToUserTeamTeam # The team associated with the membership attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUserTeamTeam` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToUserTeamTeam`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb index ac17ac4281bf..ec931318c453 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb @@ -27,6 +27,8 @@ class RelationshipToUserTeamTeamData # User team team type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUserTeamTeamData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToUserTeamTeamData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb index fe3162558bb9..d51707514aac 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb @@ -24,6 +24,8 @@ class RelationshipToUserTeamUser # A user's relationship with a team attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUserTeamUser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToUserTeamUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb index e867772bff61..1b159f0b682b 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb @@ -27,6 +27,8 @@ class RelationshipToUserTeamUserData # User team user type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUserTeamUserData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToUserTeamUserData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/relationship_to_users.rb b/lib/datadog_api_client/v2/models/relationship_to_users.rb index 336a38597267..a3a159c2ad85 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -24,6 +24,8 @@ class RelationshipToUsers # Relationships to user objects. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUsers` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToUsers`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb b/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb index 65abcc88d961..2cd54eb39488 100644 --- a/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb +++ b/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb @@ -24,6 +24,8 @@ class ReorderRetentionFiltersRequest # A list of retention filters objects. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ReorderRetentionFiltersRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ReorderRetentionFiltersRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/response_meta_attributes.rb b/lib/datadog_api_client/v2/models/response_meta_attributes.rb index 5686cc0ba4e5..e19de5445794 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -24,6 +24,8 @@ class ResponseMetaAttributes # Pagination object. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ResponseMetaAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ResponseMetaAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/restriction_policy.rb b/lib/datadog_api_client/v2/models/restriction_policy.rb index 4c7679a04b65..4766951a5204 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy.rb @@ -30,6 +30,8 @@ class RestrictionPolicy # Restriction policy type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RestrictionPolicy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RestrictionPolicy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb b/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb index e782d277f8dd..ea0df9411c6a 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb @@ -24,6 +24,8 @@ class RestrictionPolicyAttributes # An array of bindings. attr_reader :bindings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RestrictionPolicyAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RestrictionPolicyAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'bindings') @@ -81,6 +85,26 @@ def bindings=(bindings) @bindings = bindings end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && bindings == o.bindings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/restriction_policy_binding.rb b/lib/datadog_api_client/v2/models/restriction_policy_binding.rb index b183849a77d0..23917da85db2 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_binding.rb @@ -30,6 +30,8 @@ class RestrictionPolicyBinding # The role/level of access. attr_reader :relation + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -56,12 +58,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RestrictionPolicyBinding` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RestrictionPolicyBinding`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'principals') @@ -104,6 +108,26 @@ def relation=(relation) @relation = relation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -112,6 +136,7 @@ def ==(o) self.class == o.class && principals == o.principals && relation == o.relation + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/restriction_policy_response.rb b/lib/datadog_api_client/v2/models/restriction_policy_response.rb index cce3aa419286..8527cf7bc31e 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_response.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_response.rb @@ -24,6 +24,8 @@ class RestrictionPolicyResponse # Restriction policy object. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RestrictionPolicyResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RestrictionPolicyResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb b/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb index bd0a85c8f386..ea529de2c738 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb @@ -24,6 +24,8 @@ class RestrictionPolicyUpdateRequest # Restriction policy object. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RestrictionPolicyUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RestrictionPolicyUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter.rb b/lib/datadog_api_client/v2/models/retention_filter.rb index b0c8f90ac9d9..0861510c9911 100644 --- a/lib/datadog_api_client/v2/models/retention_filter.rb +++ b/lib/datadog_api_client/v2/models/retention_filter.rb @@ -30,6 +30,8 @@ class RetentionFilter # The type of the resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_all.rb b/lib/datadog_api_client/v2/models/retention_filter_all.rb index 5cc896d195ef..dcf538faacc8 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_all.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_all.rb @@ -30,6 +30,8 @@ class RetentionFilterAll # The type of the resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterAll` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterAll`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb index e93319cd18fd..c48aafd0946e 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb @@ -55,6 +55,8 @@ class RetentionFilterAllAttributes # a value of 1.0 keeps all spans matching the query. attr_accessor :rate + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -99,12 +101,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterAllAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterAllAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -152,6 +156,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -169,6 +193,7 @@ def ==(o) modified_by == o.modified_by && name == o.name && rate == o.rate + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_attributes.rb index 0bc78699f955..c35d477e49ab 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_attributes.rb @@ -55,6 +55,8 @@ class RetentionFilterAttributes # a value of 1.0 keeps all spans matching the query. attr_accessor :rate + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -99,12 +101,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -152,6 +156,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -169,6 +193,7 @@ def ==(o) modified_by == o.modified_by && name == o.name && rate == o.rate + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb index 3853e03c6dbc..4523a48917ea 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb @@ -37,6 +37,8 @@ class RetentionFilterCreateAttributes # a value of 1.0 keeps all spans matching the query. attr_reader :rate + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enabled') @@ -160,6 +164,26 @@ def rate=(rate) @rate = rate end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,6 +195,7 @@ def ==(o) filter_type == o.filter_type && name == o.name && rate == o.rate + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_data.rb b/lib/datadog_api_client/v2/models/retention_filter_create_data.rb index 50aa0b4d3812..341f65606b6d 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_data.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_data.rb @@ -27,6 +27,8 @@ class RetentionFilterCreateData # The type of the resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_request.rb b/lib/datadog_api_client/v2/models/retention_filter_create_request.rb index 0657c7319832..848aba61a317 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_request.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_request.rb @@ -24,6 +24,8 @@ class RetentionFilterCreateRequest # The body of the retention filter to be created. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_response.rb b/lib/datadog_api_client/v2/models/retention_filter_create_response.rb index 377d5770dab4..52f4e6c27df5 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_response.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_response.rb @@ -24,6 +24,8 @@ class RetentionFilterCreateResponse # The definition of the retention filter. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterCreateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_response.rb b/lib/datadog_api_client/v2/models/retention_filter_response.rb index 111cc64de73b..41825e4a1fcb 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_response.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_response.rb @@ -24,6 +24,8 @@ class RetentionFilterResponse # The definition of the retention filter. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb index 7a23fae490d4..22430337a593 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb @@ -37,6 +37,8 @@ class RetentionFilterUpdateAttributes # a value of 1.0 keeps all spans matching the query. attr_reader :rate + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'enabled') @@ -160,6 +164,26 @@ def rate=(rate) @rate = rate end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,6 +195,7 @@ def ==(o) filter_type == o.filter_type && name == o.name && rate == o.rate + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_update_data.rb b/lib/datadog_api_client/v2/models/retention_filter_update_data.rb index 5265422d7512..20bd99e96080 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_update_data.rb @@ -30,6 +30,8 @@ class RetentionFilterUpdateData # The type of the resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_update_request.rb b/lib/datadog_api_client/v2/models/retention_filter_update_request.rb index 464f9962a6e6..f4a80de96261 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_update_request.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_update_request.rb @@ -24,6 +24,8 @@ class RetentionFilterUpdateRequest # The body of the retention filter to be updated. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb index 8b832b80f8c4..69f53722f692 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb @@ -27,6 +27,8 @@ class RetentionFilterWithoutAttributes # The type of the resource. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterWithoutAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterWithoutAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/retention_filters_response.rb b/lib/datadog_api_client/v2/models/retention_filters_response.rb index 457dd66669a7..98d8f95d0ceb 100644 --- a/lib/datadog_api_client/v2/models/retention_filters_response.rb +++ b/lib/datadog_api_client/v2/models/retention_filters_response.rb @@ -24,6 +24,8 @@ class RetentionFiltersResponse # A list of retention filters objects. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFiltersResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFiltersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index 8cd6f21b6357..8c4df78b6226 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -33,6 +33,8 @@ class Role # Roles type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Role` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Role`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -106,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index a51aa8aa26f3..c0e29cdee010 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -33,6 +33,8 @@ class RoleAttributes # Number of users with that role. attr_accessor :user_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) modified_at == o.modified_at && name == o.name && user_count == o.user_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index ab6286c042df..89337d2f5938 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -27,6 +27,8 @@ class RoleClone # Roles type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleClone` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleClone`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_clone_attributes.rb b/lib/datadog_api_client/v2/models/role_clone_attributes.rb index 84e34cb9c258..f849d1b073f4 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -24,6 +24,8 @@ class RoleCloneAttributes # Name of the new role that is cloned. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCloneAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleCloneAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -79,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_clone_request.rb b/lib/datadog_api_client/v2/models/role_clone_request.rb index 43306a5da108..c9d9e47a5a19 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -24,6 +24,8 @@ class RoleCloneRequest # Data for the clone role request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCloneRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleCloneRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_create_attributes.rb b/lib/datadog_api_client/v2/models/role_create_attributes.rb index 836c2cef907c..13ad28649751 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -30,6 +30,8 @@ class RoleCreateAttributes # Name of the role. attr_reader :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -97,6 +101,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) created_at == o.created_at && modified_at == o.modified_at && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_create_data.rb b/lib/datadog_api_client/v2/models/role_create_data.rb index 662159f110d9..26f34df67ef8 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -30,6 +30,8 @@ class RoleCreateData # Roles type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_create_request.rb b/lib/datadog_api_client/v2/models/role_create_request.rb index c1fb39c24b77..75138206aaaa 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -24,6 +24,8 @@ class RoleCreateRequest # Data related to the creation of a role. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_create_response.rb b/lib/datadog_api_client/v2/models/role_create_response.rb index df1de8bce22c..8e3e024bb548 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -24,6 +24,8 @@ class RoleCreateResponse # Role object returned by the API. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_create_response_data.rb b/lib/datadog_api_client/v2/models/role_create_response_data.rb index 39f7f4d30ccc..4bd6abb0a421 100644 --- a/lib/datadog_api_client/v2/models/role_create_response_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_response_data.rb @@ -33,6 +33,8 @@ class RoleCreateResponseData # Roles type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleCreateResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -106,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index f6733988c928..1091fac689c1 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -24,6 +24,8 @@ class RoleRelationships # Relationship to multiple permissions objects. attr_accessor :permissions + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'permissions') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && permissions == o.permissions + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index 1232f5a6175c..17eb79d8b58f 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -24,6 +24,8 @@ class RoleResponse # Role object returned by the API. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_response_relationships.rb b/lib/datadog_api_client/v2/models/role_response_relationships.rb index 6e46c4b48e7d..e023d5b0ddd7 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -24,6 +24,8 @@ class RoleResponseRelationships # Relationship to multiple permissions objects. attr_accessor :permissions + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleResponseRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleResponseRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'permissions') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && permissions == o.permissions + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_update_attributes.rb b/lib/datadog_api_client/v2/models/role_update_attributes.rb index 1a5c1438bfdf..98223dbbb795 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -33,6 +33,8 @@ class RoleUpdateAttributes # The user count. attr_reader :user_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -106,6 +110,26 @@ def user_count=(user_count) @user_count = user_count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) modified_at == o.modified_at && name == o.name && user_count == o.user_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_update_data.rb b/lib/datadog_api_client/v2/models/role_update_data.rb index 01265dc34bd0..51b54e728d73 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -33,6 +33,8 @@ class RoleUpdateData # Roles type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -128,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_update_request.rb b/lib/datadog_api_client/v2/models/role_update_request.rb index 3a5c17147537..cb04be8f5708 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -24,6 +24,8 @@ class RoleUpdateRequest # Data related to the update of a role. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_update_response.rb b/lib/datadog_api_client/v2/models/role_update_response.rb index f893d718a139..d7f9bb7769bf 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -24,6 +24,8 @@ class RoleUpdateResponse # Role object returned by the API. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleUpdateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/role_update_response_data.rb b/lib/datadog_api_client/v2/models/role_update_response_data.rb index 136d297ba73d..544e72297b8a 100644 --- a/lib/datadog_api_client/v2/models/role_update_response_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_response_data.rb @@ -33,6 +33,8 @@ class RoleUpdateResponseData # Roles type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RoleUpdateResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -106,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index 56e9ba61aaf5..91ba466815ae 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -27,6 +27,8 @@ class RolesResponse # Object describing meta attributes of response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RolesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RolesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rule_attributes.rb b/lib/datadog_api_client/v2/models/rule_attributes.rb index cc56629cae19..a518c9c22db4 100644 --- a/lib/datadog_api_client/v2/models/rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/rule_attributes.rb @@ -48,6 +48,8 @@ class RuleAttributes # The scorecard name to which this rule must belong. attr_accessor :scorecard_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RuleAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RuleAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'category') @@ -133,6 +137,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -148,6 +172,7 @@ def ==(o) name == o.name && owner == o.owner && scorecard_name == o.scorecard_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb b/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb index ba324781a617..161fd9b0a134 100644 --- a/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb +++ b/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb @@ -24,6 +24,8 @@ class RuleOutcomeRelationships # The JSON:API relationship to a scorecard outcome. attr_accessor :rule + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RuleOutcomeRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RuleOutcomeRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'rule') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && rule == o.rule + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb index 510a3dd25fa6..10dad6422c92 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb @@ -27,6 +27,8 @@ class RUMAggregateBucketValueTimeseriesPoint # The value for this point. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMAggregateBucketValueTimeseriesPoint` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMAggregateBucketValueTimeseriesPoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && time == o.time && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_aggregate_request.rb b/lib/datadog_api_client/v2/models/rum_aggregate_request.rb index 66a5c5c9f3d3..6fb4a567573a 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregate_request.rb @@ -37,6 +37,8 @@ class RUMAggregateRequest # Paging attributes for listing events. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMAggregateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMAggregateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -102,6 +106,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -113,6 +137,7 @@ def ==(o) group_by == o.group_by && options == o.options && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb b/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb index 450cd3d8d508..7f81121f435f 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb @@ -33,6 +33,8 @@ class RUMAggregateSort # The type of sorting algorithm. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMAggregateSort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMAggregateSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) metric == o.metric && order == o.order && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb b/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb index 46deebb09eb9..85ab5e0f0210 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb @@ -24,6 +24,8 @@ class RUMAggregationBucketsResponse # The list of matching buckets, one item per bucket. attr_accessor :buckets + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMAggregationBucketsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMAggregationBucketsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'buckets') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && buckets == o.buckets + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb b/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb index 1d930b76dda1..7b99e54b060c 100644 --- a/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb @@ -30,6 +30,8 @@ class RUMAnalyticsAggregateResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMAnalyticsAggregateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMAnalyticsAggregateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application.rb b/lib/datadog_api_client/v2/models/rum_application.rb index f551d4cdfbe4..7a314a50c8e7 100644 --- a/lib/datadog_api_client/v2/models/rum_application.rb +++ b/lib/datadog_api_client/v2/models/rum_application.rb @@ -30,6 +30,8 @@ class RUMApplication # RUM application response type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplication` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplication`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_attributes.rb index 789717978d99..04c1477e2dc1 100644 --- a/lib/datadog_api_client/v2/models/rum_application_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_attributes.rb @@ -54,6 +54,8 @@ class RUMApplicationAttributes # Handle of the updater user. attr_reader :updated_by_handle + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'application_id') @@ -261,6 +265,26 @@ def updated_by_handle=(updated_by_handle) @updated_by_handle = updated_by_handle end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -278,6 +302,7 @@ def ==(o) type == o.type && updated_at == o.updated_at && updated_by_handle == o.updated_by_handle + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_create.rb b/lib/datadog_api_client/v2/models/rum_application_create.rb index eb364f502066..68f20a9839d3 100644 --- a/lib/datadog_api_client/v2/models/rum_application_create.rb +++ b/lib/datadog_api_client/v2/models/rum_application_create.rb @@ -27,6 +27,8 @@ class RUMApplicationCreate # RUM application creation type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb index c2524d08923d..d3a496f36057 100644 --- a/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb @@ -27,6 +27,8 @@ class RUMApplicationCreateAttributes # Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -88,6 +92,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_create_request.rb b/lib/datadog_api_client/v2/models/rum_application_create_request.rb index 35970e3cd0a5..ad7a55bdd6d1 100644 --- a/lib/datadog_api_client/v2/models/rum_application_create_request.rb +++ b/lib/datadog_api_client/v2/models/rum_application_create_request.rb @@ -24,6 +24,8 @@ class RUMApplicationCreateRequest # RUM application creation. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_list.rb b/lib/datadog_api_client/v2/models/rum_application_list.rb index 169d7b18978f..6e65862cfeb2 100644 --- a/lib/datadog_api_client/v2/models/rum_application_list.rb +++ b/lib/datadog_api_client/v2/models/rum_application_list.rb @@ -30,6 +30,8 @@ class RUMApplicationList # RUM application list type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationList` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb index c6bc12e48d56..5eae39c30461 100644 --- a/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb @@ -51,6 +51,8 @@ class RUMApplicationListAttributes # Handle of the updater user. attr_reader :updated_by_handle + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationListAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationListAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'application_id') @@ -241,6 +245,26 @@ def updated_by_handle=(updated_by_handle) @updated_by_handle = updated_by_handle end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -257,6 +281,7 @@ def ==(o) type == o.type && updated_at == o.updated_at && updated_by_handle == o.updated_by_handle + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_response.rb b/lib/datadog_api_client/v2/models/rum_application_response.rb index deaa3a4cf90d..34388b21ad84 100644 --- a/lib/datadog_api_client/v2/models/rum_application_response.rb +++ b/lib/datadog_api_client/v2/models/rum_application_response.rb @@ -24,6 +24,8 @@ class RUMApplicationResponse # RUM application. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_update.rb b/lib/datadog_api_client/v2/models/rum_application_update.rb index 7b232c882d22..01ae304d87b4 100644 --- a/lib/datadog_api_client/v2/models/rum_application_update.rb +++ b/lib/datadog_api_client/v2/models/rum_application_update.rb @@ -30,6 +30,8 @@ class RUMApplicationUpdate # RUM application update type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationUpdate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb index 1e806fc847a6..ef20a63bc912 100644 --- a/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb @@ -27,6 +27,8 @@ class RUMApplicationUpdateAttributes # Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_application_update_request.rb b/lib/datadog_api_client/v2/models/rum_application_update_request.rb index 90ef02959dd2..5be324550c9b 100644 --- a/lib/datadog_api_client/v2/models/rum_application_update_request.rb +++ b/lib/datadog_api_client/v2/models/rum_application_update_request.rb @@ -24,6 +24,8 @@ class RUMApplicationUpdateRequest # RUM application update. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_applications_response.rb b/lib/datadog_api_client/v2/models/rum_applications_response.rb index 51e65ebfe28c..ef9cbbdeb566 100644 --- a/lib/datadog_api_client/v2/models/rum_applications_response.rb +++ b/lib/datadog_api_client/v2/models/rum_applications_response.rb @@ -24,6 +24,8 @@ class RUMApplicationsResponse # RUM applications array response. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMApplicationsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMApplicationsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_bucket_response.rb b/lib/datadog_api_client/v2/models/rum_bucket_response.rb index 6c2019216ac1..791864998712 100644 --- a/lib/datadog_api_client/v2/models/rum_bucket_response.rb +++ b/lib/datadog_api_client/v2/models/rum_bucket_response.rb @@ -27,6 +27,8 @@ class RUMBucketResponse # A map of the metric name to value for regular compute, or a list of values for a timeseries. attr_accessor :computes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMBucketResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMBucketResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'by') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && by == o.by && computes == o.computes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_compute.rb b/lib/datadog_api_client/v2/models/rum_compute.rb index 3a36028dbcda..1971e409cb88 100644 --- a/lib/datadog_api_client/v2/models/rum_compute.rb +++ b/lib/datadog_api_client/v2/models/rum_compute.rb @@ -34,6 +34,8 @@ class RUMCompute # The type of compute. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -107,6 +111,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) interval == o.interval && metric == o.metric && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_event.rb b/lib/datadog_api_client/v2/models/rum_event.rb index 308ca686d10d..7329eb406f1b 100644 --- a/lib/datadog_api_client/v2/models/rum_event.rb +++ b/lib/datadog_api_client/v2/models/rum_event.rb @@ -30,6 +30,8 @@ class RUMEvent # Type of the event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMEvent` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_event_attributes.rb b/lib/datadog_api_client/v2/models/rum_event_attributes.rb index 75f2f81f3d22..02e4f022da0e 100644 --- a/lib/datadog_api_client/v2/models/rum_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_event_attributes.rb @@ -35,6 +35,8 @@ class RUMEventAttributes # Timestamp of your event. attr_accessor :timestamp + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -65,12 +67,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMEventAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMEventAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -92,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -102,6 +126,7 @@ def ==(o) service == o.service && tags == o.tags && timestamp == o.timestamp + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_events_response.rb b/lib/datadog_api_client/v2/models/rum_events_response.rb index 082787030832..215f6b81e309 100644 --- a/lib/datadog_api_client/v2/models/rum_events_response.rb +++ b/lib/datadog_api_client/v2/models/rum_events_response.rb @@ -30,6 +30,8 @@ class RUMEventsResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMEventsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMEventsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_group_by.rb b/lib/datadog_api_client/v2/models/rum_group_by.rb index 72a12a2ab02c..08b65ee88692 100644 --- a/lib/datadog_api_client/v2/models/rum_group_by.rb +++ b/lib/datadog_api_client/v2/models/rum_group_by.rb @@ -40,6 +40,8 @@ class RUMGroupBy # A resulting object to put the given computes in over all the matching records. attr_accessor :total + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -74,12 +76,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -125,6 +129,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -137,6 +161,7 @@ def ==(o) missing == o.missing && sort == o.sort && total == o.total + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb b/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb index 325d2297e590..0cb875d5e49c 100644 --- a/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb @@ -33,6 +33,8 @@ class RUMGroupByHistogram # (values smaller than this one are filtered out). attr_reader :min + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMGroupByHistogram` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMGroupByHistogram`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'interval') @@ -122,6 +126,26 @@ def min=(min) @min = min end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -131,6 +155,7 @@ def ==(o) interval == o.interval && max == o.max && min == o.min + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_query_filter.rb b/lib/datadog_api_client/v2/models/rum_query_filter.rb index ca8dd5270c6b..1e369efa8e6a 100644 --- a/lib/datadog_api_client/v2/models/rum_query_filter.rb +++ b/lib/datadog_api_client/v2/models/rum_query_filter.rb @@ -30,6 +30,8 @@ class RUMQueryFilter # The maximum time for the requested events; supports date (in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with full date, hours, minutes, and the `Z` UTC indicator - seconds and fractional seconds are optional), math, and regular timestamps (in milliseconds). attr_accessor :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMQueryFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMQueryFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) from == o.from && query == o.query && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_query_options.rb b/lib/datadog_api_client/v2/models/rum_query_options.rb index 62758720ffb9..b6abb6c26941 100644 --- a/lib/datadog_api_client/v2/models/rum_query_options.rb +++ b/lib/datadog_api_client/v2/models/rum_query_options.rb @@ -28,6 +28,8 @@ class RUMQueryOptions # The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMQueryOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMQueryOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time_offset') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && time_offset == o.time_offset && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_query_page_options.rb b/lib/datadog_api_client/v2/models/rum_query_page_options.rb index e24f9e281c8e..6c92017a274f 100644 --- a/lib/datadog_api_client/v2/models/rum_query_page_options.rb +++ b/lib/datadog_api_client/v2/models/rum_query_page_options.rb @@ -27,6 +27,8 @@ class RUMQueryPageOptions # Maximum number of events in the response. attr_reader :limit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMQueryPageOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMQueryPageOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -88,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && cursor == o.cursor && limit == o.limit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_response_links.rb b/lib/datadog_api_client/v2/models/rum_response_links.rb index eb4c3a385c0d..f478702c05ea 100644 --- a/lib/datadog_api_client/v2/models/rum_response_links.rb +++ b/lib/datadog_api_client/v2/models/rum_response_links.rb @@ -25,6 +25,8 @@ class RUMResponseLinks # POST endpoint. attr_accessor :_next + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_next') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && _next == o._next + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_response_metadata.rb b/lib/datadog_api_client/v2/models/rum_response_metadata.rb index aab77cf45d94..f132ca797e55 100644 --- a/lib/datadog_api_client/v2/models/rum_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/rum_response_metadata.rb @@ -37,6 +37,8 @@ class RUMResponseMetadata # warnings are present in the response. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'elapsed') @@ -100,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) request_id == o.request_id && status == o.status && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_response_page.rb b/lib/datadog_api_client/v2/models/rum_response_page.rb index 52fef2e5e4c8..f218617b167e 100644 --- a/lib/datadog_api_client/v2/models/rum_response_page.rb +++ b/lib/datadog_api_client/v2/models/rum_response_page.rb @@ -24,6 +24,8 @@ class RUMResponsePage # The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`. attr_accessor :after + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMResponsePage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMResponsePage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'after') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && after == o.after + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_search_events_request.rb b/lib/datadog_api_client/v2/models/rum_search_events_request.rb index dc80c4702d44..916dc7c7e123 100644 --- a/lib/datadog_api_client/v2/models/rum_search_events_request.rb +++ b/lib/datadog_api_client/v2/models/rum_search_events_request.rb @@ -34,6 +34,8 @@ class RUMSearchEventsRequest # Sort parameters when querying events. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMSearchEventsRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMSearchEventsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -89,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) options == o.options && page == o.page && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/rum_warning.rb b/lib/datadog_api_client/v2/models/rum_warning.rb index a2f9396e7f3b..93483b3f37d5 100644 --- a/lib/datadog_api_client/v2/models/rum_warning.rb +++ b/lib/datadog_api_client/v2/models/rum_warning.rb @@ -30,6 +30,8 @@ class RUMWarning # A short human-readable summary of the warning. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RUMWarning` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RUMWarning`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) code == o.code && detail == o.detail && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb b/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb index bff289694fd0..6303a63f72a4 100644 --- a/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb +++ b/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb @@ -30,6 +30,8 @@ class SAMLAssertionAttribute # SAML assertion attributes resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SAMLAssertionAttribute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SAMLAssertionAttribute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb b/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb index e88265ff2a11..266d4a66ad95 100644 --- a/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb +++ b/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb @@ -27,6 +27,8 @@ class SAMLAssertionAttributeAttributes # Value portion of a key/value pair of the attribute sent from the Identity Provider. attr_accessor :attribute_value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SAMLAssertionAttributeAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SAMLAssertionAttributeAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attribute_key') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attribute_key == o.attribute_key && attribute_value == o.attribute_value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb b/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb index 4e26aecdb48f..873a7debc74a 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb @@ -24,6 +24,8 @@ class ScalarFormulaQueryRequest # A single scalar query to be executed. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ScalarFormulaQueryRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ScalarFormulaQueryRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb b/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb index e3927c97252a..b6893b8c9e68 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb @@ -27,6 +27,8 @@ class ScalarFormulaQueryResponse # An error generated when processing a request. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ScalarFormulaQueryResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ScalarFormulaQueryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/scalar_formula_request.rb b/lib/datadog_api_client/v2/models/scalar_formula_request.rb index 04cdbc7fb0b2..6d218654f918 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_request.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_request.rb @@ -27,6 +27,8 @@ class ScalarFormulaRequest # The type of the resource. The value should always be scalar_request. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ScalarFormulaRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ScalarFormulaRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb b/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb index 95341146b05f..a7b9d7362f9b 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb @@ -33,6 +33,8 @@ class ScalarFormulaRequestAttributes # End date (exclusive) of the query in milliseconds since the Unix epoch. attr_reader :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ScalarFormulaRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ScalarFormulaRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'formulas') @@ -132,6 +136,26 @@ def to=(to) @to = to end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -142,6 +166,7 @@ def ==(o) from == o.from && queries == o.queries && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb b/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb index 18f622301c25..b261aec2eadf 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb @@ -24,6 +24,8 @@ class ScalarFormulaResponseAtrributes # List of response columns, each corresponding to an individual formula or query in the request and with values in parallel arrays matching the series list. attr_accessor :columns + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ScalarFormulaResponseAtrributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ScalarFormulaResponseAtrributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'columns') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && columns == o.columns + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/scalar_meta.rb b/lib/datadog_api_client/v2/models/scalar_meta.rb index f288a99ffa9a..87fa6073d5cc 100644 --- a/lib/datadog_api_client/v2/models/scalar_meta.rb +++ b/lib/datadog_api_client/v2/models/scalar_meta.rb @@ -27,6 +27,8 @@ class ScalarMeta # If the second element is not present, the API returns null. attr_accessor :unit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ScalarMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ScalarMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'unit') @@ -74,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -81,6 +105,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && unit == o.unit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/scalar_response.rb b/lib/datadog_api_client/v2/models/scalar_response.rb index b104730c1a1d..bc5774383f3e 100644 --- a/lib/datadog_api_client/v2/models/scalar_response.rb +++ b/lib/datadog_api_client/v2/models/scalar_response.rb @@ -27,6 +27,8 @@ class ScalarResponse # The type of the resource. The value should always be scalar_response. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ScalarResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ScalarResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index f135fdaab926..8bded6c2c26b 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -30,6 +30,8 @@ class SecurityFilter # The type of the resource. The value should always be `security_filters`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_attributes.rb index 264a3508083b..651e5a4fe497 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -42,6 +42,8 @@ class SecurityFilterAttributes # The version of the security filter. attr_reader :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'exclusion_filters') @@ -135,6 +139,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -148,6 +172,7 @@ def ==(o) name == o.name && query == o.query && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb index ea79d9e44949..dd776256dde4 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb @@ -36,6 +36,8 @@ class SecurityFilterCreateAttributes # The query of the security filter. attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'exclusion_filters') @@ -161,6 +165,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -172,6 +196,7 @@ def ==(o) is_enabled == o.is_enabled && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_create_data.rb b/lib/datadog_api_client/v2/models/security_filter_create_data.rb index 48df58d6344c..50c4119f38a5 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_data.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_data.rb @@ -27,6 +27,8 @@ class SecurityFilterCreateData # The type of the resource. The value should always be `security_filters`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_create_request.rb b/lib/datadog_api_client/v2/models/security_filter_create_request.rb index 0ebe6a72a3e5..3bf509101f8f 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_request.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_request.rb @@ -24,6 +24,8 @@ class SecurityFilterCreateRequest # Object for a single security filter. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb index f50c6ec52efc..f434df72cee0 100644 --- a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb @@ -27,6 +27,8 @@ class SecurityFilterExclusionFilter # Exclusion filter query. Logs that match this query are excluded from the security filter. attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterExclusionFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterExclusionFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -99,6 +103,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb index 0c3b7dc5d3e4..5ff70889dc17 100644 --- a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb @@ -27,6 +27,8 @@ class SecurityFilterExclusionFilterResponse # The exclusion filter query. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterExclusionFilterResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterExclusionFilterResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_meta.rb b/lib/datadog_api_client/v2/models/security_filter_meta.rb index 9ab9a58609a8..db08a97ded94 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -24,6 +24,8 @@ class SecurityFilterMeta # A warning message. attr_accessor :warning + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'warning') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && warning == o.warning + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_response.rb b/lib/datadog_api_client/v2/models/security_filter_response.rb index e96606c03a38..0665aa4bf44c 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -27,6 +27,8 @@ class SecurityFilterResponse # Optional metadata associated to the response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb index a014191ddab4..ad4aa4f93f59 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb @@ -39,6 +39,8 @@ class SecurityFilterUpdateAttributes # The version of the security filter to update. attr_reader :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'exclusion_filters') @@ -126,6 +130,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) name == o.name && query == o.query && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_update_data.rb b/lib/datadog_api_client/v2/models/security_filter_update_data.rb index aa0d0a87c445..4e432931fbcb 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_data.rb @@ -27,6 +27,8 @@ class SecurityFilterUpdateData # The type of the resource. The value should always be `security_filters`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filter_update_request.rb b/lib/datadog_api_client/v2/models/security_filter_update_request.rb index 296ff73fc2fb..a4cdf354fd2b 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_request.rb @@ -24,6 +24,8 @@ class SecurityFilterUpdateRequest # The new security filter properties. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFilterUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_filters_response.rb b/lib/datadog_api_client/v2/models/security_filters_response.rb index 1faaf989ca25..99b298c6f6e6 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -27,6 +27,8 @@ class SecurityFiltersResponse # Optional metadata associated to the response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFiltersResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityFiltersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb index dcb32ff5c79d..1c7c372ad4ab 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -27,6 +27,8 @@ class SecurityMonitoringFilter # Query for selecting logs to apply the filtering action. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'action') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && action == o.action && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb index b8d6d605e95a..11c072dcaeaa 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb @@ -27,6 +27,8 @@ class SecurityMonitoringListRulesResponse # Object describing meta attributes of response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringListRulesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringListRulesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb index a57769efb4c2..d2e76ca2a393 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb @@ -34,6 +34,8 @@ class SecurityMonitoringRuleCase # Severity of the Security Signal. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleCase` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleCase`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'condition') @@ -91,6 +95,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -101,6 +125,7 @@ def ==(o) name == o.name && notifications == o.notifications && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb index a92d83ee7ad6..f79eb84989d5 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb @@ -34,6 +34,8 @@ class SecurityMonitoringRuleCaseCreate # Severity of the Security Signal. attr_reader :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'condition') @@ -109,6 +113,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -119,6 +143,7 @@ def ==(o) name == o.name && notifications == o.notifications && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb index ae7af7f76018..2155e271daec 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb @@ -24,6 +24,8 @@ class SecurityMonitoringRuleConvertResponse # Terraform string as a result of converting the rule from JSON. attr_accessor :terraform_content + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleConvertResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleConvertResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'terraform_content') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && terraform_content == o.terraform_content + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb index d9518c9fd997..0e34ef33f38b 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb @@ -25,6 +25,8 @@ class SecurityMonitoringRuleImpossibleTravelOptions # access locations. This can be helpful to reduce noise and infer VPN usage or credentialed API access. attr_accessor :baseline_user_locations + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleImpossibleTravelOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleImpossibleTravelOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'baseline_user_locations') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && baseline_user_locations == o.baseline_user_locations + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb index ec7e9ece12ef..0cfd69c28e7c 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb @@ -34,6 +34,8 @@ class SecurityMonitoringRuleNewValueOptions # A number of occurrences after which signals will be generated for values that weren't learned. attr_accessor :learning_threshold + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'forget_after') @@ -89,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) learning_duration == o.learning_duration && learning_method == o.learning_method && learning_threshold == o.learning_threshold + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb index 90a07affa430..cc566c33f703 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb @@ -58,6 +58,8 @@ class SecurityMonitoringRuleOptions # Options on third party rules. attr_accessor :third_party_rule_options + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -100,12 +102,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compliance_rule_options') @@ -149,6 +153,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -165,6 +189,7 @@ def ==(o) max_signal_duration == o.max_signal_duration && new_value_options == o.new_value_options && third_party_rule_options == o.third_party_rule_options + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb index f1dfd081f507..9438c011df77 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb @@ -30,6 +30,8 @@ class SecurityMonitoringRuleQueryPayload # Payload used to test the rule query. attr_accessor :payload + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleQueryPayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleQueryPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'expected_result') @@ -97,6 +101,26 @@ def index=(index) @index = index end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) expected_result == o.expected_result && index == o.index && payload == o.payload + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb index fdde443476dc..08882dc98ac2 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb @@ -36,6 +36,8 @@ class SecurityMonitoringRuleQueryPayloadData # The name of the application or service generating the data. attr_accessor :service + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleQueryPayloadData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleQueryPayloadData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'ddsource') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) hostname == o.hostname && message == o.message && service == o.service + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb index 294f60e343a8..1818c0d17061 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb @@ -27,6 +27,8 @@ class SecurityMonitoringRuleTestRequest # Data payloads used to test rules query with the expected result. attr_accessor :rule_query_payloads + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleTestRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleTestRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'rule') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && rule == o.rule && rule_query_payloads == o.rule_query_payloads + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb index cd5dcf215e33..141174781415 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb @@ -26,6 +26,8 @@ class SecurityMonitoringRuleTestResponse # False otherwise. attr_accessor :results + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -50,12 +52,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleTestResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleTestResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'results') @@ -65,6 +69,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -72,6 +96,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && results == o.results + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb index a2a3c44470b0..0797b7466071 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb @@ -33,6 +33,8 @@ class SecurityMonitoringRuleThirdPartyOptions # A template for the signal title; if omitted, the title is generated based on the case name. attr_accessor :signal_title_template + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleThirdPartyOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleThirdPartyOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'default_notifications') @@ -92,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -102,6 +126,7 @@ def ==(o) default_status == o.default_status && root_queries == o.root_queries && signal_title_template == o.signal_title_template + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb index 128261606d45..00f141cf8e0c 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb @@ -57,6 +57,8 @@ class SecurityMonitoringRuleUpdatePayload # The version of the rule being updated. attr_reader :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -103,12 +105,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleUpdatePayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleUpdatePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -188,6 +192,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -206,6 +230,7 @@ def ==(o) tags == o.tags && third_party_cases == o.third_party_cases && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb index 960821fee3a0..e2dbb9ddff9a 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -31,6 +31,8 @@ class SecurityMonitoringSignal # The type of event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignal` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignal`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -80,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -89,6 +113,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb index 8079d977fa6e..fa8c3a27d2bf 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb @@ -27,6 +27,8 @@ class SecurityMonitoringSignalAssigneeUpdateAttributes # Version of the updated signal. If server side version is higher, update will be rejected. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalAssigneeUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalAssigneeUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'assignee') @@ -88,6 +92,26 @@ def assignee=(assignee) @assignee = assignee end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && assignee == o.assignee && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb index 55aea689452e..d2f78a55ee5e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSignalAssigneeUpdateData # Attributes describing the new assignee of a security signal. attr_reader :attributes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalAssigneeUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalAssigneeUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && attributes == o.attributes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb index d00d8327b5cd..106492836d6e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSignalAssigneeUpdateRequest # Data containing the patch for changing the assignee of a signal. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalAssigneeUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalAssigneeUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb index 757185cfad15..be0ea4213f8f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb @@ -34,6 +34,8 @@ class SecurityMonitoringSignalAttributes # The timestamp of the security signal. attr_accessor :timestamp + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'custom') @@ -91,6 +95,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -101,6 +125,7 @@ def ==(o) message == o.message && tags == o.tags && timestamp == o.timestamp + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb index 59a56e2da5dd..0acfec801e23 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb @@ -27,6 +27,8 @@ class SecurityMonitoringSignalIncidentsUpdateAttributes # Version of the updated signal. If server side version is higher, update will be rejected. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalIncidentsUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalIncidentsUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'incident_ids') @@ -90,6 +94,26 @@ def incident_ids=(incident_ids) @incident_ids = incident_ids end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) self.class == o.class && incident_ids == o.incident_ids && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb index fc3c6b359062..8fa4f3bda1a8 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSignalIncidentsUpdateData # Attributes describing the new list of related signals for a security signal. attr_reader :attributes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalIncidentsUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalIncidentsUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && attributes == o.attributes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb index f8ff483af829..cddacf7e1d87 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSignalIncidentsUpdateRequest # Data containing the patch for changing the related incidents of a signal. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalIncidentsUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalIncidentsUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb index 36ede89403f4..c8e30e93e0a3 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb @@ -30,6 +30,8 @@ class SecurityMonitoringSignalListRequest # The sort parameters used for querying security signals. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) filter == o.filter && page == o.page && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb index 4d123251b4ab..1baff08c3519 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb @@ -30,6 +30,8 @@ class SecurityMonitoringSignalListRequestFilter # The maximum timestamp for requested security signals. attr_accessor :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequestFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequestFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) from == o.from && query == o.query && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb index b80bf59bed96..cc04385fe110 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb @@ -27,6 +27,8 @@ class SecurityMonitoringSignalListRequestPage # The maximum number of security signals in the response. attr_reader :limit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequestPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequestPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -88,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && cursor == o.cursor && limit == o.limit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb index 9edae88c9f24..6d72f00996c9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSignalResponse # Object description of a security signal. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb index 812759b93e3e..d182ceda8194 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb @@ -51,6 +51,8 @@ class SecurityMonitoringSignalRuleCreatePayload # The rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalRuleCreatePayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalRuleCreatePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -223,6 +227,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -239,6 +263,7 @@ def ==(o) queries == o.queries && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb index 10b62b036311..5c637281f164 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb @@ -51,6 +51,8 @@ class SecurityMonitoringSignalRulePayload # The rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalRulePayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalRulePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -223,6 +227,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -239,6 +263,7 @@ def ==(o) queries == o.queries && tags == o.tags && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb index 870a6fbb237c..2e3521f3c809 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb @@ -39,6 +39,8 @@ class SecurityMonitoringSignalRuleQuery # Rule ID to match on signals. attr_reader :rule_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalRuleQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalRuleQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -139,6 +143,26 @@ def rule_id=(rule_id) @rule_id = rule_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -151,6 +175,7 @@ def ==(o) metrics == o.metrics && name == o.name && rule_id == o.rule_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb index 9ca9c8f91b6a..69c62470592e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb @@ -75,6 +75,8 @@ class SecurityMonitoringSignalRuleResponse # The version of the rule. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -133,12 +135,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalRuleResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalRuleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -222,6 +226,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -246,6 +270,7 @@ def ==(o) type == o.type && update_author_id == o.update_author_id && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb index 4345ce272ec1..137dbe361678 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb @@ -48,6 +48,8 @@ class SecurityMonitoringSignalRuleResponseQuery # Rule ID to match on signals. attr_accessor :rule_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalRuleResponseQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalRuleResponseQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -159,6 +163,26 @@ def correlated_query_index=(correlated_query_index) @correlated_query_index = correlated_query_index end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -174,6 +198,7 @@ def ==(o) metrics == o.metrics && name == o.name && rule_id == o.rule_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb index a985c17e4d0c..904798e34daa 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb @@ -33,6 +33,8 @@ class SecurityMonitoringSignalStateUpdateAttributes # Version of the updated signal. If server side version is higher, update will be rejected. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalStateUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalStateUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'archive_comment') @@ -106,6 +110,26 @@ def state=(state) @state = state end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) archive_reason == o.archive_reason && state == o.state && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb index ac22ca16146a..2f64fc2341c1 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb @@ -30,6 +30,8 @@ class SecurityMonitoringSignalStateUpdateData # The type of event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalStateUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalStateUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb index 74d687a145dc..5a75e981fc6f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSignalStateUpdateRequest # Data containing the patch for changing the state of a signal. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalStateUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalStateUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb index 0ccf225a871f..14908422f19e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb @@ -48,6 +48,8 @@ class SecurityMonitoringSignalTriageAttributes # Object representing a given user entity. attr_accessor :state_update_user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -88,12 +90,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalTriageAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalTriageAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'archive_comment') @@ -197,6 +201,26 @@ def state_update_timestamp=(state_update_timestamp) @state_update_timestamp = state_update_timestamp end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -212,6 +236,7 @@ def ==(o) state == o.state && state_update_timestamp == o.state_update_timestamp && state_update_user == o.state_update_user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb index f37136e761b8..656b331fbcfb 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb @@ -30,6 +30,8 @@ class SecurityMonitoringSignalTriageUpdateData # The type of event. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalTriageUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalTriageUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb index 8632aedd0248..68fc34c55957 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSignalTriageUpdateResponse # Data containing the updated triage attributes of the signal. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalTriageUpdateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalTriageUpdateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb index 74a3ba9e7110..288a440bd5cc 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb @@ -31,6 +31,8 @@ class SecurityMonitoringSignalsListResponse # Meta attributes. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -82,6 +86,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -91,6 +115,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb index 383bff98fc62..e4c93664687e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb @@ -25,6 +25,8 @@ class SecurityMonitoringSignalsListResponseLinks # POST endpoint. attr_accessor :_next + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_next') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && _next == o._next + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb index 7f0de2ae9daf..5bced72987aa 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSignalsListResponseMeta # Paging attributes. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb index f73fb0fe19c4..6303459cc260 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb @@ -25,6 +25,8 @@ class SecurityMonitoringSignalsListResponseMetaPage # parameters with the addition of the `page[cursor]`. attr_accessor :after + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'after') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && after == o.after + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb index a9c397eda832..5798c5ff87f4 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb @@ -54,6 +54,8 @@ class SecurityMonitoringStandardRuleCreatePayload # The rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -234,6 +238,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -251,6 +275,7 @@ def ==(o) tags == o.tags && third_party_cases == o.third_party_cases && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb index 6a2ffab60eac..f5d38deb0460 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb @@ -54,6 +54,8 @@ class SecurityMonitoringStandardRulePayload # The rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringStandardRulePayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringStandardRulePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -234,6 +238,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -251,6 +275,7 @@ def ==(o) tags == o.tags && third_party_cases == o.third_party_cases && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb index 6fecd4e778b5..6a3a79b2b355 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb @@ -46,6 +46,8 @@ class SecurityMonitoringStandardRuleQuery # Query to run on logs. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -84,12 +86,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringStandardRuleQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringStandardRuleQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -131,6 +135,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -145,6 +169,7 @@ def ==(o) metrics == o.metrics && name == o.name && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb index bc7d99581315..b83d203e192d 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb @@ -84,6 +84,8 @@ class SecurityMonitoringStandardRuleResponse # The version of the rule. attr_accessor :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -148,12 +150,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringStandardRuleResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringStandardRuleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -253,6 +257,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -280,6 +304,7 @@ def ==(o) type == o.type && update_author_id == o.update_author_id && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb index 4b42a596b8cc..3d8420242ce1 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb @@ -54,6 +54,8 @@ class SecurityMonitoringStandardRuleTestPayload # The rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringStandardRuleTestPayload` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringStandardRuleTestPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cases') @@ -234,6 +238,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -251,6 +275,7 @@ def ==(o) tags == o.tags && third_party_cases == o.third_party_cases && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb index 2dfb73328df7..77cce9903688 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb @@ -30,6 +30,8 @@ class SecurityMonitoringSuppression # The type of the resource. The value should always be `suppressions`. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppression` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppression`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb index acbdde5db0cb..3b33b0f2fd1f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb @@ -57,6 +57,8 @@ class SecurityMonitoringSuppressionAttributes # The version of the suppression rule; it starts at 1, and is incremented at each update. attr_reader :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -103,12 +105,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppressionAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppressionAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'creation_date') @@ -178,6 +182,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -196,6 +220,7 @@ def ==(o) update_date == o.update_date && updater == o.updater && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb index 37b5846cd5fd..a5f8430ede56 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb @@ -42,6 +42,8 @@ class SecurityMonitoringSuppressionCreateAttributes # The suppression query of the suppression rule. If a signal matches this query, it is suppressed and is not triggered. It uses the same syntax as the queries to search signals in the Signals Explorer. attr_accessor :suppression_query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data_exclusion_query') @@ -155,6 +159,26 @@ def rule_query=(rule_query) @rule_query = rule_query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,6 +192,7 @@ def ==(o) name == o.name && rule_query == o.rule_query && suppression_query == o.suppression_query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb index 2f2c8ded5c2b..4431910474fe 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb @@ -27,6 +27,8 @@ class SecurityMonitoringSuppressionCreateData # The type of the resource. The value should always be `suppressions`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb index 0abd250c88ef..a92f181cb371 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSuppressionCreateRequest # Object for a single suppression rule. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb index f43709e35457..7a8fcf2e3254 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSuppressionResponse # The suppression rule's properties. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppressionResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppressionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb index b0941cf0dd77..17243b502d7e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb @@ -45,6 +45,8 @@ class SecurityMonitoringSuppressionUpdateAttributes # The current version of the suppression. This is optional, but it can help prevent concurrent modifications. attr_reader :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -91,12 +93,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data_exclusion_query') @@ -150,6 +154,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -164,6 +188,7 @@ def ==(o) rule_query == o.rule_query && suppression_query == o.suppression_query && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb index 580032dba2cc..6a17dc448979 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb @@ -27,6 +27,8 @@ class SecurityMonitoringSuppressionUpdateData # The type of the resource. The value should always be `suppressions`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb index 3ca3b366346b..006bb3be7920 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSuppressionUpdateRequest # The new suppression properties; partial updates are supported. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb index 4bd5337ec3a5..c4a5b413f762 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb @@ -24,6 +24,8 @@ class SecurityMonitoringSuppressionsResponse # A list of suppressions objects. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSuppressionsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSuppressionsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb index a246db0de0ce..dea2b8432fae 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb @@ -27,6 +27,8 @@ class SecurityMonitoringThirdPartyRootQuery # Query to run on logs. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringThirdPartyRootQuery` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringThirdPartyRootQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'group_by_fields') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && group_by_fields == o.group_by_fields && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb index 517e2cad5d6b..29b497cc5e66 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb @@ -33,6 +33,8 @@ class SecurityMonitoringThirdPartyRuleCase # Severity of the Security Signal. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringThirdPartyRuleCase` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringThirdPartyRuleCase`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -90,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -100,6 +124,7 @@ def ==(o) notifications == o.notifications && query == o.query && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb index 08df78506d1f..c48eb4289b53 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb @@ -33,6 +33,8 @@ class SecurityMonitoringThirdPartyRuleCaseCreate # Severity of the Security Signal. attr_reader :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringThirdPartyRuleCaseCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringThirdPartyRuleCaseCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -108,6 +112,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -118,6 +142,7 @@ def ==(o) notifications == o.notifications && query == o.query && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb b/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb index 0b7ac35ffc7c..62e3da8de684 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb @@ -36,6 +36,8 @@ class SecurityMonitoringTriageUser # UUID assigned by Datadog to this user account. attr_reader :uuid + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -76,12 +78,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringTriageUser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringTriageUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'handle') @@ -123,6 +127,26 @@ def uuid=(uuid) @uuid = uuid end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -134,6 +158,7 @@ def ==(o) id == o.id && name == o.name && uuid == o.uuid + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_user.rb b/lib/datadog_api_client/v2/models/security_monitoring_user.rb index 33e91538fd5a..e3b9ae49bfaa 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_user.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_user.rb @@ -27,6 +27,8 @@ class SecurityMonitoringUser # The name of the user. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringUser` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'handle') @@ -78,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) self.class == o.class && handle == o.handle && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb index 76d71d4734c0..7336db7a0d47 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerConfigRequest # Meta payload containing information about the API. attr_reader :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerConfigRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerConfigRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -99,6 +103,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb index 6156eed2595f..fdf7f25e782b 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerConfiguration # Sensitive Data Scanner configuration type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerConfiguration` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb index d5b705496c01..0b4fcc0fc2b4 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerConfigurationData # A Sensitive Data Scanner configuration. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerConfigurationData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerConfigurationData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb index 7f12f53283ee..10c965b51893 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerConfigurationRelationships # List of groups, ordered. attr_accessor :groups + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerConfigurationRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerConfigurationRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'groups') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && groups == o.groups + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb index 6c1bebfb3603..f1a2ab99ff55 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerCreateGroupResponse # Meta payload containing information about the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerCreateGroupResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerCreateGroupResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb index 90756751dbab..f24fdbf6e3c9 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerCreateRuleResponse # Meta payload containing information about the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerCreateRuleResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerCreateRuleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb index 9f7811411473..169ced859746 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerFilter # Query to filter the events. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb index 22a460303a76..3b852679a062 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb @@ -30,6 +30,8 @@ class SensitiveDataScannerGetConfigResponse # Meta response containing information about the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGetConfigResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGetConfigResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb index 777a42c93010..85f8918da707 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb @@ -33,6 +33,8 @@ class SensitiveDataScannerGetConfigResponseData # Sensitive Data Scanner configuration type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGetConfigResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGetConfigResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb index 05bd6e901266..7e4ebf2e7ac6 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerGroup # Sensitive Data Scanner group type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroup` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb index e0b34ed4372c..648940e094a0 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb @@ -36,6 +36,8 @@ class SensitiveDataScannerGroupAttributes # List of products the scanning group applies. attr_accessor :product_list + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -99,6 +103,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) is_enabled == o.is_enabled && name == o.name && product_list == o.product_list + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb index 3d3ccc743520..d065c3c93447 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb @@ -30,6 +30,8 @@ class SensitiveDataScannerGroupCreate # Sensitive Data Scanner group type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb index b068a59e84ed..9706cbb7ea93 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerGroupCreateRequest # Meta payload containing information about the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb index 5991818d7d2b..bf0663badc99 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerGroupData # A scanning group. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb index fc95c22beaf1..dfd590802a02 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerGroupDeleteRequest # Meta payload containing information about the API. attr_reader :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupDeleteRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupDeleteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -79,6 +83,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb index 8253adbc8a84..ae41e5e24e1c 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerGroupDeleteResponse # Meta payload containing information about the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupDeleteResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupDeleteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb index 9ece97564a9e..b75f64efc8e2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb @@ -33,6 +33,8 @@ class SensitiveDataScannerGroupIncludedItem # Sensitive Data Scanner group type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupIncludedItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupIncludedItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb index 017d006dfab6..485c3e03a77b 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerGroupItem # Sensitive Data Scanner group type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb index 8dde9bbe05bf..4bd85c15e828 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerGroupList # List of groups. The order is important. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupList` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb index e804d08b5afb..a8ef4ba3182a 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerGroupRelationships # Rules included in the group. attr_accessor :rules + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'configuration') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && configuration == o.configuration && rules == o.rules + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb index 1f6eb7be8dc7..bf6cad7fa870 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb @@ -33,6 +33,8 @@ class SensitiveDataScannerGroupResponse # Sensitive Data Scanner group type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb index 8846a733cc7c..0ea70688c409 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb @@ -33,6 +33,8 @@ class SensitiveDataScannerGroupUpdate # Sensitive Data Scanner group type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupUpdate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb index a2bb6d39a519..ef2ef874fbb9 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerGroupUpdateRequest # Meta payload containing information about the API. attr_reader :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -99,6 +103,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb index 2d321dd3dc4b..83316c067d42 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerGroupUpdateResponse # Meta payload containing information about the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerGroupUpdateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerGroupUpdateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb index 44373a05cfa1..2f17967f9b02 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb @@ -32,6 +32,8 @@ class SensitiveDataScannerIncludedKeywordConfiguration # The number of keywords in the list must be less than or equal to 30. attr_reader :keywords + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerIncludedKeywordConfiguration` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerIncludedKeywordConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'character_count') @@ -114,6 +118,26 @@ def keywords=(keywords) @keywords = keywords end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -122,6 +146,7 @@ def ==(o) self.class == o.class && character_count == o.character_count && keywords == o.keywords + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb index 6a7e3a1efb6a..a4d52e965d1f 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb @@ -39,6 +39,8 @@ class SensitiveDataScannerMeta # Version of the API. attr_reader :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'count_limit') @@ -124,6 +128,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -136,6 +160,7 @@ def ==(o) has_multi_pass_enabled == o.has_multi_pass_enabled && is_pci_compliant == o.is_pci_compliant && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb index 425fe7e13b01..df4f93f50d50 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerMetaVersionOnly # Version of the API (optional). attr_reader :version + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'version') @@ -79,6 +83,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && version == o.version + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb index 1109a72c2922..d07c35e4e586 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb @@ -30,6 +30,8 @@ class SensitiveDataScannerReorderConfig # Sensitive Data Scanner configuration type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerReorderConfig` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerReorderConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb index c7d1e357454e..413d2cb6a6d2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerReorderGroupsResponse # Meta response containing information about the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerReorderGroupsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerReorderGroupsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb index d482f35b1a69..3c6d35515fae 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerRule # Sensitive Data Scanner rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRule` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb index fe956ce15565..daa2ab5c5bc2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb @@ -55,6 +55,8 @@ class SensitiveDataScannerRuleAttributes # Object describing how the scanned event will be replaced. attr_accessor :text_replacement + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -97,12 +99,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -174,6 +178,26 @@ def priority=(priority) @priority = priority end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -190,6 +214,7 @@ def ==(o) priority == o.priority && tags == o.tags && text_replacement == o.text_replacement + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb index 072a13625cd3..17d1a764b027 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb @@ -30,6 +30,8 @@ class SensitiveDataScannerRuleCreate # Sensitive Data Scanner rule type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb index 7adfc4b7e653..c03636a8e000 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerRuleCreateRequest # Meta payload containing information about the API. attr_reader :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -99,6 +103,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb index bf999e0c7362..822d120b2dd3 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerRuleData # Rules included in the group. The order is important. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb index eb4c1e52d025..c806a8227473 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerRuleDeleteRequest # Meta payload containing information about the API. attr_reader :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleDeleteRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleDeleteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -79,6 +83,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb index f029a7e3a830..2388d3fe80a9 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerRuleDeleteResponse # Meta payload containing information about the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleDeleteResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleDeleteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb index b7e50bcf86bb..38b8e9640c6a 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb @@ -33,6 +33,8 @@ class SensitiveDataScannerRuleIncludedItem # Sensitive Data Scanner rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleIncludedItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleIncludedItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb index c520e3e8dd32..93b3457cb7bc 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerRuleRelationships # A standard pattern. attr_accessor :standard_pattern + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'group') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && group == o.group && standard_pattern == o.standard_pattern + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb index 0b22c7c51ae0..db589f559d22 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb @@ -33,6 +33,8 @@ class SensitiveDataScannerRuleResponse # Sensitive Data Scanner rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb index e9aa91bbc01d..a81b8a4834fd 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb @@ -33,6 +33,8 @@ class SensitiveDataScannerRuleUpdate # Sensitive Data Scanner rule type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleUpdate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb index e61932413670..763cd309bcc5 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerRuleUpdateRequest # Meta payload containing information about the API. attr_reader :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -99,6 +103,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb index 34e1064ae17c..db6a2dce542c 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerRuleUpdateResponse # Meta payload containing information about the API. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerRuleUpdateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerRuleUpdateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb index d487867f542f..2e90772f4a3a 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb @@ -27,6 +27,8 @@ class SensitiveDataScannerStandardPattern # Sensitive Data Scanner standard pattern type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerStandardPattern` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerStandardPattern`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb index e0b12352b2d2..3c2c805b66fc 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb @@ -39,6 +39,8 @@ class SensitiveDataScannerStandardPatternAttributes # List of tags. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerStandardPatternAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerStandardPatternAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'description') @@ -132,6 +136,26 @@ def priority=(priority) @priority = priority end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -144,6 +168,7 @@ def ==(o) pattern == o.pattern && priority == o.priority && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb index 6528a616d624..c7d20c16d8df 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerStandardPatternData # Data containing the standard pattern id. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerStandardPatternData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerStandardPatternData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb index eea16ba7b366..b86e70c0325b 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb @@ -24,6 +24,8 @@ class SensitiveDataScannerStandardPatternsResponseData # List Standard patterns response. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerStandardPatternsResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerStandardPatternsResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb index 2ab48d15b6b9..9c42b2894f79 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb @@ -30,6 +30,8 @@ class SensitiveDataScannerStandardPatternsResponseItem # Sensitive Data Scanner standard pattern type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerStandardPatternsResponseItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerStandardPatternsResponseItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb index 909bfddb4385..a8cdc559de9e 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb @@ -36,6 +36,8 @@ class SensitiveDataScannerTextReplacement # the end. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerTextReplacement` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerTextReplacement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'number_of_chars') @@ -103,6 +107,26 @@ def number_of_chars=(number_of_chars) @number_of_chars = number_of_chars end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -112,6 +136,7 @@ def ==(o) number_of_chars == o.number_of_chars && replacement_string == o.replacement_string && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_account_create_attributes.rb b/lib/datadog_api_client/v2/models/service_account_create_attributes.rb index 2eff2215de39..04af35e547f0 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_attributes.rb @@ -33,6 +33,8 @@ class ServiceAccountCreateAttributes # The title of the user. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceAccountCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceAccountCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'email') @@ -117,6 +121,26 @@ def service_account=(service_account) @service_account = service_account end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) name == o.name && service_account == o.service_account && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_account_create_data.rb b/lib/datadog_api_client/v2/models/service_account_create_data.rb index afcdc24644b7..2d71f08dfbb2 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_data.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_data.rb @@ -30,6 +30,8 @@ class ServiceAccountCreateData # Users resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceAccountCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceAccountCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_account_create_request.rb b/lib/datadog_api_client/v2/models/service_account_create_request.rb index 4efc9ab3bb26..10598811e01e 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_request.rb @@ -24,6 +24,8 @@ class ServiceAccountCreateRequest # Object to create a service account User. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceAccountCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceAccountCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_create_response.rb b/lib/datadog_api_client/v2/models/service_definition_create_response.rb index 4dc51dd144ce..a06d601dbef6 100644 --- a/lib/datadog_api_client/v2/models/service_definition_create_response.rb +++ b/lib/datadog_api_client/v2/models/service_definition_create_response.rb @@ -24,6 +24,8 @@ class ServiceDefinitionCreateResponse # Create service definitions response payload. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionCreateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_data.rb b/lib/datadog_api_client/v2/models/service_definition_data.rb index 1354c3299490..f084099216ef 100644 --- a/lib/datadog_api_client/v2/models/service_definition_data.rb +++ b/lib/datadog_api_client/v2/models/service_definition_data.rb @@ -30,6 +30,8 @@ class ServiceDefinitionData # Service definition type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb b/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb index a368d6648ce9..324f3c2f555f 100644 --- a/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb @@ -27,6 +27,8 @@ class ServiceDefinitionDataAttributes # Service definition schema. attr_accessor :schema + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && meta == o.meta && schema == o.schema + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_get_response.rb b/lib/datadog_api_client/v2/models/service_definition_get_response.rb index 15b33b599507..4730ce5b48ef 100644 --- a/lib/datadog_api_client/v2/models/service_definition_get_response.rb +++ b/lib/datadog_api_client/v2/models/service_definition_get_response.rb @@ -24,6 +24,8 @@ class ServiceDefinitionGetResponse # Service definition data. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionGetResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionGetResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_meta.rb b/lib/datadog_api_client/v2/models/service_definition_meta.rb index e99299834cc4..4883ad96b5e4 100644 --- a/lib/datadog_api_client/v2/models/service_definition_meta.rb +++ b/lib/datadog_api_client/v2/models/service_definition_meta.rb @@ -42,6 +42,8 @@ class ServiceDefinitionMeta # A list of schema validation warnings. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -78,12 +80,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'github_html_url') @@ -117,6 +121,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -130,6 +154,7 @@ def ==(o) origin == o.origin && origin_detail == o.origin_detail && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb b/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb index 6b2da6ceaf83..935476d52cd6 100644 --- a/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb +++ b/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb @@ -30,6 +30,8 @@ class ServiceDefinitionMetaWarnings # The warning message. attr_accessor :message + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionMetaWarnings` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionMetaWarnings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'instance_location') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) instance_location == o.instance_location && keyword_location == o.keyword_location && message == o.message + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v1.rb b/lib/datadog_api_client/v2/models/service_definition_v1.rb index f5968c1971a6..13cbf877f2f5 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1.rb @@ -47,6 +47,8 @@ class ServiceDefinitionV1 # A set of custom tags. attr_accessor :tags + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -86,12 +88,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV1` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'contact') @@ -160,6 +164,26 @@ def schema_version=(schema_version) @schema_version = schema_version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -174,6 +198,7 @@ def ==(o) org == o.org && schema_version == o.schema_version && tags == o.tags + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb b/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb index 96c9dc857025..c32276fbdc1d 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb @@ -27,6 +27,8 @@ class ServiceDefinitionV1Contact # Service owner’s Slack channel. attr_accessor :slack + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV1Contact` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV1Contact`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'email') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && email == o.email && slack == o.slack + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_info.rb b/lib/datadog_api_client/v2/models/service_definition_v1_info.rb index 2c3966939749..e01bfc316894 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_info.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_info.rb @@ -33,6 +33,8 @@ class ServiceDefinitionV1Info # Service tier. attr_accessor :service_tier + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV1Info` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV1Info`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'dd_service') @@ -106,6 +110,26 @@ def dd_service=(dd_service) @dd_service = dd_service end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -116,6 +140,7 @@ def ==(o) description == o.description && display_name == o.display_name && service_tier == o.service_tier + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb index 96cec0e96bb1..ef8135a2b5b5 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb @@ -24,6 +24,8 @@ class ServiceDefinitionV1Integrations # PagerDuty service URL for the service. attr_accessor :pagerduty + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV1Integrations` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV1Integrations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagerduty') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagerduty == o.pagerduty + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_org.rb b/lib/datadog_api_client/v2/models/service_definition_v1_org.rb index 91e668ad7dc8..ac28a480a749 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_org.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_org.rb @@ -27,6 +27,8 @@ class ServiceDefinitionV1Org # Team that owns the service. attr_accessor :team + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV1Org` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV1Org`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'application') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && application == o.application && team == o.team + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb b/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb index 61278a81caca..2f19c1227ecb 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV1Resource # Link URL. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV1Resource` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV1Resource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -119,6 +123,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) name == o.name && type == o.type && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2.rb b/lib/datadog_api_client/v2/models/service_definition_v2.rb index 6a0791b2f123..00b6a757179c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2.rb @@ -54,6 +54,8 @@ class ServiceDefinitionV2 # Team that owns the service. attr_accessor :team + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -98,12 +100,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'contacts') @@ -190,6 +194,26 @@ def schema_version=(schema_version) @schema_version = schema_version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -207,6 +231,7 @@ def ==(o) schema_version == o.schema_version && tags == o.tags && team == o.team + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb b/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb index b250aac65666..0c6301871b81 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2Doc # Document URL. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Doc` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Doc`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -108,6 +112,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) name == o.name && provider == o.provider && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb index 504a37eb6bcb..7b30bb7e3282 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb @@ -57,6 +57,8 @@ class ServiceDefinitionV2Dot1 # Importance of the service. attr_accessor :tier + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -103,12 +105,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'application') @@ -195,6 +199,26 @@ def schema_version=(schema_version) @schema_version = schema_version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -213,6 +237,7 @@ def ==(o) tags == o.tags && team == o.team && tier == o.tier + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb index 4e3532f8f561..b67cd0185b77 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2Dot1Email # Contact type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Email` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Email`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'contact') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) contact == o.contact && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb index cd360b7c3570..f9a8bcbc6f2c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb @@ -27,6 +27,8 @@ class ServiceDefinitionV2Dot1Integrations # PagerDuty integration for the service. attr_accessor :pagerduty + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Integrations` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Integrations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'opsgenie') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && opsgenie == o.opsgenie && pagerduty == o.pagerduty + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb index 14200f4e1552..f11229c13ee6 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb @@ -33,6 +33,8 @@ class ServiceDefinitionV2Dot1Link # Link URL. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Link` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Link`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -128,6 +132,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) provider == o.provider && type == o.type && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb index 3eb83679098a..9ceb76f556f4 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2Dot1MSTeams # Contact type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1MSTeams` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1MSTeams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'contact') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) contact == o.contact && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb index 8dab4befeda6..c1dfe45f8a6c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb @@ -27,6 +27,8 @@ class ServiceDefinitionV2Dot1Opsgenie # Opsgenie service url. attr_reader :service_url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Opsgenie` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Opsgenie`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'region') @@ -88,6 +92,26 @@ def service_url=(service_url) @service_url = service_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && region == o.region && service_url == o.service_url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb index 5dbe80d703d9..5373e2b7b5f9 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb @@ -24,6 +24,8 @@ class ServiceDefinitionV2Dot1Pagerduty # PagerDuty service url. attr_accessor :service_url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Pagerduty` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Pagerduty`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'service_url') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && service_url == o.service_url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb index 06bc2fb8c1b8..a9fcba7a0cb1 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2Dot1Slack # Contact type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Slack` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot1Slack`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'contact') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) contact == o.contact && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb index 819803972e13..3a808ec66897 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb @@ -66,6 +66,8 @@ class ServiceDefinitionV2Dot2 # The type of service. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -118,12 +120,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'application') @@ -226,6 +230,26 @@ def schema_version=(schema_version) @schema_version = schema_version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -247,6 +271,7 @@ def ==(o) team == o.team && tier == o.tier && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb index 5d435713f3bc..a91cfe863940 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2Dot2Contact # Contact type. Datadog recognizes the following types: `email`, `slack`, and `microsoft-teams`. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Contact` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Contact`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'contact') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) contact == o.contact && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb index 1a024097fb3e..812eaa1ab22a 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb @@ -27,6 +27,8 @@ class ServiceDefinitionV2Dot2Integrations # PagerDuty integration for the service. attr_accessor :pagerduty + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Integrations` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Integrations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'opsgenie') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && opsgenie == o.opsgenie && pagerduty == o.pagerduty + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb index 40a9f38b4228..144c829b00a2 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb @@ -33,6 +33,8 @@ class ServiceDefinitionV2Dot2Link # Link URL. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Link` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Link`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -128,6 +132,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) provider == o.provider && type == o.type && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb index 948629b50929..b08c2b57007f 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb @@ -27,6 +27,8 @@ class ServiceDefinitionV2Dot2Opsgenie # Opsgenie service url. attr_reader :service_url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Opsgenie` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Opsgenie`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'region') @@ -88,6 +92,26 @@ def service_url=(service_url) @service_url = service_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && region == o.region && service_url == o.service_url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb index 0c5a69711c63..4e0d4a94b5dd 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb @@ -24,6 +24,8 @@ class ServiceDefinitionV2Dot2Pagerduty # PagerDuty service url. attr_accessor :service_url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Pagerduty` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Dot2Pagerduty`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'service_url') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && service_url == o.service_url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_email.rb b/lib/datadog_api_client/v2/models/service_definition_v2_email.rb index 753b60608dce..eabadf3d6b74 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_email.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_email.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2Email # Contact type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Email` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Email`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'contact') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) contact == o.contact && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb index 361aad6fd645..e36d66280c43 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb @@ -27,6 +27,8 @@ class ServiceDefinitionV2Integrations # PagerDuty service URL for the service. attr_accessor :pagerduty + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Integrations` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Integrations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'opsgenie') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && opsgenie == o.opsgenie && pagerduty == o.pagerduty + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_link.rb b/lib/datadog_api_client/v2/models/service_definition_v2_link.rb index 4a32b3df7c20..9ac4f14086ba 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_link.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_link.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2Link # Link URL. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Link` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Link`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -119,6 +123,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) name == o.name && type == o.type && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb b/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb index 02b24a32ce57..9cdda8c3630c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2MSTeams # Contact type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2MSTeams` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2MSTeams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'contact') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) contact == o.contact && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb b/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb index 229df2edf39b..193c10ec34ce 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb @@ -27,6 +27,8 @@ class ServiceDefinitionV2Opsgenie # Opsgenie service url. attr_reader :service_url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Opsgenie` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Opsgenie`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'region') @@ -88,6 +92,26 @@ def service_url=(service_url) @service_url = service_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && region == o.region && service_url == o.service_url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb b/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb index 9fd55bd151bb..308f46431f4c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2Repo # Repository URL. attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Repo` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Repo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'name') @@ -108,6 +112,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) name == o.name && provider == o.provider && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb b/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb index 8e4c66485b86..544f59402d9b 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb @@ -30,6 +30,8 @@ class ServiceDefinitionV2Slack # Contact type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionV2Slack` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionV2Slack`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'contact') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) contact == o.contact && name == o.name && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_definitions_list_response.rb b/lib/datadog_api_client/v2/models/service_definitions_list_response.rb index 8901488821f1..465e5092d435 100644 --- a/lib/datadog_api_client/v2/models/service_definitions_list_response.rb +++ b/lib/datadog_api_client/v2/models/service_definitions_list_response.rb @@ -24,6 +24,8 @@ class ServiceDefinitionsListResponse # Data representing service definitions. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionsListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionsListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_now_ticket.rb b/lib/datadog_api_client/v2/models/service_now_ticket.rb index b6cef1a4e26f..43a48349f859 100644 --- a/lib/datadog_api_client/v2/models/service_now_ticket.rb +++ b/lib/datadog_api_client/v2/models/service_now_ticket.rb @@ -27,6 +27,8 @@ class ServiceNowTicket # Case status attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceNowTicket` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceNowTicket`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'result') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && result == o.result && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/service_now_ticket_result.rb b/lib/datadog_api_client/v2/models/service_now_ticket_result.rb index d59d9b9941ea..1b0503f7687c 100644 --- a/lib/datadog_api_client/v2/models/service_now_ticket_result.rb +++ b/lib/datadog_api_client/v2/models/service_now_ticket_result.rb @@ -24,6 +24,8 @@ class ServiceNowTicketResult # Link to the Incident created on ServiceNow attr_accessor :sys_target_link + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceNowTicketResult` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceNowTicketResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'sys_target_link') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && sys_target_link == o.sys_target_link + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slack_integration_metadata.rb b/lib/datadog_api_client/v2/models/slack_integration_metadata.rb index e233969c78db..02877873af92 100644 --- a/lib/datadog_api_client/v2/models/slack_integration_metadata.rb +++ b/lib/datadog_api_client/v2/models/slack_integration_metadata.rb @@ -24,6 +24,8 @@ class SlackIntegrationMetadata # Array of Slack channels in this integration metadata. attr_reader :channels + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SlackIntegrationMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SlackIntegrationMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'channels') @@ -81,6 +85,26 @@ def channels=(channels) @channels = channels end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && channels == o.channels + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb b/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb index 84e6e976ad53..8f85970f61c7 100644 --- a/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb +++ b/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb @@ -33,6 +33,8 @@ class SlackIntegrationMetadataChannelItem # Slack team ID. attr_accessor :team_id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SlackIntegrationMetadataChannelItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SlackIntegrationMetadataChannelItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'channel_id') @@ -128,6 +132,26 @@ def redirect_url=(redirect_url) @redirect_url = redirect_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) channel_name == o.channel_name && redirect_url == o.redirect_url && team_id == o.team_id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slo_report_create_request.rb b/lib/datadog_api_client/v2/models/slo_report_create_request.rb index d5851c86b234..061d105453d1 100644 --- a/lib/datadog_api_client/v2/models/slo_report_create_request.rb +++ b/lib/datadog_api_client/v2/models/slo_report_create_request.rb @@ -24,6 +24,8 @@ class SloReportCreateRequest # The data portion of the SLO report request. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SloReportCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SloReportCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb b/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb index f0ae9d943344..891cac21793d 100644 --- a/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb @@ -36,6 +36,8 @@ class SloReportCreateRequestAttributes # The `to` timestamp for the report in epoch seconds. attr_reader :to_ts + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SloReportCreateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SloReportCreateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from_ts') @@ -137,6 +141,26 @@ def to_ts=(to_ts) @to_ts = to_ts end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -148,6 +172,7 @@ def ==(o) query == o.query && timezone == o.timezone && to_ts == o.to_ts + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb b/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb index 4b04fdc909c9..20018059e8cd 100644 --- a/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb @@ -24,6 +24,8 @@ class SloReportCreateRequestData # The attributes portion of the SLO report request. attr_reader :attributes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SloReportCreateRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SloReportCreateRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && attributes == o.attributes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slo_report_post_response.rb b/lib/datadog_api_client/v2/models/slo_report_post_response.rb index bd2127a2ae51..f5e5a1381545 100644 --- a/lib/datadog_api_client/v2/models/slo_report_post_response.rb +++ b/lib/datadog_api_client/v2/models/slo_report_post_response.rb @@ -24,6 +24,8 @@ class SLOReportPostResponse # The data portion of the SLO report response. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SLOReportPostResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SLOReportPostResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb b/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb index b414b0bbd4c7..3606c3a983db 100644 --- a/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +++ b/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb @@ -27,6 +27,8 @@ class SLOReportPostResponseData # The type of ID. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SLOReportPostResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SLOReportPostResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb b/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb index 907b271b7b86..094196042c7c 100644 --- a/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +++ b/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb @@ -24,6 +24,8 @@ class SLOReportStatusGetResponse # The data portion of the SLO report status response. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SLOReportStatusGetResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SLOReportStatusGetResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb b/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb index f272b1eb2cf8..b82df4d0ccf0 100644 --- a/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb @@ -24,6 +24,8 @@ class SLOReportStatusGetResponseAttributes # The status of the SLO report job. attr_accessor :status + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SLOReportStatusGetResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SLOReportStatusGetResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'status') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && status == o.status + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb b/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb index 8e86c34c52df..bf556b62b850 100644 --- a/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +++ b/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb @@ -30,6 +30,8 @@ class SLOReportStatusGetResponseData # The type of ID. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SLOReportStatusGetResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SLOReportStatusGetResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/span.rb b/lib/datadog_api_client/v2/models/span.rb index 915bd6854fa9..cabcadfd4af9 100644 --- a/lib/datadog_api_client/v2/models/span.rb +++ b/lib/datadog_api_client/v2/models/span.rb @@ -30,6 +30,8 @@ class Span # Type of the span. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Span` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Span`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb b/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb index 9bcb56e2e530..4126c23b3b96 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb @@ -30,6 +30,8 @@ class SpansAggregateBucket # The spans aggregate bucket type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateBucket` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateBucket`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb index 22441c4d7c0c..3d82be50b8bc 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb @@ -30,6 +30,8 @@ class SpansAggregateBucketAttributes # A map of the metric name -> value for regular compute or list of values for a timeseries. attr_accessor :computes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateBucketAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateBucketAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'by') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) by == o.by && compute == o.compute && computes == o.computes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb index ffe09cda512e..e931308bebc7 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb @@ -27,6 +27,8 @@ class SpansAggregateBucketValueTimeseriesPoint # The value for this point. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateBucketValueTimeseriesPoint` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateBucketValueTimeseriesPoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && time == o.time && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_data.rb b/lib/datadog_api_client/v2/models/spans_aggregate_data.rb index c684a399c2cb..67fb9451f377 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_data.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_data.rb @@ -27,6 +27,8 @@ class SpansAggregateData # The type of resource. The value should always be aggregate_request. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_request.rb b/lib/datadog_api_client/v2/models/spans_aggregate_request.rb index 548afddc8fb1..145a0c944194 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_request.rb @@ -24,6 +24,8 @@ class SpansAggregateRequest # The object containing the query content. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb b/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb index 180b41a6b07a..e88d07e66ab3 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb @@ -34,6 +34,8 @@ class SpansAggregateRequestAttributes # Note: You should only supply timezone or time offset but not both otherwise the query will fail. attr_accessor :options + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -93,6 +97,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -103,6 +127,7 @@ def ==(o) filter == o.filter && group_by == o.group_by && options == o.options + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_response.rb b/lib/datadog_api_client/v2/models/spans_aggregate_response.rb index b555fc65bed2..a86d8a8de453 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_response.rb @@ -27,6 +27,8 @@ class SpansAggregateResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb b/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb index d0f6f147bfae..ec23c01e36c6 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb @@ -34,6 +34,8 @@ class SpansAggregateResponseMetadata # warnings are present in the response. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'elapsed') @@ -91,6 +95,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -101,6 +125,7 @@ def ==(o) request_id == o.request_id && status == o.status && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb b/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb index 76af6a1e2439..203f73a2bb5b 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb @@ -33,6 +33,8 @@ class SpansAggregateSort # The type of sorting algorithm. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateSort` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) metric == o.metric && order == o.order && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_attributes.rb b/lib/datadog_api_client/v2/models/spans_attributes.rb index ade96beef54b..e0d32b8548ea 100644 --- a/lib/datadog_api_client/v2/models/spans_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_attributes.rb @@ -74,6 +74,8 @@ class SpansAttributes # The type of the span. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -130,12 +132,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -209,6 +213,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -232,6 +256,7 @@ def ==(o) tags == o.tags && trace_id == o.trace_id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_compute.rb b/lib/datadog_api_client/v2/models/spans_compute.rb index 0bbe035c42e6..080097c19f84 100644 --- a/lib/datadog_api_client/v2/models/spans_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_compute.rb @@ -34,6 +34,8 @@ class SpansCompute # The type of compute. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation') @@ -107,6 +111,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) interval == o.interval && metric == o.metric && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_filter.rb b/lib/datadog_api_client/v2/models/spans_filter.rb index a7dc300b07b1..1dda6e9e23c2 100644 --- a/lib/datadog_api_client/v2/models/spans_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_filter.rb @@ -24,6 +24,8 @@ class SpansFilter # The search query - following the [span search syntax](https://docs.datadoghq.com/tracing/trace_explorer/query_syntax/). attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_filter_create.rb b/lib/datadog_api_client/v2/models/spans_filter_create.rb index 7fb34cd4fd2e..99e3fd636f04 100644 --- a/lib/datadog_api_client/v2/models/spans_filter_create.rb +++ b/lib/datadog_api_client/v2/models/spans_filter_create.rb @@ -24,6 +24,8 @@ class SpansFilterCreate # The search query - following the [span search syntax](https://docs.datadoghq.com/tracing/trace_explorer/query_syntax/). attr_reader :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansFilterCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansFilterCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -79,6 +83,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_group_by.rb b/lib/datadog_api_client/v2/models/spans_group_by.rb index 30180a9fef23..c59d0c716ad7 100644 --- a/lib/datadog_api_client/v2/models/spans_group_by.rb +++ b/lib/datadog_api_client/v2/models/spans_group_by.rb @@ -40,6 +40,8 @@ class SpansGroupBy # A resulting object to put the given computes in over all the matching records. attr_accessor :total + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -74,12 +76,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'facet') @@ -125,6 +129,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -137,6 +161,7 @@ def ==(o) missing == o.missing && sort == o.sort && total == o.total + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb b/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb index bcd9e0ea5342..b127b4ccfdc1 100644 --- a/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb @@ -33,6 +33,8 @@ class SpansGroupByHistogram # (values smaller than this one are filtered out). attr_reader :min + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansGroupByHistogram` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansGroupByHistogram`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'interval') @@ -122,6 +126,26 @@ def min=(min) @min = min end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -131,6 +155,7 @@ def ==(o) interval == o.interval && max == o.max && min == o.min + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_list_request.rb b/lib/datadog_api_client/v2/models/spans_list_request.rb index 0306cb4f8fd8..25d9835ddcbc 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request.rb @@ -24,6 +24,8 @@ class SpansListRequest # The object containing the query content. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansListRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansListRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb b/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb index 3d60bddea7a7..4d40785c143c 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb @@ -34,6 +34,8 @@ class SpansListRequestAttributes # Sort parameters when querying spans. attr_accessor :sort + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -64,12 +66,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansListRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansListRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'filter') @@ -89,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) options == o.options && page == o.page && sort == o.sort + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_list_request_data.rb b/lib/datadog_api_client/v2/models/spans_list_request_data.rb index 8c49401a9032..3b7aeb4e4efe 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request_data.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request_data.rb @@ -27,6 +27,8 @@ class SpansListRequestData # The type of resource. The value should always be search_request. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansListRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansListRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_list_request_page.rb b/lib/datadog_api_client/v2/models/spans_list_request_page.rb index f9453fb893b5..34663d15be6d 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request_page.rb @@ -27,6 +27,8 @@ class SpansListRequestPage # Maximum number of spans in the response. attr_reader :limit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansListRequestPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansListRequestPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'cursor') @@ -88,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && cursor == o.cursor && limit == o.limit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_list_response.rb b/lib/datadog_api_client/v2/models/spans_list_response.rb index 735a87509439..4e1c1a095748 100644 --- a/lib/datadog_api_client/v2/models/spans_list_response.rb +++ b/lib/datadog_api_client/v2/models/spans_list_response.rb @@ -30,6 +30,8 @@ class SpansListResponse # The metadata associated with a request. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansListResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) data == o.data && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_list_response_links.rb b/lib/datadog_api_client/v2/models/spans_list_response_links.rb index 582e93fc0782..43d910386f7c 100644 --- a/lib/datadog_api_client/v2/models/spans_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/spans_list_response_links.rb @@ -25,6 +25,8 @@ class SpansListResponseLinks # POST endpoint. attr_accessor :_next + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansListResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansListResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'_next') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && _next == o._next + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb b/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb index fe2b5c17170a..c799a21bc0ea 100644 --- a/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb @@ -37,6 +37,8 @@ class SpansListResponseMetadata # warnings are present in the response. attr_accessor :warnings + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansListResponseMetadata` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansListResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'elapsed') @@ -100,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -111,6 +135,7 @@ def ==(o) request_id == o.request_id && status == o.status && warnings == o.warnings + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_compute.rb b/lib/datadog_api_client/v2/models/spans_metric_compute.rb index f0870829e56f..c6ef1aef3d11 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_compute.rb @@ -31,6 +31,8 @@ class SpansMetricCompute # The path to the value the span-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation_type') @@ -98,6 +102,26 @@ def aggregation_type=(aggregation_type) @aggregation_type = aggregation_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) aggregation_type == o.aggregation_type && include_percentiles == o.include_percentiles && path == o.path + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb b/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb index c94e4fdc26e6..8125d129a04e 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb @@ -30,6 +30,8 @@ class SpansMetricCreateAttributes # The rules for the group by. attr_accessor :group_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -99,6 +103,26 @@ def compute=(compute) @compute = compute end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) compute == o.compute && filter == o.filter && group_by == o.group_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_create_data.rb b/lib/datadog_api_client/v2/models/spans_metric_create_data.rb index f80938da03e8..5cfb6ed71155 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_create_data.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_create_data.rb @@ -30,6 +30,8 @@ class SpansMetricCreateData # The type of resource. The value should always be spans_metrics. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_create_request.rb b/lib/datadog_api_client/v2/models/spans_metric_create_request.rb index b9b161e73dbe..241238825236 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_create_request.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_create_request.rb @@ -24,6 +24,8 @@ class SpansMetricCreateRequest # The new span-based metric properties. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_filter.rb b/lib/datadog_api_client/v2/models/spans_metric_filter.rb index c9b50ed71b18..10689fbcea6a 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_filter.rb @@ -24,6 +24,8 @@ class SpansMetricFilter # The search query - following the span search syntax. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_group_by.rb b/lib/datadog_api_client/v2/models/spans_metric_group_by.rb index 2442e8cb61c9..1f66e33249be 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_group_by.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_group_by.rb @@ -27,6 +27,8 @@ class SpansMetricGroupBy # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. attr_accessor :tag_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'path') @@ -88,6 +92,26 @@ def path=(path) @path = path end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && path == o.path && tag_name == o.tag_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_response.rb b/lib/datadog_api_client/v2/models/spans_metric_response.rb index 8f9fc0edf5ac..9e0017f0dc87 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response.rb @@ -24,6 +24,8 @@ class SpansMetricResponse # The span-based metric properties. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb b/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb index cb18633714cf..8a6f1eb2ab01 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb @@ -30,6 +30,8 @@ class SpansMetricResponseAttributes # The rules for the group by. attr_accessor :group_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) compute == o.compute && filter == o.filter && group_by == o.group_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb b/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb index 30ba422107be..dae2e559e488 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb @@ -31,6 +31,8 @@ class SpansMetricResponseCompute # The path to the value the span-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -59,12 +61,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricResponseCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricResponseCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'aggregation_type') @@ -80,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -89,6 +113,7 @@ def ==(o) aggregation_type == o.aggregation_type && include_percentiles == o.include_percentiles && path == o.path + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_data.rb b/lib/datadog_api_client/v2/models/spans_metric_response_data.rb index ff6271ee6771..febffe5d8fa2 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_data.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_data.rb @@ -30,6 +30,8 @@ class SpansMetricResponseData # The type of resource. The value should always be spans_metrics. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb b/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb index e73c23d9e5a4..1b9699bfa452 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb @@ -24,6 +24,8 @@ class SpansMetricResponseFilter # The search query - following the span search syntax. attr_accessor :query + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricResponseFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricResponseFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'query') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && query == o.query + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb b/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb index 265b0e2d593b..cdd7f71982cf 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb @@ -27,6 +27,8 @@ class SpansMetricResponseGroupBy # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. attr_accessor :tag_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricResponseGroupBy` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricResponseGroupBy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'path') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && path == o.path && tag_name == o.tag_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb b/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb index f69233584a3a..923b85e95558 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb @@ -30,6 +30,8 @@ class SpansMetricUpdateAttributes # The rules for the group by. attr_accessor :group_by + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'compute') @@ -81,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -90,6 +114,7 @@ def ==(o) compute == o.compute && filter == o.filter && group_by == o.group_by + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb b/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb index d92cb3eb07f8..b4e05371dd03 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb @@ -25,6 +25,8 @@ class SpansMetricUpdateCompute # Only present when the `aggregation_type` is `distribution`. attr_accessor :include_percentiles + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricUpdateCompute` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricUpdateCompute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'include_percentiles') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && include_percentiles == o.include_percentiles + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_data.rb b/lib/datadog_api_client/v2/models/spans_metric_update_data.rb index 869bd22298a7..0ec2abbf03d3 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_data.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_data.rb @@ -27,6 +27,8 @@ class SpansMetricUpdateData # The type of resource. The value should always be spans_metrics. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_request.rb b/lib/datadog_api_client/v2/models/spans_metric_update_request.rb index 8dad5ff8a334..338ff5dd6402 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_request.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_request.rb @@ -24,6 +24,8 @@ class SpansMetricUpdateRequest # The new span-based metric properties. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_metrics_response.rb b/lib/datadog_api_client/v2/models/spans_metrics_response.rb index 57f0cbecf8bd..07d056573e3d 100644 --- a/lib/datadog_api_client/v2/models/spans_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/spans_metrics_response.rb @@ -24,6 +24,8 @@ class SpansMetricsResponse # A list of span-based metric objects. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_query_filter.rb b/lib/datadog_api_client/v2/models/spans_query_filter.rb index c04e8c29cef7..69f736b85798 100644 --- a/lib/datadog_api_client/v2/models/spans_query_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_query_filter.rb @@ -30,6 +30,8 @@ class SpansQueryFilter # The maximum time for the requested spans, supports date-time ISO8601, date math, and regular timestamps (milliseconds). attr_accessor :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansQueryFilter` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansQueryFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'from') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) from == o.from && query == o.query && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_query_options.rb b/lib/datadog_api_client/v2/models/spans_query_options.rb index e4ca98013891..634efa14cd98 100644 --- a/lib/datadog_api_client/v2/models/spans_query_options.rb +++ b/lib/datadog_api_client/v2/models/spans_query_options.rb @@ -28,6 +28,8 @@ class SpansQueryOptions # The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York). attr_accessor :timezone + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -54,12 +56,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansQueryOptions` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansQueryOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'time_offset') @@ -71,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -79,6 +103,7 @@ def ==(o) self.class == o.class && time_offset == o.time_offset && timezone == o.timezone + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb b/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb index 5c369634dc40..a0bf243e62a4 100644 --- a/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb @@ -25,6 +25,8 @@ class SpansResponseMetadataPage # parameters with the addition of the `page[cursor]`. attr_accessor :after + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -49,12 +51,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansResponseMetadataPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansResponseMetadataPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'after') @@ -62,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -69,6 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && after == o.after + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/spans_warning.rb b/lib/datadog_api_client/v2/models/spans_warning.rb index ac37c1c7246e..ebc08de2b7ad 100644 --- a/lib/datadog_api_client/v2/models/spans_warning.rb +++ b/lib/datadog_api_client/v2/models/spans_warning.rb @@ -30,6 +30,8 @@ class SpansWarning # A short human-readable summary of the warning. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansWarning` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansWarning`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'code') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) code == o.code && detail == o.detail && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team.rb b/lib/datadog_api_client/v2/models/team.rb index 4291582a03d8..ee4fbfd93847 100644 --- a/lib/datadog_api_client/v2/models/team.rb +++ b/lib/datadog_api_client/v2/models/team.rb @@ -33,6 +33,8 @@ class Team # Team type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Team` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Team`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -128,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_attributes.rb b/lib/datadog_api_client/v2/models/team_attributes.rb index 38223f0f8f27..df66d4cb6e2e 100644 --- a/lib/datadog_api_client/v2/models/team_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_attributes.rb @@ -57,6 +57,8 @@ class TeamAttributes # Collection of visible modules for the team attr_accessor :visible_modules + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -114,12 +116,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'avatar') @@ -245,6 +249,26 @@ def user_count=(user_count) @user_count = user_count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -263,6 +287,7 @@ def ==(o) summary == o.summary && user_count == o.user_count && visible_modules == o.visible_modules + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_create.rb b/lib/datadog_api_client/v2/models/team_create.rb index 747cb60d868a..4850da551abe 100644 --- a/lib/datadog_api_client/v2/models/team_create.rb +++ b/lib/datadog_api_client/v2/models/team_create.rb @@ -30,6 +30,8 @@ class TeamCreate # Team type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_create_attributes.rb b/lib/datadog_api_client/v2/models/team_create_attributes.rb index 19058e787b6b..eef50aa2f117 100644 --- a/lib/datadog_api_client/v2/models/team_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_create_attributes.rb @@ -42,6 +42,8 @@ class TeamCreateAttributes # Collection of visible modules for the team attr_accessor :visible_modules + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -87,12 +89,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'avatar') @@ -165,6 +169,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -178,6 +202,7 @@ def ==(o) hidden_modules == o.hidden_modules && name == o.name && visible_modules == o.visible_modules + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_create_relationships.rb b/lib/datadog_api_client/v2/models/team_create_relationships.rb index 5d489e0aee13..5a8fceb1ee2f 100644 --- a/lib/datadog_api_client/v2/models/team_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/team_create_relationships.rb @@ -24,6 +24,8 @@ class TeamCreateRelationships # Relationship to users. attr_accessor :users + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamCreateRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamCreateRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'users') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && users == o.users + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_create_request.rb b/lib/datadog_api_client/v2/models/team_create_request.rb index 2cbabf39db7a..8f3f64841549 100644 --- a/lib/datadog_api_client/v2/models/team_create_request.rb +++ b/lib/datadog_api_client/v2/models/team_create_request.rb @@ -24,6 +24,8 @@ class TeamCreateRequest # Team create attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_link.rb b/lib/datadog_api_client/v2/models/team_link.rb index e0c0d09b0e48..354b57ae00bd 100644 --- a/lib/datadog_api_client/v2/models/team_link.rb +++ b/lib/datadog_api_client/v2/models/team_link.rb @@ -30,6 +30,8 @@ class TeamLink # Team link type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamLink` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamLink`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_link_attributes.rb b/lib/datadog_api_client/v2/models/team_link_attributes.rb index 0acb805e596e..54133b6163fb 100644 --- a/lib/datadog_api_client/v2/models/team_link_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_link_attributes.rb @@ -33,6 +33,8 @@ class TeamLinkAttributes # The URL for the link attr_reader :url + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamLinkAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamLinkAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'label') @@ -132,6 +136,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -142,6 +166,7 @@ def ==(o) position == o.position && team_id == o.team_id && url == o.url + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_link_create.rb b/lib/datadog_api_client/v2/models/team_link_create.rb index 6466dbfda1a9..c78c86a985d6 100644 --- a/lib/datadog_api_client/v2/models/team_link_create.rb +++ b/lib/datadog_api_client/v2/models/team_link_create.rb @@ -27,6 +27,8 @@ class TeamLinkCreate # Team link type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamLinkCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamLinkCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_link_create_request.rb b/lib/datadog_api_client/v2/models/team_link_create_request.rb index 4ce9fe2fec3f..ccbb4a91e3a7 100644 --- a/lib/datadog_api_client/v2/models/team_link_create_request.rb +++ b/lib/datadog_api_client/v2/models/team_link_create_request.rb @@ -24,6 +24,8 @@ class TeamLinkCreateRequest # Team link create attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamLinkCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamLinkCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_link_response.rb b/lib/datadog_api_client/v2/models/team_link_response.rb index 22d6e4422246..73f448f2ccfb 100644 --- a/lib/datadog_api_client/v2/models/team_link_response.rb +++ b/lib/datadog_api_client/v2/models/team_link_response.rb @@ -24,6 +24,8 @@ class TeamLinkResponse # Team link attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamLinkResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamLinkResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_links_response.rb b/lib/datadog_api_client/v2/models/team_links_response.rb index 6742a09d284e..d28d2b3f68d3 100644 --- a/lib/datadog_api_client/v2/models/team_links_response.rb +++ b/lib/datadog_api_client/v2/models/team_links_response.rb @@ -24,6 +24,8 @@ class TeamLinksResponse # Team links response data attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamLinksResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamLinksResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_permission_setting.rb b/lib/datadog_api_client/v2/models/team_permission_setting.rb index 3abf8e917b43..27fa3b9568d8 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting.rb @@ -30,6 +30,8 @@ class TeamPermissionSetting # Team permission setting type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamPermissionSetting` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamPermissionSetting`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb b/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb index 6949be957ade..59292c7d23a3 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb @@ -36,6 +36,8 @@ class TeamPermissionSettingAttributes # What type of user is allowed to perform the specified action attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamPermissionSettingAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamPermissionSettingAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'action') @@ -99,6 +103,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -110,6 +134,7 @@ def ==(o) options == o.options && title == o.title && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_response.rb b/lib/datadog_api_client/v2/models/team_permission_setting_response.rb index 452776e17c32..45a3fd7fb700 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_response.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_response.rb @@ -24,6 +24,8 @@ class TeamPermissionSettingResponse # Team permission setting attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamPermissionSettingResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamPermissionSettingResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_update.rb b/lib/datadog_api_client/v2/models/team_permission_setting_update.rb index 6c169250da1c..b3a4c28b5261 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_update.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_update.rb @@ -27,6 +27,8 @@ class TeamPermissionSettingUpdate # Team permission setting type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamPermissionSettingUpdate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamPermissionSettingUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb b/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb index 70027f72af28..3a6e0f02288f 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb @@ -24,6 +24,8 @@ class TeamPermissionSettingUpdateAttributes # What type of user is allowed to perform the specified action attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamPermissionSettingUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamPermissionSettingUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'value') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb b/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb index ec00fadb975d..650c13465fd3 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb @@ -24,6 +24,8 @@ class TeamPermissionSettingUpdateRequest # Team permission setting update attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamPermissionSettingUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamPermissionSettingUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_permission_settings_response.rb b/lib/datadog_api_client/v2/models/team_permission_settings_response.rb index 4789ba474b97..474145882c88 100644 --- a/lib/datadog_api_client/v2/models/team_permission_settings_response.rb +++ b/lib/datadog_api_client/v2/models/team_permission_settings_response.rb @@ -24,6 +24,8 @@ class TeamPermissionSettingsResponse # Team permission settings response data attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamPermissionSettingsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamPermissionSettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_relationships.rb b/lib/datadog_api_client/v2/models/team_relationships.rb index 7709ad84faeb..bcd521b1916e 100644 --- a/lib/datadog_api_client/v2/models/team_relationships.rb +++ b/lib/datadog_api_client/v2/models/team_relationships.rb @@ -27,6 +27,8 @@ class TeamRelationships # Relationship between a user team permission and a team attr_accessor :user_team_permissions + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'team_links') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && team_links == o.team_links && user_team_permissions == o.user_team_permissions + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_relationships_links.rb b/lib/datadog_api_client/v2/models/team_relationships_links.rb index fcb9f37b66a5..a3898b6219e6 100644 --- a/lib/datadog_api_client/v2/models/team_relationships_links.rb +++ b/lib/datadog_api_client/v2/models/team_relationships_links.rb @@ -24,6 +24,8 @@ class TeamRelationshipsLinks # Related link. attr_accessor :related + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamRelationshipsLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamRelationshipsLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'related') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && related == o.related + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_response.rb b/lib/datadog_api_client/v2/models/team_response.rb index acd78cf90218..cc100360ade7 100644 --- a/lib/datadog_api_client/v2/models/team_response.rb +++ b/lib/datadog_api_client/v2/models/team_response.rb @@ -24,6 +24,8 @@ class TeamResponse # A team attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_update.rb b/lib/datadog_api_client/v2/models/team_update.rb index 9a61fd31dc3c..25d56989c757 100644 --- a/lib/datadog_api_client/v2/models/team_update.rb +++ b/lib/datadog_api_client/v2/models/team_update.rb @@ -30,6 +30,8 @@ class TeamUpdate # Team type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamUpdate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_update_attributes.rb b/lib/datadog_api_client/v2/models/team_update_attributes.rb index a187dac1a63c..ff188cc581ad 100644 --- a/lib/datadog_api_client/v2/models/team_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_update_attributes.rb @@ -45,6 +45,8 @@ class TeamUpdateAttributes # Collection of visible modules for the team attr_accessor :visible_modules + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -92,12 +94,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'avatar') @@ -189,6 +193,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -203,6 +227,7 @@ def ==(o) hidden_modules == o.hidden_modules && name == o.name && visible_modules == o.visible_modules + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_update_relationships.rb b/lib/datadog_api_client/v2/models/team_update_relationships.rb index 3665f4a88c36..74c6e29fff9c 100644 --- a/lib/datadog_api_client/v2/models/team_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/team_update_relationships.rb @@ -24,6 +24,8 @@ class TeamUpdateRelationships # Relationship between a team and a team link attr_accessor :team_links + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamUpdateRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamUpdateRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'team_links') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && team_links == o.team_links + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/team_update_request.rb b/lib/datadog_api_client/v2/models/team_update_request.rb index 68bd8ee1b22e..5769778f2af1 100644 --- a/lib/datadog_api_client/v2/models/team_update_request.rb +++ b/lib/datadog_api_client/v2/models/team_update_request.rb @@ -24,6 +24,8 @@ class TeamUpdateRequest # Team update request attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/teams_response.rb b/lib/datadog_api_client/v2/models/teams_response.rb index ab8464ab3203..4637c2ac8bfd 100644 --- a/lib/datadog_api_client/v2/models/teams_response.rb +++ b/lib/datadog_api_client/v2/models/teams_response.rb @@ -33,6 +33,8 @@ class TeamsResponse # Teams response metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -92,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -102,6 +126,7 @@ def ==(o) included == o.included && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/teams_response_links.rb b/lib/datadog_api_client/v2/models/teams_response_links.rb index 6166a90a2aa5..d6971279fe85 100644 --- a/lib/datadog_api_client/v2/models/teams_response_links.rb +++ b/lib/datadog_api_client/v2/models/teams_response_links.rb @@ -36,6 +36,8 @@ class TeamsResponseLinks # Current link. attr_accessor :_self + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -77,12 +79,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamsResponseLinks` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamsResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'first') @@ -106,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) _next == o._next && prev == o.prev && _self == o._self + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/teams_response_meta.rb b/lib/datadog_api_client/v2/models/teams_response_meta.rb index 8768e9ba2727..d0df35cf4663 100644 --- a/lib/datadog_api_client/v2/models/teams_response_meta.rb +++ b/lib/datadog_api_client/v2/models/teams_response_meta.rb @@ -24,6 +24,8 @@ class TeamsResponseMeta # Teams response metadata. attr_accessor :pagination + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamsResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamsResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'pagination') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && pagination == o.pagination + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb index a62d4c2962a3..d169f3dd87dd 100644 --- a/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb @@ -45,6 +45,8 @@ class TeamsResponseMetaPagination # Offset type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -83,12 +85,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamsResponseMetaPagination` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamsResponseMetaPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'first_offset') @@ -124,6 +128,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,6 +162,7 @@ def ==(o) prev_offset == o.prev_offset && total == o.total && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb b/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb index 58e2cd3e636d..15f6c2d157fa 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb @@ -24,6 +24,8 @@ class TimeseriesFormulaQueryRequest # A single timeseries query to be executed. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TimeseriesFormulaQueryRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TimeseriesFormulaQueryRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb b/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb index b172743e1b51..fc593b0ea1a9 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb @@ -27,6 +27,8 @@ class TimeseriesFormulaQueryResponse # The error generated by the request. attr_accessor :errors + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TimeseriesFormulaQueryResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TimeseriesFormulaQueryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && data == o.data && errors == o.errors + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_request.rb b/lib/datadog_api_client/v2/models/timeseries_formula_request.rb index 5252894a6792..d2cc1099759d 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_request.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_request.rb @@ -27,6 +27,8 @@ class TimeseriesFormulaRequest # The type of the resource. The value should always be timeseries_request. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TimeseriesFormulaRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TimeseriesFormulaRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb b/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb index bd9a1ca2093a..e7aae8a68e2c 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb @@ -39,6 +39,8 @@ class TimeseriesFormulaRequestAttributes # End date (exclusive) of the query in milliseconds since the Unix epoch. attr_reader :to + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -71,12 +73,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TimeseriesFormulaRequestAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TimeseriesFormulaRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'formulas') @@ -144,6 +148,26 @@ def to=(to) @to = to end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -155,6 +179,7 @@ def ==(o) interval == o.interval && queries == o.queries && to == o.to + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/timeseries_response.rb b/lib/datadog_api_client/v2/models/timeseries_response.rb index 482e51b92a6b..1608be3a93f9 100644 --- a/lib/datadog_api_client/v2/models/timeseries_response.rb +++ b/lib/datadog_api_client/v2/models/timeseries_response.rb @@ -27,6 +27,8 @@ class TimeseriesResponse # The type of the resource. The value should always be timeseries_response. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TimeseriesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TimeseriesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb b/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb index 46108bad5776..f94629c3924e 100644 --- a/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb @@ -30,6 +30,8 @@ class TimeseriesResponseAttributes # Array of value-arrays. The index here corresponds to the index in the `formulas` or `queries` array from the request. attr_accessor :values + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TimeseriesResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TimeseriesResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'series') @@ -85,6 +89,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -94,6 +118,7 @@ def ==(o) series == o.series && times == o.times && values == o.values + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/timeseries_response_series.rb b/lib/datadog_api_client/v2/models/timeseries_response_series.rb index 6fa14f84eb08..2d4e27c32ff2 100644 --- a/lib/datadog_api_client/v2/models/timeseries_response_series.rb +++ b/lib/datadog_api_client/v2/models/timeseries_response_series.rb @@ -33,6 +33,8 @@ class TimeseriesResponseSeries # If the second element is not present, the API returns null. attr_accessor :unit + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TimeseriesResponseSeries` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TimeseriesResponseSeries`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'group_tags') @@ -112,6 +116,26 @@ def query_index=(query_index) @query_index = query_index end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -121,6 +145,7 @@ def ==(o) group_tags == o.group_tags && query_index == o.query_index && unit == o.unit + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/unit.rb b/lib/datadog_api_client/v2/models/unit.rb index 6c1ad7637690..6fd70417303d 100644 --- a/lib/datadog_api_client/v2/models/unit.rb +++ b/lib/datadog_api_client/v2/models/unit.rb @@ -36,6 +36,8 @@ class Unit # Abbreviation of the unit. attr_accessor :short_name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -68,12 +70,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Unit` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Unit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'family') @@ -97,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -108,6 +132,7 @@ def ==(o) plural == o.plural && scale_factor == o.scale_factor && short_name == o.short_name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/update_open_api_response.rb b/lib/datadog_api_client/v2/models/update_open_api_response.rb index 20e0e7ead141..4fdbd9cf62d6 100644 --- a/lib/datadog_api_client/v2/models/update_open_api_response.rb +++ b/lib/datadog_api_client/v2/models/update_open_api_response.rb @@ -24,6 +24,8 @@ class UpdateOpenAPIResponse # Data envelope for `UpdateOpenAPIResponse`. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UpdateOpenAPIResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UpdateOpenAPIResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb b/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb index 7bfcd0127dd7..ab4aee9e5a6a 100644 --- a/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb @@ -24,6 +24,8 @@ class UpdateOpenAPIResponseAttributes # List of endpoints which couldn't be parsed. attr_accessor :failed_endpoints + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UpdateOpenAPIResponseAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UpdateOpenAPIResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'failed_endpoints') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && failed_endpoints == o.failed_endpoints + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/update_open_api_response_data.rb b/lib/datadog_api_client/v2/models/update_open_api_response_data.rb index 0179ae6dd147..f1b577e82717 100644 --- a/lib/datadog_api_client/v2/models/update_open_api_response_data.rb +++ b/lib/datadog_api_client/v2/models/update_open_api_response_data.rb @@ -27,6 +27,8 @@ class UpdateOpenAPIResponseData # API identifier. attr_accessor :id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UpdateOpenAPIResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UpdateOpenAPIResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && id == o.id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/update_rule_request.rb b/lib/datadog_api_client/v2/models/update_rule_request.rb index a96618136374..3710a4709c95 100644 --- a/lib/datadog_api_client/v2/models/update_rule_request.rb +++ b/lib/datadog_api_client/v2/models/update_rule_request.rb @@ -24,6 +24,8 @@ class UpdateRuleRequest # Data for the request to update a scorecard rule. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UpdateRuleRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UpdateRuleRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/update_rule_request_data.rb b/lib/datadog_api_client/v2/models/update_rule_request_data.rb index 0343d81c1f06..871c17d4b4dc 100644 --- a/lib/datadog_api_client/v2/models/update_rule_request_data.rb +++ b/lib/datadog_api_client/v2/models/update_rule_request_data.rb @@ -27,6 +27,8 @@ class UpdateRuleRequestData # The JSON:API type for scorecard rules. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UpdateRuleRequestData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UpdateRuleRequestData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/update_rule_response.rb b/lib/datadog_api_client/v2/models/update_rule_response.rb index e901769379ba..19d4dcaeba1c 100644 --- a/lib/datadog_api_client/v2/models/update_rule_response.rb +++ b/lib/datadog_api_client/v2/models/update_rule_response.rb @@ -24,6 +24,8 @@ class UpdateRuleResponse # The data for a rule update response. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UpdateRuleResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UpdateRuleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/update_rule_response_data.rb b/lib/datadog_api_client/v2/models/update_rule_response_data.rb index 67b6c00c200e..bac908be502d 100644 --- a/lib/datadog_api_client/v2/models/update_rule_response_data.rb +++ b/lib/datadog_api_client/v2/models/update_rule_response_data.rb @@ -33,6 +33,8 @@ class UpdateRuleResponseData # The JSON:API type for scorecard rules. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UpdateRuleResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UpdateRuleResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb b/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb index e4fe1f6de3d5..a590953f4b4e 100644 --- a/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb +++ b/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb @@ -24,6 +24,8 @@ class UsageApplicationSecurityMonitoringResponse # Response containing Application Security Monitoring usage. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsageApplicationSecurityMonitoringResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UsageApplicationSecurityMonitoringResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/usage_attributes_object.rb b/lib/datadog_api_client/v2/models/usage_attributes_object.rb index 436676fc256a..ffd8644c4e96 100644 --- a/lib/datadog_api_client/v2/models/usage_attributes_object.rb +++ b/lib/datadog_api_client/v2/models/usage_attributes_object.rb @@ -39,6 +39,8 @@ class UsageAttributesObject # Usage type that is being measured. attr_accessor :usage_type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -73,12 +75,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsageAttributesObject` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UsageAttributesObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'org_name') @@ -108,6 +112,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -120,6 +144,7 @@ def ==(o) region == o.region && timeseries == o.timeseries && usage_type == o.usage_type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/usage_data_object.rb b/lib/datadog_api_client/v2/models/usage_data_object.rb index 63d99db2568d..0aab723fc922 100644 --- a/lib/datadog_api_client/v2/models/usage_data_object.rb +++ b/lib/datadog_api_client/v2/models/usage_data_object.rb @@ -30,6 +30,8 @@ class UsageDataObject # Type of usage data. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsageDataObject` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UsageDataObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb b/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb index 0367732c8791..84960bdb2747 100644 --- a/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb +++ b/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb @@ -24,6 +24,8 @@ class UsageLambdaTracedInvocationsResponse # Response containing Lambda Traced Invocations usage. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsageLambdaTracedInvocationsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UsageLambdaTracedInvocationsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb b/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb index a7a3a1fac5be..260323100be3 100644 --- a/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb +++ b/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb @@ -24,6 +24,8 @@ class UsageObservabilityPipelinesResponse # Response containing Observability Pipelines usage. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsageObservabilityPipelinesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UsageObservabilityPipelinesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/usage_time_series_object.rb b/lib/datadog_api_client/v2/models/usage_time_series_object.rb index 555c488da0a8..7f123cf073de 100644 --- a/lib/datadog_api_client/v2/models/usage_time_series_object.rb +++ b/lib/datadog_api_client/v2/models/usage_time_series_object.rb @@ -27,6 +27,8 @@ class UsageTimeSeriesObject # Contains the number measured for the given usage_type during the hour. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -61,12 +63,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsageTimeSeriesObject` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UsageTimeSeriesObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'timestamp') @@ -78,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) self.class == o.class && timestamp == o.timestamp && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 1da7e912be5b..57cf97829f91 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -33,6 +33,8 @@ class User # Users resource type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::User` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::User`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index 41fda9d781bc..91d8aa455c80 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -57,6 +57,8 @@ class UserAttributes # Whether the user is verified. attr_accessor :verified + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -112,12 +114,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -169,6 +173,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -187,6 +211,7 @@ def ==(o) status == o.status && title == o.title && verified == o.verified + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_create_attributes.rb b/lib/datadog_api_client/v2/models/user_create_attributes.rb index 1965e05bf90a..cafc4cfd157f 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -30,6 +30,8 @@ class UserCreateAttributes # The title of the user. attr_accessor :title + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserCreateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'email') @@ -97,6 +101,26 @@ def email=(email) @email = email end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) email == o.email && name == o.name && title == o.title + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_create_data.rb b/lib/datadog_api_client/v2/models/user_create_data.rb index 87cc6812961f..1405f7caaf47 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -30,6 +30,8 @@ class UserCreateData # Users resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserCreateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserCreateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_create_request.rb b/lib/datadog_api_client/v2/models/user_create_request.rb index cd6428a5fb1b..29507599b0c3 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -24,6 +24,8 @@ class UserCreateRequest # Object to create a user. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_invitation_data.rb b/lib/datadog_api_client/v2/models/user_invitation_data.rb index d1a120cf9eec..27859d19db8e 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -27,6 +27,8 @@ class UserInvitationData # User invitations type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserInvitationData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'relationships') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb b/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb index cf6dcc4d068c..b87669c46036 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb @@ -33,6 +33,8 @@ class UserInvitationDataAttributes # UUID of the user invitation. attr_accessor :uuid + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserInvitationDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'created_at') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) expires_at == o.expires_at && invite_type == o.invite_type && uuid == o.uuid + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb index d1b4e3c3db6e..26af6f9c6f59 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -24,6 +24,8 @@ class UserInvitationRelationships # Relationship to user. attr_reader :user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserInvitationRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'user') @@ -79,6 +83,26 @@ def user=(user) @user = user end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && user == o.user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_invitation_response.rb b/lib/datadog_api_client/v2/models/user_invitation_response.rb index 60118b47a394..7fef94878fcf 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -24,6 +24,8 @@ class UserInvitationResponse # Object of a user invitation returned by the API. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserInvitationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_invitation_response_data.rb b/lib/datadog_api_client/v2/models/user_invitation_response_data.rb index 825c98744d69..c50ed06b362c 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response_data.rb @@ -33,6 +33,8 @@ class UserInvitationResponseData # User invitations type. attr_accessor :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserInvitationResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_invitations_request.rb b/lib/datadog_api_client/v2/models/user_invitations_request.rb index dd5ecd2adbf8..f755d91d5bc0 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -24,6 +24,8 @@ class UserInvitationsRequest # List of user invitations. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationsRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserInvitationsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_invitations_response.rb b/lib/datadog_api_client/v2/models/user_invitations_response.rb index a3be7d3831be..47c1cceb2f2b 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -24,6 +24,8 @@ class UserInvitationsResponse # Array of user invitations. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserInvitationsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -63,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -70,6 +94,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_relationship_data.rb b/lib/datadog_api_client/v2/models/user_relationship_data.rb index 86ea0cd21af3..5b12437600f8 100644 --- a/lib/datadog_api_client/v2/models/user_relationship_data.rb +++ b/lib/datadog_api_client/v2/models/user_relationship_data.rb @@ -27,6 +27,8 @@ class UserRelationshipData # User resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserRelationshipData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserRelationshipData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -99,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -107,6 +131,7 @@ def ==(o) self.class == o.class && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index efd9637da6ce..2950c9e65bb0 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -24,6 +24,8 @@ class UserRelationships # Relationship to roles. attr_accessor :roles + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'roles') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && roles == o.roles + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index c19119feac43..1b78dd68ad6b 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -27,6 +27,8 @@ class UserResponse # Array of objects related to the user. attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_response_relationships.rb b/lib/datadog_api_client/v2/models/user_response_relationships.rb index ff8bfcd13405..d8f4e91f6eda 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -33,6 +33,8 @@ class UserResponseRelationships # Relationship to roles. attr_accessor :roles + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserResponseRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserResponseRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'org') @@ -88,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -98,6 +122,7 @@ def ==(o) other_orgs == o.other_orgs && other_users == o.other_users && roles == o.roles + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team.rb b/lib/datadog_api_client/v2/models/user_team.rb index dcf51ff182ba..962bfe24746f 100644 --- a/lib/datadog_api_client/v2/models/user_team.rb +++ b/lib/datadog_api_client/v2/models/user_team.rb @@ -33,6 +33,8 @@ class UserTeam # Team membership type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeam` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeam`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -117,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -127,6 +151,7 @@ def ==(o) id == o.id && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team_attributes.rb b/lib/datadog_api_client/v2/models/user_team_attributes.rb index bafbd73723fb..a7ffec1bd835 100644 --- a/lib/datadog_api_client/v2/models/user_team_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_team_attributes.rb @@ -31,6 +31,8 @@ class UserTeamAttributes # The user's role within the team attr_accessor :role + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -69,12 +71,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'provisioned_by') @@ -90,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -99,6 +123,7 @@ def ==(o) provisioned_by == o.provisioned_by && provisioned_by_id == o.provisioned_by_id && role == o.role + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team_create.rb b/lib/datadog_api_client/v2/models/user_team_create.rb index f2795c0de283..2fe95f61e066 100644 --- a/lib/datadog_api_client/v2/models/user_team_create.rb +++ b/lib/datadog_api_client/v2/models/user_team_create.rb @@ -30,6 +30,8 @@ class UserTeamCreate # Team membership type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamCreate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -97,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -106,6 +130,7 @@ def ==(o) attributes == o.attributes && relationships == o.relationships && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team_permission.rb b/lib/datadog_api_client/v2/models/user_team_permission.rb index 76d574e17f50..7660fce9739c 100644 --- a/lib/datadog_api_client/v2/models/user_team_permission.rb +++ b/lib/datadog_api_client/v2/models/user_team_permission.rb @@ -30,6 +30,8 @@ class UserTeamPermission # User team permission type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamPermission` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamPermission`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -108,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -117,6 +141,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb b/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb index 4b740ca01b6f..968d897bdce5 100644 --- a/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb @@ -24,6 +24,8 @@ class UserTeamPermissionAttributes # Object of team permission actions and boolean values that a logged in user can perform on this team. attr_accessor :permissions + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamPermissionAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamPermissionAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'permissions') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && permissions == o.permissions + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team_relationships.rb b/lib/datadog_api_client/v2/models/user_team_relationships.rb index 6217ee82aa28..a525edfdff45 100644 --- a/lib/datadog_api_client/v2/models/user_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_team_relationships.rb @@ -27,6 +27,8 @@ class UserTeamRelationships # Relationship between team membership and user attr_accessor :user + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamRelationships` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'team') @@ -70,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -78,6 +102,7 @@ def ==(o) self.class == o.class && team == o.team && user == o.user + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team_request.rb b/lib/datadog_api_client/v2/models/user_team_request.rb index 4164755f2ba6..e8e512616fcc 100644 --- a/lib/datadog_api_client/v2/models/user_team_request.rb +++ b/lib/datadog_api_client/v2/models/user_team_request.rb @@ -24,6 +24,8 @@ class UserTeamRequest # A user's relationship with a team attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team_response.rb b/lib/datadog_api_client/v2/models/user_team_response.rb index a334add88fc0..21e33e7053f9 100644 --- a/lib/datadog_api_client/v2/models/user_team_response.rb +++ b/lib/datadog_api_client/v2/models/user_team_response.rb @@ -27,6 +27,8 @@ class UserTeamResponse # Resources related to the team memberships attr_accessor :included + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && included == o.included + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team_update.rb b/lib/datadog_api_client/v2/models/user_team_update.rb index 004e28fc3b13..bfdff8f07829 100644 --- a/lib/datadog_api_client/v2/models/user_team_update.rb +++ b/lib/datadog_api_client/v2/models/user_team_update.rb @@ -27,6 +27,8 @@ class UserTeamUpdate # Team membership type attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamUpdate` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -88,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -96,6 +120,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_team_update_request.rb b/lib/datadog_api_client/v2/models/user_team_update_request.rb index 37cf23f6a8e7..f13ccb41ad42 100644 --- a/lib/datadog_api_client/v2/models/user_team_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_team_update_request.rb @@ -24,6 +24,8 @@ class UserTeamUpdateRequest # A user's relationship with a team attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_teams_response.rb b/lib/datadog_api_client/v2/models/user_teams_response.rb index 2730a9c655d6..2e0d377121cc 100644 --- a/lib/datadog_api_client/v2/models/user_teams_response.rb +++ b/lib/datadog_api_client/v2/models/user_teams_response.rb @@ -33,6 +33,8 @@ class UserTeamsResponse # Teams response metadata. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -63,12 +65,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserTeamsResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserTeamsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -92,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -102,6 +126,7 @@ def ==(o) included == o.included && links == o.links && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_update_attributes.rb b/lib/datadog_api_client/v2/models/user_update_attributes.rb index 6c400aad691a..b1680102e00a 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -30,6 +30,8 @@ class UserUpdateAttributes # The name of the user. attr_accessor :name + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserUpdateAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'disabled') @@ -79,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) disabled == o.disabled && email == o.email && name == o.name + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_update_data.rb b/lib/datadog_api_client/v2/models/user_update_data.rb index 2580e8f709ba..44dd7992737d 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -30,6 +30,8 @@ class UserUpdateData # Users resource type. attr_reader :type + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserUpdateData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -119,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -128,6 +152,7 @@ def ==(o) attributes == o.attributes && id == o.id && type == o.type + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/user_update_request.rb b/lib/datadog_api_client/v2/models/user_update_request.rb index 530e7024d54b..3041665e48b7 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -24,6 +24,8 @@ class UserUpdateRequest # Object to update a user. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserUpdateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UserUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -79,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -86,6 +110,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/users_relationship.rb b/lib/datadog_api_client/v2/models/users_relationship.rb index e2258ebd7dbc..cadff8079b12 100644 --- a/lib/datadog_api_client/v2/models/users_relationship.rb +++ b/lib/datadog_api_client/v2/models/users_relationship.rb @@ -24,6 +24,8 @@ class UsersRelationship # Relationships to user objects. attr_reader :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsersRelationship` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UsersRelationship`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -81,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -88,6 +112,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index 49df9c4231a0..8f07c4f366e4 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -30,6 +30,8 @@ class UsersResponse # Object describing meta attributes of response. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -58,12 +60,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsersResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::UsersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -83,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -92,6 +116,7 @@ def ==(o) data == o.data && included == o.included && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb index 2d5d5f878946..6f4f75633a5e 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb @@ -24,6 +24,8 @@ class WorkflowInstanceCreateMeta # The input parameters to the workflow. attr_accessor :payload + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorkflowInstanceCreateMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorkflowInstanceCreateMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'payload') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && payload == o.payload + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb index 3d03180c601a..208a8b2ddd96 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb @@ -24,6 +24,8 @@ class WorkflowInstanceCreateRequest # Additional information for creating a workflow instance. attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorkflowInstanceCreateRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorkflowInstanceCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'meta') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb index 1a2e146f56cd..6754c213474a 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb @@ -24,6 +24,8 @@ class WorkflowInstanceCreateResponse # Data about the created workflow instance. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorkflowInstanceCreateResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorkflowInstanceCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb index 7f8df4428071..2fc0ffdb64de 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb @@ -24,6 +24,8 @@ class WorkflowInstanceCreateResponseData # The ID of the workflow execution. It can be used to fetch the execution status. attr_accessor :id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorkflowInstanceCreateResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorkflowInstanceCreateResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb b/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb index e9022e95798e..90c62aa8e9c0 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb @@ -24,6 +24,8 @@ class WorkflowInstanceListItem # The ID of the workflow instance attr_accessor :id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorkflowInstanceListItem` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorkflowInstanceListItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb b/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb index 5a689281833d..068f01c6d868 100644 --- a/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb +++ b/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb @@ -27,6 +27,8 @@ class WorkflowListInstancesResponse # Metadata about the instances list attr_accessor :meta + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -53,12 +55,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorkflowListInstancesResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorkflowListInstancesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -72,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -80,6 +104,7 @@ def ==(o) self.class == o.class && data == o.data && meta == o.meta + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb index ac01b0240af7..c87b95937492 100644 --- a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb +++ b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb @@ -24,6 +24,8 @@ class WorkflowListInstancesResponseMeta # Page information for the list instances response. attr_accessor :page + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorkflowListInstancesResponseMeta` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorkflowListInstancesResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'page') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && page == o.page + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb index e759faa9c6b5..e8c8407c75ad 100644 --- a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb @@ -24,6 +24,8 @@ class WorkflowListInstancesResponseMetaPage # The total count of items. attr_accessor :total_count + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorkflowListInstancesResponseMetaPage` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorkflowListInstancesResponseMetaPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'total_count') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && total_count == o.total_count + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb index 190744b33f10..bc20541c8452 100644 --- a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb +++ b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb @@ -24,6 +24,8 @@ class WorklflowCancelInstanceResponse # Data about the canceled instance. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorklflowCancelInstanceResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorklflowCancelInstanceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb index 90778d38c378..c659bc1418bc 100644 --- a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb +++ b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb @@ -24,6 +24,8 @@ class WorklflowCancelInstanceResponseData # The id of the canceled instance attr_accessor :id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorklflowCancelInstanceResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorklflowCancelInstanceResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb b/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb index 08d13771eb3e..03fca32146da 100644 --- a/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb +++ b/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb @@ -24,6 +24,8 @@ class WorklflowGetInstanceResponse # The data of the instance response. attr_accessor :data + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorklflowGetInstanceResponse` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorklflowGetInstanceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'data') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb index 87cc84301eae..81006e7e2814 100644 --- a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb +++ b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb @@ -24,6 +24,8 @@ class WorklflowGetInstanceResponseData # The attributes of the instance response data. attr_accessor :attributes + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorklflowGetInstanceResponseData` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorklflowGetInstanceResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && attributes == o.attributes + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. diff --git a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb index fe8e61c96251..512e22305e25 100644 --- a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb @@ -24,6 +24,8 @@ class WorklflowGetInstanceResponseDataAttributes # The id of the instance. attr_accessor :id + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -48,12 +50,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WorklflowGetInstanceResponseDataAttributes` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::WorklflowGetInstanceResponseDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'id') @@ -61,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -68,6 +92,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. From aa8f04711aa43ae038a932bde3bebbcf634428b7 Mon Sep 17 00:00:00 2001 From: Anika Maskara Date: Mon, 19 Aug 2024 09:05:25 -0400 Subject: [PATCH 02/11] check if additionalProperties is enabled when building hash --- .generator/src/generator/templates/model_base.j2 | 5 +++++ lib/datadog_api_client/v1/model_base.rb | 5 +++++ lib/datadog_api_client/v2/model_base.rb | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.generator/src/generator/templates/model_base.j2 b/.generator/src/generator/templates/model_base.j2 index b9e8f8e20ebb..e7734b55be2e 100644 --- a/.generator/src/generator/templates/model_base.j2 +++ b/.generator/src/generator/templates/model_base.j2 @@ -46,6 +46,11 @@ module {{ module_name }}::{{ version|upper }} # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) + unless self.respond_to?(:additional_properties) + unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } + return nil + end + end self.class.openapi_types.each_pair do |key, type| if attributes.key?(self.class.attribute_map[key]) && attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) diff --git a/lib/datadog_api_client/v1/model_base.rb b/lib/datadog_api_client/v1/model_base.rb index 1f35249da453..fda1f3037344 100644 --- a/lib/datadog_api_client/v1/model_base.rb +++ b/lib/datadog_api_client/v1/model_base.rb @@ -57,6 +57,11 @@ def eql?(o) # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) + unless self.respond_to?(:additional_properties) + unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } + return nil + end + end self.class.openapi_types.each_pair do |key, type| if attributes.key?(self.class.attribute_map[key]) && attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) diff --git a/lib/datadog_api_client/v2/model_base.rb b/lib/datadog_api_client/v2/model_base.rb index c1c63472d1cc..35a96e04229a 100644 --- a/lib/datadog_api_client/v2/model_base.rb +++ b/lib/datadog_api_client/v2/model_base.rb @@ -57,6 +57,11 @@ def eql?(o) # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) + unless self.respond_to?(:additional_properties) + unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } + return nil + end + end self.class.openapi_types.each_pair do |key, type| if attributes.key?(self.class.attribute_map[key]) && attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) From 976e0f650d800e99a8818077f418df5dce06845b Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 19 Aug 2024 17:47:29 +0000 Subject: [PATCH 03/11] pre-commit fixes --- .../synthetics_global_variable_request.rb | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb index e3c35aecfef6..55b914924c68 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb @@ -51,6 +51,8 @@ class SyntheticsGlobalVariableRequest # Value of the global variable. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGlobalVariableRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -184,6 +188,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -200,6 +224,7 @@ def ==(o) parse_test_public_id == o.parse_test_public_id && tags == o.tags && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. From 3640beb547cc53797e2c77ca151d988956a9b897 Mon Sep 17 00:00:00 2001 From: Anika Maskara Date: Mon, 19 Aug 2024 14:03:02 -0400 Subject: [PATCH 04/11] regenerate --- .../synthetics_global_variable_request.rb | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb index e3c35aecfef6..55b914924c68 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb @@ -51,6 +51,8 @@ class SyntheticsGlobalVariableRequest # Value of the global variable. attr_accessor :value + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map @@ -93,12 +95,14 @@ def initialize(attributes = {}) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableRequest` initialize method" end + self.additional_properties = {} # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGlobalVariableRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v end - h[k.to_sym] = v } if attributes.key?(:'attributes') @@ -184,6 +188,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -200,6 +224,7 @@ def ==(o) parse_test_public_id == o.parse_test_public_id && tags == o.tags && value == o.value + additional_properties == o.additional_properties end # Calculates hash code according to all attributes. From f353eca4ca80bdb874231279012c7935df5d1a33 Mon Sep 17 00:00:00 2001 From: Anika Maskara Date: Tue, 20 Aug 2024 09:53:47 -0400 Subject: [PATCH 05/11] raise error when additionalProperties is false and refactor to_hash --- .generator/src/generator/templates/model_base.j2 | 7 +++++-- .generator/src/generator/templates/model_generic.j2 | 10 +++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.generator/src/generator/templates/model_base.j2 b/.generator/src/generator/templates/model_base.j2 index e7734b55be2e..8e834b639b6d 100644 --- a/.generator/src/generator/templates/model_base.j2 +++ b/.generator/src/generator/templates/model_base.j2 @@ -48,7 +48,7 @@ module {{ module_name }}::{{ version|upper }} return nil unless attributes.is_a?(Hash) unless self.respond_to?(:additional_properties) unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } - return nil + raise SchemaMismatchError, "Additional properties are not allowed" end end self.class.openapi_types.each_pair do |key, type| @@ -150,7 +150,7 @@ module {{ module_name }}::{{ version|upper }} to_hash end - # Returns the object in the form of hash + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private def to_hash @@ -164,6 +164,9 @@ module {{ module_name }}::{{ version|upper }} hash[param] = _to_hash(value) end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end hash end diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 5782c91dd63a..023c6d256c1f 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -241,10 +241,9 @@ end {%- endif %} {%- endfor %} -{%- if additionalProperties is not false %} - - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash +{%- if additionalProperties is false %} + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash # @!visibility private def to_hash hash = {} @@ -257,9 +256,6 @@ hash[param] = _to_hash(value) end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end hash end {%- endif %} From ee22b04d973e8368a34c001aa15d62c2fe4d96b7 Mon Sep 17 00:00:00 2001 From: Anika Maskara Date: Tue, 20 Aug 2024 09:55:00 -0400 Subject: [PATCH 06/11] regenerated --- lib/datadog_api_client/v1/model_base.rb | 7 +++++-- .../models/add_signal_to_incident_request.rb | 20 ------------------- .../models/alert_graph_widget_definition.rb | 20 ------------------- .../models/alert_value_widget_definition.rb | 20 ------------------- .../v1/models/api_error_response.rb | 20 ------------------- lib/datadog_api_client/v1/models/api_key.rb | 20 ------------------- .../v1/models/api_key_list_response.rb | 20 ------------------- .../v1/models/api_key_response.rb | 20 ------------------- .../v1/models/apm_stats_query_column_type.rb | 20 ------------------- .../v1/models/apm_stats_query_definition.rb | 20 ------------------- .../v1/models/application_key.rb | 20 ------------------- .../models/application_key_list_response.rb | 20 ------------------- .../v1/models/application_key_response.rb | 20 ------------------- .../authentication_validation_response.rb | 20 ------------------- .../v1/models/aws_account.rb | 20 ------------------- .../models/aws_account_and_lambda_request.rb | 20 ------------------- .../v1/models/aws_account_create_response.rb | 20 ------------------- .../v1/models/aws_account_delete_request.rb | 20 ------------------- .../v1/models/aws_account_list_response.rb | 20 ------------------- .../aws_event_bridge_account_configuration.rb | 20 ------------------- .../models/aws_event_bridge_create_request.rb | 20 ------------------- .../aws_event_bridge_create_response.rb | 20 ------------------- .../models/aws_event_bridge_delete_request.rb | 20 ------------------- .../aws_event_bridge_delete_response.rb | 20 ------------------- .../models/aws_event_bridge_list_response.rb | 20 ------------------- .../v1/models/aws_event_bridge_source.rb | 20 ------------------- .../v1/models/aws_logs_async_error.rb | 20 ------------------- .../v1/models/aws_logs_async_response.rb | 20 ------------------- .../v1/models/aws_logs_lambda.rb | 20 ------------------- .../v1/models/aws_logs_list_response.rb | 20 ------------------- .../models/aws_logs_list_services_response.rb | 20 ------------------- .../v1/models/aws_logs_services_request.rb | 20 ------------------- .../v1/models/aws_tag_filter.rb | 20 ------------------- .../models/aws_tag_filter_create_request.rb | 20 ------------------- .../models/aws_tag_filter_delete_request.rb | 20 ------------------- .../v1/models/aws_tag_filter_list_response.rb | 20 ------------------- .../v1/models/azure_account.rb | 20 ------------------- .../v1/models/azure_account_metrics_config.rb | 20 ------------------- .../cancel_downtimes_by_scope_request.rb | 20 ------------------- .../v1/models/canceled_downtimes_ids.rb | 20 ------------------- .../v1/models/change_widget_definition.rb | 20 ------------------- .../v1/models/change_widget_request.rb | 20 ------------------- .../check_can_delete_monitor_response.rb | 20 ------------------- .../check_can_delete_monitor_response_data.rb | 20 ------------------- .../models/check_can_delete_slo_response.rb | 20 ------------------- .../check_can_delete_slo_response_data.rb | 20 ------------------- .../models/check_status_widget_definition.rb | 20 ------------------- lib/datadog_api_client/v1/models/creator.rb | 20 ------------------- lib/datadog_api_client/v1/models/dashboard.rb | 20 ------------------- .../v1/models/dashboard_bulk_action_data.rb | 20 ------------------- .../models/dashboard_bulk_delete_request.rb | 20 ------------------- .../v1/models/dashboard_delete_response.rb | 20 ------------------- .../v1/models/dashboard_global_time.rb | 20 ------------------- .../v1/models/dashboard_list.rb | 20 ------------------- .../models/dashboard_list_delete_response.rb | 20 ------------------- .../v1/models/dashboard_list_list_response.rb | 20 ------------------- .../v1/models/dashboard_restore_request.rb | 20 ------------------- .../v1/models/dashboard_summary.rb | 20 ------------------- .../v1/models/dashboard_summary_definition.rb | 20 ------------------- .../v1/models/dashboard_template_variable.rb | 20 ------------------- .../dashboard_template_variable_preset.rb | 20 ------------------- ...ashboard_template_variable_preset_value.rb | 20 ------------------- .../delete_shared_dashboard_response.rb | 20 ------------------- .../v1/models/deleted_monitor.rb | 20 ------------------- .../v1/models/distribution_points_payload.rb | 20 ------------------- .../v1/models/distribution_points_series.rb | 20 ------------------- .../models/distribution_widget_definition.rb | 20 ------------------- .../v1/models/distribution_widget_request.rb | 20 ------------------- .../v1/models/distribution_widget_x_axis.rb | 20 ------------------- .../v1/models/distribution_widget_y_axis.rb | 20 ------------------- lib/datadog_api_client/v1/models/downtime.rb | 20 ------------------- .../v1/models/downtime_child.rb | 20 ------------------- .../v1/models/downtime_recurrence.rb | 20 ------------------- lib/datadog_api_client/v1/models/event.rb | 20 ------------------- .../v1/models/event_create_request.rb | 20 ------------------- .../v1/models/event_create_response.rb | 20 ------------------- .../v1/models/event_list_response.rb | 20 ------------------- .../v1/models/event_query_definition.rb | 20 ------------------- .../v1/models/event_response.rb | 20 ------------------- .../models/event_stream_widget_definition.rb | 20 ------------------- .../event_timeline_widget_definition.rb | 20 ------------------- ...n_apm_dependency_stats_query_definition.rb | 20 ------------------- ...ion_apm_resource_stats_query_definition.rb | 20 ------------------- ...nd_function_cloud_cost_query_definition.rb | 20 ------------------- ...ula_and_function_event_query_definition.rb | 20 ------------------- ...function_event_query_definition_compute.rb | 20 ------------------- ..._function_event_query_definition_search.rb | 20 ------------------- ...rmula_and_function_event_query_group_by.rb | 20 ------------------- ..._and_function_event_query_group_by_sort.rb | 20 ------------------- ...la_and_function_metric_query_definition.rb | 20 ------------------- ...a_and_function_process_query_definition.rb | 20 ------------------- ...rmula_and_function_slo_query_definition.rb | 20 ------------------- .../v1/models/free_text_widget_definition.rb | 20 ------------------- .../v1/models/funnel_query.rb | 20 ------------------- .../v1/models/funnel_step.rb | 20 ------------------- .../v1/models/funnel_widget_definition.rb | 20 ------------------- .../v1/models/funnel_widget_request.rb | 20 ------------------- .../v1/models/gcp_account.rb | 20 ------------------- .../v1/models/geomap_widget_definition.rb | 20 ------------------- .../models/geomap_widget_definition_style.rb | 20 ------------------- .../models/geomap_widget_definition_view.rb | 20 ------------------- .../v1/models/geomap_widget_request.rb | 20 ------------------- .../v1/models/graph_snapshot.rb | 20 ------------------- .../v1/models/group_widget_definition.rb | 20 ------------------- .../v1/models/heat_map_widget_definition.rb | 20 ------------------- .../v1/models/heat_map_widget_request.rb | 20 ------------------- lib/datadog_api_client/v1/models/host.rb | 20 ------------------- .../v1/models/host_list_response.rb | 20 ------------------- .../v1/models/host_map_request.rb | 20 ------------------- .../v1/models/host_map_widget_definition.rb | 20 ------------------- .../host_map_widget_definition_requests.rb | 20 ------------------- .../host_map_widget_definition_style.rb | 20 ------------------- lib/datadog_api_client/v1/models/host_meta.rb | 20 ------------------- .../v1/models/host_meta_install_method.rb | 20 ------------------- .../v1/models/host_metrics.rb | 20 ------------------- .../v1/models/host_mute_response.rb | 20 ------------------- .../v1/models/host_mute_settings.rb | 20 ------------------- lib/datadog_api_client/v1/models/host_tags.rb | 20 ------------------- .../v1/models/host_totals.rb | 20 ------------------- .../models/hourly_usage_attribution_body.rb | 20 ------------------- .../hourly_usage_attribution_metadata.rb | 20 ------------------- .../hourly_usage_attribution_pagination.rb | 20 ------------------- .../hourly_usage_attribution_response.rb | 20 ------------------- .../v1/models/http_log_error.rb | 20 ------------------- .../v1/models/http_log_item.rb | 20 ------------------- .../v1/models/i_frame_widget_definition.rb | 20 ------------------- .../v1/models/idp_form_data.rb | 20 ------------------- .../v1/models/idp_response.rb | 20 ------------------- .../v1/models/image_widget_definition.rb | 20 ------------------- .../v1/models/intake_payload_accepted.rb | 20 ------------------- .../v1/models/ip_prefixes_agents.rb | 20 ------------------- .../v1/models/ip_prefixes_api.rb | 20 ------------------- .../v1/models/ip_prefixes_apm.rb | 20 ------------------- .../v1/models/ip_prefixes_global.rb | 20 ------------------- .../v1/models/ip_prefixes_logs.rb | 20 ------------------- .../v1/models/ip_prefixes_orchestrator.rb | 20 ------------------- .../v1/models/ip_prefixes_process.rb | 20 ------------------- .../ip_prefixes_remote_configuration.rb | 20 ------------------- .../v1/models/ip_prefixes_synthetics.rb | 20 ------------------- ...p_prefixes_synthetics_private_locations.rb | 20 ------------------- .../v1/models/ip_prefixes_webhooks.rb | 20 ------------------- lib/datadog_api_client/v1/models/ip_ranges.rb | 20 ------------------- .../v1/models/list_stream_column.rb | 20 ------------------- .../v1/models/list_stream_compute_items.rb | 20 ------------------- .../v1/models/list_stream_group_by_items.rb | 20 ------------------- .../v1/models/list_stream_query.rb | 20 ------------------- .../models/list_stream_widget_definition.rb | 20 ------------------- .../v1/models/list_stream_widget_request.rb | 20 ------------------- lib/datadog_api_client/v1/models/log.rb | 20 ------------------- .../v1/models/log_content.rb | 20 ------------------- .../v1/models/log_query_definition.rb | 20 ------------------- .../models/log_query_definition_group_by.rb | 20 ------------------- .../log_query_definition_group_by_sort.rb | 20 ------------------- .../v1/models/log_query_definition_search.rb | 20 ------------------- .../v1/models/log_stream_widget_definition.rb | 20 ------------------- .../v1/models/logs_api_error.rb | 20 ------------------- .../v1/models/logs_api_error_response.rb | 20 ------------------- .../v1/models/logs_arithmetic_processor.rb | 20 ------------------- .../v1/models/logs_attribute_remapper.rb | 20 ------------------- .../v1/models/logs_by_retention.rb | 20 ------------------- .../models/logs_by_retention_monthly_usage.rb | 20 ------------------- .../v1/models/logs_by_retention_org_usage.rb | 20 ------------------- .../v1/models/logs_by_retention_orgs.rb | 20 ------------------- .../v1/models/logs_category_processor.rb | 20 ------------------- .../logs_category_processor_category.rb | 20 ------------------- .../v1/models/logs_daily_limit_reset.rb | 20 ------------------- .../v1/models/logs_date_remapper.rb | 20 ------------------- .../v1/models/logs_exclusion.rb | 20 ------------------- .../v1/models/logs_exclusion_filter.rb | 20 ------------------- .../v1/models/logs_filter.rb | 20 ------------------- .../v1/models/logs_geo_ip_parser.rb | 20 ------------------- .../v1/models/logs_grok_parser.rb | 20 ------------------- .../v1/models/logs_grok_parser_rules.rb | 20 ------------------- .../v1/models/logs_index.rb | 20 ------------------- .../v1/models/logs_index_list_response.rb | 20 ------------------- .../v1/models/logs_index_update_request.rb | 20 ------------------- .../v1/models/logs_indexes_order.rb | 20 ------------------- .../v1/models/logs_list_request.rb | 20 ------------------- .../v1/models/logs_list_request_time.rb | 20 ------------------- .../v1/models/logs_list_response.rb | 20 ------------------- .../v1/models/logs_lookup_processor.rb | 20 ------------------- .../v1/models/logs_message_remapper.rb | 20 ------------------- .../v1/models/logs_pipeline.rb | 20 ------------------- .../v1/models/logs_pipeline_processor.rb | 20 ------------------- .../v1/models/logs_pipelines_order.rb | 20 ------------------- .../v1/models/logs_query_compute.rb | 20 ------------------- .../v1/models/logs_retention_agg_sum_usage.rb | 20 ------------------- .../v1/models/logs_retention_sum_usage.rb | 20 ------------------- .../v1/models/logs_service_remapper.rb | 20 ------------------- .../v1/models/logs_status_remapper.rb | 20 ------------------- .../models/logs_string_builder_processor.rb | 20 ------------------- .../v1/models/logs_trace_remapper.rb | 20 ------------------- .../v1/models/logs_url_parser.rb | 20 ------------------- .../v1/models/logs_user_agent_parser.rb | 20 ------------------- .../v1/models/matching_downtime.rb | 20 ------------------- .../v1/models/metric_metadata.rb | 20 ------------------- .../v1/models/metric_search_response.rb | 20 ------------------- .../models/metric_search_response_results.rb | 20 ------------------- .../v1/models/metrics_list_response.rb | 20 ------------------- .../v1/models/metrics_payload.rb | 20 ------------------- .../v1/models/metrics_query_metadata.rb | 20 ------------------- .../v1/models/metrics_query_response.rb | 20 ------------------- .../v1/models/metrics_query_unit.rb | 20 ------------------- lib/datadog_api_client/v1/models/monitor.rb | 20 ------------------- ...ula_and_function_event_query_definition.rb | 20 ------------------- ...function_event_query_definition_compute.rb | 20 ------------------- ..._function_event_query_definition_search.rb | 20 ------------------- ...rmula_and_function_event_query_group_by.rb | 20 ------------------- ..._and_function_event_query_group_by_sort.rb | 20 ------------------- .../models/monitor_group_search_response.rb | 20 ------------------- .../monitor_group_search_response_counts.rb | 20 ------------------- .../v1/models/monitor_group_search_result.rb | 20 ------------------- .../v1/models/monitor_options.rb | 20 ------------------- .../v1/models/monitor_options_aggregation.rb | 20 ------------------- .../models/monitor_options_custom_schedule.rb | 20 ------------------- ...itor_options_custom_schedule_recurrence.rb | 20 ------------------- .../monitor_options_scheduling_options.rb | 20 ------------------- ...ns_scheduling_options_evaluation_window.rb | 20 ------------------- .../v1/models/monitor_search_count_item.rb | 20 ------------------- .../v1/models/monitor_search_response.rb | 20 ------------------- .../models/monitor_search_response_counts.rb | 20 ------------------- .../monitor_search_response_metadata.rb | 20 ------------------- .../v1/models/monitor_search_result.rb | 20 ------------------- .../monitor_search_result_notification.rb | 20 ------------------- .../v1/models/monitor_state.rb | 20 ------------------- .../v1/models/monitor_state_group.rb | 20 ------------------- .../monitor_summary_widget_definition.rb | 20 ------------------- .../monitor_threshold_window_options.rb | 20 ------------------- .../v1/models/monitor_thresholds.rb | 20 ------------------- .../v1/models/monitor_update_request.rb | 20 ------------------- .../models/monthly_usage_attribution_body.rb | 20 ------------------- .../monthly_usage_attribution_metadata.rb | 20 ------------------- .../monthly_usage_attribution_pagination.rb | 20 ------------------- .../monthly_usage_attribution_response.rb | 20 ------------------- .../monthly_usage_attribution_values.rb | 20 ------------------- .../v1/models/note_widget_definition.rb | 20 ------------------- .../v1/models/notebook_absolute_time.rb | 20 ------------------- .../v1/models/notebook_author.rb | 20 ------------------- .../v1/models/notebook_cell_create_request.rb | 16 +++++++++++++++ .../v1/models/notebook_cell_response.rb | 20 ------------------- .../v1/models/notebook_cell_update_request.rb | 20 ------------------- .../v1/models/notebook_create_data.rb | 20 ------------------- .../models/notebook_create_data_attributes.rb | 20 ------------------- .../v1/models/notebook_create_request.rb | 20 ------------------- .../notebook_distribution_cell_attributes.rb | 20 ------------------- .../notebook_heat_map_cell_attributes.rb | 20 ------------------- .../notebook_log_stream_cell_attributes.rb | 20 ------------------- .../notebook_markdown_cell_attributes.rb | 20 ------------------- .../notebook_markdown_cell_definition.rb | 20 ------------------- .../v1/models/notebook_metadata.rb | 20 ------------------- .../v1/models/notebook_relative_time.rb | 20 ------------------- .../v1/models/notebook_response.rb | 20 ------------------- .../v1/models/notebook_response_data.rb | 20 ------------------- .../notebook_response_data_attributes.rb | 20 ------------------- .../v1/models/notebook_split_by.rb | 20 ------------------- .../notebook_timeseries_cell_attributes.rb | 20 ------------------- .../notebook_toplist_cell_attributes.rb | 20 ------------------- .../v1/models/notebook_update_data.rb | 20 ------------------- .../models/notebook_update_data_attributes.rb | 20 ------------------- .../v1/models/notebook_update_request.rb | 20 ------------------- .../v1/models/notebooks_response.rb | 20 ------------------- .../v1/models/notebooks_response_data.rb | 20 ------------------- .../notebooks_response_data_attributes.rb | 20 ------------------- .../v1/models/notebooks_response_meta.rb | 20 ------------------- .../v1/models/notebooks_response_page.rb | 20 ------------------- .../v1/models/org_downgraded_response.rb | 20 ------------------- .../v1/models/organization.rb | 20 ------------------- .../v1/models/organization_billing.rb | 20 ------------------- .../v1/models/organization_create_body.rb | 20 ------------------- .../v1/models/organization_create_response.rb | 20 ------------------- .../v1/models/organization_list_response.rb | 20 ------------------- .../v1/models/organization_response.rb | 20 ------------------- .../v1/models/organization_settings.rb | 20 ------------------- .../v1/models/organization_settings_saml.rb | 20 ------------------- ..._settings_saml_autocreate_users_domains.rb | 20 ------------------- ...ation_settings_saml_idp_initiated_login.rb | 20 ------------------- .../organization_settings_saml_strict_mode.rb | 20 ------------------- .../v1/models/organization_subscription.rb | 20 ------------------- .../v1/models/pager_duty_service.rb | 20 ------------------- .../v1/models/pager_duty_service_key.rb | 20 ------------------- .../v1/models/pager_duty_service_name.rb | 20 ------------------- .../v1/models/pagination.rb | 20 ------------------- .../powerpack_template_variable_contents.rb | 20 ------------------- .../v1/models/powerpack_template_variables.rb | 20 ------------------- .../v1/models/powerpack_widget_definition.rb | 20 ------------------- .../v1/models/process_query_definition.rb | 20 ------------------- .../models/query_value_widget_definition.rb | 20 ------------------- .../v1/models/query_value_widget_request.rb | 20 ------------------- .../reference_table_logs_lookup_processor.rb | 20 ------------------- .../v1/models/response_meta_attributes.rb | 20 ------------------- .../models/run_workflow_widget_definition.rb | 20 ------------------- .../v1/models/run_workflow_widget_input.rb | 20 ------------------- .../v1/models/scatter_plot_request.rb | 20 ------------------- .../models/scatter_plot_widget_definition.rb | 20 ------------------- ...scatter_plot_widget_definition_requests.rb | 20 ------------------- .../v1/models/scatterplot_table_request.rb | 20 ------------------- .../v1/models/scatterplot_widget_formula.rb | 20 ------------------- .../models/search_service_level_objective.rb | 20 ------------------- ...arch_service_level_objective_attributes.rb | 20 ------------------- .../search_service_level_objective_data.rb | 20 ------------------- .../v1/models/search_slo_query.rb | 20 ------------------- .../v1/models/search_slo_response.rb | 20 ------------------- .../v1/models/search_slo_response_data.rb | 20 ------------------- .../search_slo_response_data_attributes.rb | 20 ------------------- ...rch_slo_response_data_attributes_facets.rb | 20 ------------------- ...ponse_data_attributes_facets_object_int.rb | 20 ------------------- ...se_data_attributes_facets_object_string.rb | 20 ------------------- .../v1/models/search_slo_response_links.rb | 20 ------------------- .../v1/models/search_slo_response_meta.rb | 20 ------------------- .../models/search_slo_response_meta_page.rb | 20 ------------------- .../v1/models/search_slo_threshold.rb | 20 ------------------- .../selectable_template_variable_items.rb | 20 ------------------- lib/datadog_api_client/v1/models/series.rb | 20 ------------------- .../v1/models/service_check.rb | 20 ------------------- .../v1/models/service_level_objective.rb | 20 ------------------- .../models/service_level_objective_query.rb | 20 ------------------- .../models/service_level_objective_request.rb | 20 ------------------- .../models/service_map_widget_definition.rb | 20 ------------------- .../service_summary_widget_definition.rb | 20 ------------------- .../v1/models/shared_dashboard.rb | 20 ------------------- .../v1/models/shared_dashboard_author.rb | 20 ------------------- .../v1/models/shared_dashboard_invites.rb | 20 ------------------- .../shared_dashboard_invites_data_object.rb | 20 ------------------- ...ashboard_invites_data_object_attributes.rb | 20 ------------------- .../models/shared_dashboard_invites_meta.rb | 20 ------------------- .../shared_dashboard_invites_meta_page.rb | 20 ------------------- .../models/shared_dashboard_update_request.rb | 20 ------------------- ...ed_dashboard_update_request_global_time.rb | 20 ------------------- .../models/signal_assignee_update_request.rb | 20 ------------------- .../v1/models/signal_state_update_request.rb | 20 ------------------- .../v1/models/slack_integration_channel.rb | 20 ------------------- .../slack_integration_channel_display.rb | 20 ------------------- .../v1/models/slo_bulk_delete_error.rb | 20 ------------------- .../v1/models/slo_bulk_delete_response.rb | 20 ------------------- .../models/slo_bulk_delete_response_data.rb | 20 ------------------- .../v1/models/slo_correction.rb | 20 ------------------- .../v1/models/slo_correction_create_data.rb | 20 ------------------- .../models/slo_correction_create_request.rb | 20 ------------------- ...lo_correction_create_request_attributes.rb | 20 ------------------- .../v1/models/slo_correction_list_response.rb | 20 ------------------- .../v1/models/slo_correction_response.rb | 20 ------------------- .../slo_correction_response_attributes.rb | 20 ------------------- ...correction_response_attributes_modifier.rb | 20 ------------------- .../v1/models/slo_correction_update_data.rb | 20 ------------------- .../models/slo_correction_update_request.rb | 20 ------------------- ...lo_correction_update_request_attributes.rb | 20 ------------------- .../v1/models/slo_creator.rb | 20 ------------------- .../v1/models/slo_delete_response.rb | 20 ------------------- .../v1/models/slo_formula.rb | 20 ------------------- .../v1/models/slo_history_metrics.rb | 20 ------------------- .../v1/models/slo_history_metrics_series.rb | 20 ------------------- .../slo_history_metrics_series_metadata.rb | 20 ------------------- ...lo_history_metrics_series_metadata_unit.rb | 20 ------------------- .../v1/models/slo_history_monitor.rb | 20 ------------------- .../v1/models/slo_history_response.rb | 20 ------------------- .../v1/models/slo_history_response_data.rb | 20 ------------------- .../v1/models/slo_history_response_error.rb | 20 ------------------- .../slo_history_response_error_with_type.rb | 20 ------------------- .../v1/models/slo_history_sli_data.rb | 20 ------------------- .../v1/models/slo_list_response.rb | 20 ------------------- .../v1/models/slo_list_response_metadata.rb | 20 ------------------- .../models/slo_list_response_metadata_page.rb | 20 ------------------- .../v1/models/slo_list_widget_definition.rb | 20 ------------------- .../v1/models/slo_list_widget_query.rb | 20 ------------------- .../v1/models/slo_list_widget_request.rb | 20 ------------------- .../v1/models/slo_overall_statuses.rb | 20 ------------------- .../models/slo_raw_error_budget_remaining.rb | 20 ------------------- .../v1/models/slo_response.rb | 20 ------------------- .../v1/models/slo_response_data.rb | 20 ------------------- .../v1/models/slo_status.rb | 20 ------------------- .../v1/models/slo_threshold.rb | 20 ------------------- .../v1/models/slo_time_slice_condition.rb | 20 ------------------- .../v1/models/slo_time_slice_query.rb | 20 ------------------- .../v1/models/slo_time_slice_spec.rb | 16 +++++++++++++++ .../v1/models/slo_widget_definition.rb | 20 ------------------- .../v1/models/split_config.rb | 20 ------------------- .../v1/models/split_config_sort_compute.rb | 20 ------------------- .../v1/models/split_dimension.rb | 20 ------------------- .../models/split_graph_widget_definition.rb | 20 ------------------- .../v1/models/split_sort.rb | 20 ------------------- .../v1/models/split_vector_entry_item.rb | 20 ------------------- .../successful_signal_update_response.rb | 20 ------------------- .../v1/models/sunburst_widget_definition.rb | 20 ------------------- ...sunburst_widget_legend_inline_automatic.rb | 20 ------------------- .../v1/models/sunburst_widget_legend_table.rb | 20 ------------------- .../v1/models/sunburst_widget_request.rb | 20 ------------------- .../v1/models/synthetics_api_test.rb | 20 ------------------- .../v1/models/synthetics_api_test_config.rb | 20 ------------------- .../models/synthetics_api_test_result_data.rb | 20 ------------------- .../synthetics_api_test_result_failure.rb | 20 ------------------- .../models/synthetics_api_test_result_full.rb | 20 ------------------- .../synthetics_api_test_result_full_check.rb | 20 ------------------- .../synthetics_api_test_result_short.rb | 20 ------------------- ...synthetics_api_test_result_short_result.rb | 20 ------------------- .../v1/models/synthetics_api_test_step.rb | 20 ------------------- .../v1/models/synthetics_api_wait_step.rb | 20 ------------------- .../synthetics_assertion_body_hash_target.rb | 20 ------------------- .../synthetics_assertion_json_path_target.rb | 20 ------------------- ...etics_assertion_json_path_target_target.rb | 20 ------------------- ...synthetics_assertion_json_schema_target.rb | 20 ------------------- ...ics_assertion_json_schema_target_target.rb | 20 ------------------- .../v1/models/synthetics_assertion_target.rb | 20 ------------------- .../synthetics_assertion_x_path_target.rb | 20 ------------------- ...nthetics_assertion_x_path_target_target.rb | 20 ------------------- .../v1/models/synthetics_basic_auth_digest.rb | 20 ------------------- .../v1/models/synthetics_basic_auth_ntlm.rb | 20 ------------------- .../synthetics_basic_auth_oauth_client.rb | 20 ------------------- .../models/synthetics_basic_auth_oauth_rop.rb | 20 ------------------- .../v1/models/synthetics_basic_auth_sigv4.rb | 20 ------------------- .../v1/models/synthetics_basic_auth_web.rb | 20 ------------------- .../v1/models/synthetics_batch_details.rb | 20 ------------------- .../models/synthetics_batch_details_data.rb | 20 ------------------- .../v1/models/synthetics_batch_result.rb | 20 ------------------- .../v1/models/synthetics_browser_error.rb | 20 ------------------- .../v1/models/synthetics_browser_test.rb | 20 ------------------- .../models/synthetics_browser_test_config.rb | 20 ------------------- .../synthetics_browser_test_result_data.rb | 20 ------------------- .../synthetics_browser_test_result_failure.rb | 20 ------------------- .../synthetics_browser_test_result_full.rb | 20 ------------------- ...nthetics_browser_test_result_full_check.rb | 20 ------------------- .../synthetics_browser_test_result_short.rb | 20 ------------------- ...hetics_browser_test_result_short_result.rb | 20 ------------------- .../synthetics_browser_test_rum_settings.rb | 20 ------------------- .../v1/models/synthetics_browser_variable.rb | 20 ------------------- .../v1/models/synthetics_ci_batch_metadata.rb | 20 ------------------- .../models/synthetics_ci_batch_metadata_ci.rb | 20 ------------------- .../synthetics_ci_batch_metadata_git.rb | 20 ------------------- .../synthetics_ci_batch_metadata_pipeline.rb | 20 ------------------- .../synthetics_ci_batch_metadata_provider.rb | 20 ------------------- .../v1/models/synthetics_ci_test.rb | 20 ------------------- .../v1/models/synthetics_ci_test_body.rb | 20 ------------------- .../v1/models/synthetics_config_variable.rb | 20 ------------------- .../v1/models/synthetics_core_web_vitals.rb | 20 ------------------- .../models/synthetics_delete_tests_payload.rb | 20 ------------------- .../synthetics_delete_tests_response.rb | 20 ------------------- .../v1/models/synthetics_deleted_test.rb | 20 ------------------- .../v1/models/synthetics_device.rb | 20 ------------------- ...cs_get_api_test_latest_results_response.rb | 20 ------------------- ...et_browser_test_latest_results_response.rb | 20 ------------------- .../v1/models/synthetics_global_variable.rb | 20 ------------------- .../synthetics_global_variable_attributes.rb | 20 ------------------- .../synthetics_global_variable_options.rb | 20 ------------------- ...tics_global_variable_parse_test_options.rb | 20 ------------------- .../synthetics_global_variable_request.rb | 20 ------------------- ...thetics_global_variable_totp_parameters.rb | 20 ------------------- .../synthetics_global_variable_value.rb | 20 ------------------- ...nthetics_list_global_variables_response.rb | 20 ------------------- .../models/synthetics_list_tests_response.rb | 20 ------------------- .../v1/models/synthetics_location.rb | 20 ------------------- .../v1/models/synthetics_locations.rb | 20 ------------------- .../v1/models/synthetics_parsing_options.rb | 20 ------------------- .../v1/models/synthetics_patch_test_body.rb | 20 ------------------- .../models/synthetics_patch_test_operation.rb | 20 ------------------- .../v1/models/synthetics_private_location.rb | 20 ------------------- ...tics_private_location_creation_response.rb | 20 ------------------- ...ion_creation_response_result_encryption.rb | 20 ------------------- .../synthetics_private_location_metadata.rb | 20 ------------------- .../synthetics_private_location_secrets.rb | 20 ------------------- ...private_location_secrets_authentication.rb | 20 ------------------- ...vate_location_secrets_config_decryption.rb | 20 ------------------- .../v1/models/synthetics_ssl_certificate.rb | 20 ------------------- .../synthetics_ssl_certificate_issuer.rb | 20 ------------------- .../synthetics_ssl_certificate_subject.rb | 20 ------------------- .../v1/models/synthetics_step.rb | 20 ------------------- .../v1/models/synthetics_step_detail.rb | 20 ------------------- .../models/synthetics_step_detail_warning.rb | 20 ------------------- .../v1/models/synthetics_test_ci_options.rb | 20 ------------------- .../v1/models/synthetics_test_config.rb | 20 ------------------- .../v1/models/synthetics_test_details.rb | 20 ------------------- .../v1/models/synthetics_test_options.rb | 20 ------------------- ...synthetics_test_options_monitor_options.rb | 20 ------------------- .../models/synthetics_test_options_retry.rb | 20 ------------------- .../synthetics_test_options_scheduling.rb | 20 ------------------- ...etics_test_options_scheduling_timeframe.rb | 20 ------------------- .../v1/models/synthetics_test_request.rb | 20 ------------------- .../synthetics_test_request_body_file.rb | 20 ------------------- .../synthetics_test_request_certificate.rb | 20 ------------------- ...ynthetics_test_request_certificate_item.rb | 20 ------------------- .../models/synthetics_test_request_proxy.rb | 20 ------------------- .../v1/models/synthetics_timing.rb | 20 ------------------- .../v1/models/synthetics_trigger_body.rb | 20 ------------------- .../synthetics_trigger_ci_test_location.rb | 20 ------------------- .../synthetics_trigger_ci_test_run_result.rb | 20 ------------------- .../synthetics_trigger_ci_tests_response.rb | 20 ------------------- .../v1/models/synthetics_trigger_test.rb | 20 ------------------- ...hetics_update_test_pause_status_payload.rb | 20 ------------------- .../v1/models/synthetics_variable_parser.rb | 20 ------------------- .../v1/models/table_widget_definition.rb | 20 ------------------- .../v1/models/table_widget_request.rb | 20 ------------------- .../v1/models/tag_to_hosts.rb | 20 ------------------- .../v1/models/timeseries_background.rb | 20 ------------------- .../v1/models/timeseries_widget_definition.rb | 20 ------------------- .../timeseries_widget_expression_alias.rb | 20 ------------------- .../v1/models/timeseries_widget_request.rb | 20 ------------------- .../v1/models/toplist_widget_definition.rb | 20 ------------------- .../v1/models/toplist_widget_flat.rb | 20 ------------------- .../v1/models/toplist_widget_request.rb | 20 ------------------- .../v1/models/toplist_widget_stacked.rb | 20 ------------------- .../v1/models/toplist_widget_style.rb | 20 ------------------- .../models/topology_map_widget_definition.rb | 20 ------------------- .../v1/models/topology_query.rb | 20 ------------------- .../v1/models/topology_request.rb | 20 ------------------- .../v1/models/tree_map_widget_definition.rb | 20 ------------------- .../v1/models/tree_map_widget_request.rb | 20 ------------------- .../v1/models/usage_analyzed_logs_hour.rb | 20 ------------------- .../v1/models/usage_analyzed_logs_response.rb | 20 ------------------- .../usage_attribution_aggregates_body.rb | 20 ------------------- .../v1/models/usage_audit_logs_hour.rb | 20 ------------------- .../v1/models/usage_audit_logs_response.rb | 20 ------------------- .../v1/models/usage_billable_summary_body.rb | 20 ------------------- .../v1/models/usage_billable_summary_hour.rb | 20 ------------------- .../v1/models/usage_billable_summary_keys.rb | 20 ------------------- .../models/usage_billable_summary_response.rb | 20 ------------------- .../v1/models/usage_ci_visibility_hour.rb | 20 ------------------- .../v1/models/usage_ci_visibility_response.rb | 20 ------------------- ..._cloud_security_posture_management_hour.rb | 20 ------------------- ...ud_security_posture_management_response.rb | 20 ------------------- .../models/usage_custom_reports_attributes.rb | 20 ------------------- .../v1/models/usage_custom_reports_data.rb | 20 ------------------- .../v1/models/usage_custom_reports_meta.rb | 20 ------------------- .../v1/models/usage_custom_reports_page.rb | 20 ------------------- .../models/usage_custom_reports_response.rb | 20 ------------------- .../v1/models/usage_cws_hour.rb | 20 ------------------- .../v1/models/usage_cws_response.rb | 20 ------------------- .../v1/models/usage_dbm_hour.rb | 20 ------------------- .../v1/models/usage_dbm_response.rb | 20 ------------------- .../v1/models/usage_fargate_hour.rb | 20 ------------------- .../v1/models/usage_fargate_response.rb | 20 ------------------- .../v1/models/usage_host_hour.rb | 20 ------------------- .../v1/models/usage_hosts_response.rb | 20 ------------------- .../models/usage_incident_management_hour.rb | 20 ------------------- .../usage_incident_management_response.rb | 20 ------------------- .../v1/models/usage_indexed_spans_hour.rb | 20 ------------------- .../v1/models/usage_indexed_spans_response.rb | 20 ------------------- .../v1/models/usage_ingested_spans_hour.rb | 20 ------------------- .../models/usage_ingested_spans_response.rb | 20 ------------------- .../v1/models/usage_iot_hour.rb | 20 ------------------- .../v1/models/usage_iot_response.rb | 20 ------------------- .../v1/models/usage_lambda_hour.rb | 20 ------------------- .../v1/models/usage_lambda_response.rb | 20 ------------------- .../v1/models/usage_logs_by_index_hour.rb | 20 ------------------- .../v1/models/usage_logs_by_index_response.rb | 20 ------------------- .../v1/models/usage_logs_by_retention_hour.rb | 20 ------------------- .../usage_logs_by_retention_response.rb | 20 ------------------- .../v1/models/usage_logs_hour.rb | 20 ------------------- .../v1/models/usage_logs_response.rb | 20 ------------------- .../v1/models/usage_network_flows_hour.rb | 20 ------------------- .../v1/models/usage_network_flows_response.rb | 20 ------------------- .../v1/models/usage_network_hosts_hour.rb | 20 ------------------- .../v1/models/usage_network_hosts_response.rb | 20 ------------------- .../v1/models/usage_online_archive_hour.rb | 20 ------------------- .../models/usage_online_archive_response.rb | 20 ------------------- .../v1/models/usage_profiling_hour.rb | 20 ------------------- .../v1/models/usage_profiling_response.rb | 20 ------------------- .../v1/models/usage_rum_sessions_hour.rb | 20 ------------------- .../v1/models/usage_rum_sessions_response.rb | 20 ------------------- .../v1/models/usage_rum_units_hour.rb | 20 ------------------- .../v1/models/usage_rum_units_response.rb | 20 ------------------- .../v1/models/usage_sds_hour.rb | 20 ------------------- .../v1/models/usage_sds_response.rb | 20 ------------------- .../v1/models/usage_snmp_hour.rb | 20 ------------------- .../v1/models/usage_snmp_response.rb | 20 ------------------- ...age_specified_custom_reports_attributes.rb | 20 ------------------- .../usage_specified_custom_reports_data.rb | 20 ------------------- .../usage_specified_custom_reports_meta.rb | 20 ------------------- .../usage_specified_custom_reports_page.rb | 20 ------------------- ...usage_specified_custom_reports_response.rb | 20 ------------------- .../v1/models/usage_summary_date.rb | 20 ------------------- .../v1/models/usage_summary_date_org.rb | 20 ------------------- .../v1/models/usage_summary_response.rb | 20 ------------------- .../v1/models/usage_synthetics_api_hour.rb | 20 ------------------- .../models/usage_synthetics_api_response.rb | 20 ------------------- .../models/usage_synthetics_browser_hour.rb | 20 ------------------- .../usage_synthetics_browser_response.rb | 20 ------------------- .../v1/models/usage_synthetics_hour.rb | 20 ------------------- .../v1/models/usage_synthetics_response.rb | 20 ------------------- .../v1/models/usage_timeseries_hour.rb | 20 ------------------- .../v1/models/usage_timeseries_response.rb | 20 ------------------- .../v1/models/usage_top_avg_metrics_hour.rb | 20 ------------------- .../models/usage_top_avg_metrics_metadata.rb | 20 ------------------- .../usage_top_avg_metrics_pagination.rb | 20 ------------------- .../models/usage_top_avg_metrics_response.rb | 20 ------------------- lib/datadog_api_client/v1/models/user.rb | 20 ------------------- .../v1/models/user_disable_response.rb | 20 ------------------- .../v1/models/user_list_response.rb | 20 ------------------- .../v1/models/user_response.rb | 20 ------------------- .../v1/models/webhooks_integration.rb | 20 ------------------- .../webhooks_integration_custom_variable.rb | 20 ------------------- ...ks_integration_custom_variable_response.rb | 20 ------------------- ...egration_custom_variable_update_request.rb | 20 ------------------- .../webhooks_integration_update_request.rb | 20 ------------------- lib/datadog_api_client/v1/models/widget.rb | 20 ------------------- .../v1/models/widget_axis.rb | 20 ------------------- .../v1/models/widget_conditional_format.rb | 20 ------------------- .../v1/models/widget_custom_link.rb | 20 ------------------- .../v1/models/widget_event.rb | 20 ------------------- .../v1/models/widget_field_sort.rb | 20 ------------------- .../v1/models/widget_formula.rb | 20 ------------------- .../v1/models/widget_formula_limit.rb | 20 ------------------- .../v1/models/widget_formula_sort.rb | 20 ------------------- .../v1/models/widget_formula_style.rb | 20 ------------------- .../v1/models/widget_group_sort.rb | 20 ------------------- .../v1/models/widget_layout.rb | 20 ------------------- .../v1/models/widget_marker.rb | 20 ------------------- .../v1/models/widget_request_style.rb | 20 ------------------- .../v1/models/widget_sort_by.rb | 20 ------------------- .../v1/models/widget_style.rb | 20 ------------------- .../v1/models/widget_time.rb | 20 ------------------- lib/datadog_api_client/v2/model_base.rb | 7 +++++-- .../active_billing_dimensions_attributes.rb | 20 ------------------- .../models/active_billing_dimensions_body.rb | 20 ------------------- .../active_billing_dimensions_response.rb | 20 ------------------- .../v2/models/api_error_response.rb | 20 ------------------- .../v2/models/api_key_create_attributes.rb | 20 ------------------- .../v2/models/api_key_create_data.rb | 20 ------------------- .../v2/models/api_key_create_request.rb | 20 ------------------- .../v2/models/api_key_relationships.rb | 20 ------------------- .../v2/models/api_key_response.rb | 20 ------------------- .../v2/models/api_key_update_attributes.rb | 20 ------------------- .../v2/models/api_key_update_data.rb | 20 ------------------- .../v2/models/api_key_update_request.rb | 20 ------------------- .../v2/models/api_keys_response.rb | 20 ------------------- .../v2/models/api_keys_response_meta.rb | 20 ------------------- .../v2/models/api_keys_response_meta_page.rb | 20 ------------------- .../application_key_create_attributes.rb | 20 ------------------- .../v2/models/application_key_create_data.rb | 20 ------------------- .../models/application_key_create_request.rb | 20 ------------------- .../models/application_key_relationships.rb | 20 ------------------- .../v2/models/application_key_response.rb | 20 ------------------- .../models/application_key_response_meta.rb | 20 ------------------- .../application_key_response_meta_page.rb | 20 ------------------- .../application_key_update_attributes.rb | 20 ------------------- .../v2/models/application_key_update_data.rb | 20 ------------------- .../models/application_key_update_request.rb | 20 ------------------- .../v2/models/audit_logs_event.rb | 20 ------------------- .../v2/models/audit_logs_event_attributes.rb | 20 ------------------- .../v2/models/audit_logs_events_response.rb | 20 ------------------- .../v2/models/audit_logs_query_filter.rb | 20 ------------------- .../v2/models/audit_logs_query_options.rb | 20 ------------------- .../models/audit_logs_query_page_options.rb | 20 ------------------- .../v2/models/audit_logs_response_links.rb | 20 ------------------- .../v2/models/audit_logs_response_metadata.rb | 20 ------------------- .../v2/models/audit_logs_response_page.rb | 20 ------------------- .../audit_logs_search_events_request.rb | 20 ------------------- .../v2/models/audit_logs_warning.rb | 20 ------------------- .../v2/models/authn_mapping.rb | 20 ------------------- .../v2/models/authn_mapping_attributes.rb | 20 ------------------- .../models/authn_mapping_create_attributes.rb | 20 ------------------- .../v2/models/authn_mapping_create_data.rb | 20 ------------------- .../v2/models/authn_mapping_create_request.rb | 20 ------------------- .../authn_mapping_relationship_to_role.rb | 20 ------------------- .../authn_mapping_relationship_to_team.rb | 20 ------------------- .../v2/models/authn_mapping_relationships.rb | 20 ------------------- .../v2/models/authn_mapping_response.rb | 20 ------------------- .../v2/models/authn_mapping_team.rb | 20 ------------------- .../models/authn_mapping_team_attributes.rb | 20 ------------------- .../models/authn_mapping_update_attributes.rb | 20 ------------------- .../v2/models/authn_mapping_update_data.rb | 20 ------------------- .../v2/models/authn_mapping_update_request.rb | 20 ------------------- .../v2/models/authn_mappings_response.rb | 20 ------------------- .../v2/models/aws_cur_config.rb | 20 ------------------- .../v2/models/aws_cur_config_attributes.rb | 20 ------------------- .../v2/models/aws_cur_config_patch_data.rb | 20 ------------------- .../v2/models/aws_cur_config_patch_request.rb | 20 ------------------- ...aws_cur_config_patch_request_attributes.rb | 20 ------------------- .../v2/models/aws_cur_config_post_data.rb | 20 ------------------- .../v2/models/aws_cur_config_post_request.rb | 20 ------------------- .../aws_cur_config_post_request_attributes.rb | 20 ------------------- .../v2/models/aws_cur_config_response.rb | 20 ------------------- .../v2/models/aws_cur_configs_response.rb | 20 ------------------- .../v2/models/aws_related_account.rb | 20 ------------------- .../models/aws_related_account_attributes.rb | 20 ------------------- .../models/aws_related_accounts_response.rb | 20 ------------------- .../v2/models/azure_uc_config.rb | 20 ------------------- .../v2/models/azure_uc_config_pair.rb | 20 ------------------- .../models/azure_uc_config_pair_attributes.rb | 20 ------------------- .../models/azure_uc_config_pairs_response.rb | 20 ------------------- .../v2/models/azure_uc_config_patch_data.rb | 20 ------------------- .../models/azure_uc_config_patch_request.rb | 20 ------------------- ...zure_uc_config_patch_request_attributes.rb | 20 ------------------- .../v2/models/azure_uc_config_post_data.rb | 20 ------------------- .../v2/models/azure_uc_config_post_request.rb | 20 ------------------- ...azure_uc_config_post_request_attributes.rb | 20 ------------------- .../v2/models/azure_uc_configs_response.rb | 20 ------------------- .../v2/models/bill_config.rb | 20 ------------------- .../v2/models/bulk_mute_findings_request.rb | 20 ------------------- .../bulk_mute_findings_request_attributes.rb | 16 +++++++++++++++ .../models/bulk_mute_findings_request_data.rb | 20 ------------------- .../models/bulk_mute_findings_request_meta.rb | 20 ------------------- ...ulk_mute_findings_request_meta_findings.rb | 20 ------------------- .../bulk_mute_findings_request_properties.rb | 16 +++++++++++++++ .../v2/models/bulk_mute_findings_response.rb | 20 ------------------- .../bulk_mute_findings_response_data.rb | 20 ------------------- lib/datadog_api_client/v2/models/case.rb | 20 ------------------- .../v2/models/case_assign.rb | 20 ------------------- .../v2/models/case_assign_attributes.rb | 20 ------------------- .../v2/models/case_assign_request.rb | 20 ------------------- .../v2/models/case_attributes.rb | 20 ------------------- .../v2/models/case_create.rb | 20 ------------------- .../v2/models/case_create_attributes.rb | 20 ------------------- .../v2/models/case_create_relationships.rb | 20 ------------------- .../v2/models/case_create_request.rb | 20 ------------------- .../v2/models/case_empty.rb | 20 ------------------- .../v2/models/case_empty_request.rb | 20 ------------------- .../v2/models/case_relationships.rb | 20 ------------------- .../v2/models/case_response.rb | 20 ------------------- .../v2/models/case_update_priority.rb | 20 ------------------- .../models/case_update_priority_attributes.rb | 20 ------------------- .../v2/models/case_update_priority_request.rb | 20 ------------------- .../v2/models/case_update_status.rb | 20 ------------------- .../models/case_update_status_attributes.rb | 20 ------------------- .../v2/models/case_update_status_request.rb | 20 ------------------- .../v2/models/cases_response.rb | 20 ------------------- .../v2/models/cases_response_meta.rb | 20 ------------------- .../models/cases_response_meta_pagination.rb | 20 ------------------- .../v2/models/chargeback_breakdown.rb | 20 ------------------- ...aggregate_bucket_value_timeseries_point.rb | 20 ------------------- .../v2/models/ci_app_aggregate_sort.rb | 20 ------------------- .../v2/models/ci_app_ci_error.rb | 20 ------------------- .../v2/models/ci_app_compute.rb | 20 ------------------- .../ci_app_create_pipeline_event_request.rb | 20 ------------------- ...reate_pipeline_event_request_attributes.rb | 20 ------------------- ..._app_create_pipeline_event_request_data.rb | 20 ------------------- .../v2/models/ci_app_event_attributes.rb | 20 ------------------- .../v2/models/ci_app_git_info.rb | 20 ------------------- .../v2/models/ci_app_group_by_histogram.rb | 20 ------------------- .../v2/models/ci_app_host_info.rb | 20 ------------------- .../v2/models/ci_app_pipeline_event.rb | 20 ------------------- .../ci_app_pipeline_event_attributes.rb | 20 ------------------- .../v2/models/ci_app_pipeline_event_job.rb | 20 ------------------- .../ci_app_pipeline_event_parent_pipeline.rb | 20 ------------------- .../models/ci_app_pipeline_event_pipeline.rb | 20 ------------------- ...ci_app_pipeline_event_previous_pipeline.rb | 20 ------------------- .../v2/models/ci_app_pipeline_event_stage.rb | 20 ------------------- .../v2/models/ci_app_pipeline_event_step.rb | 20 ------------------- .../models/ci_app_pipeline_events_request.rb | 20 ------------------- .../models/ci_app_pipeline_events_response.rb | 20 ------------------- .../ci_app_pipelines_aggregate_request.rb | 20 ------------------- ..._pipelines_aggregation_buckets_response.rb | 20 ------------------- ..._pipelines_analytics_aggregate_response.rb | 20 ------------------- .../ci_app_pipelines_bucket_response.rb | 20 ------------------- .../v2/models/ci_app_pipelines_group_by.rb | 20 ------------------- .../models/ci_app_pipelines_query_filter.rb | 20 ------------------- .../v2/models/ci_app_query_options.rb | 20 ------------------- .../v2/models/ci_app_query_page_options.rb | 20 ------------------- .../v2/models/ci_app_response_links.rb | 20 ------------------- .../v2/models/ci_app_response_metadata.rb | 20 ------------------- ...i_app_response_metadata_with_pagination.rb | 20 ------------------- .../v2/models/ci_app_response_page.rb | 20 ------------------- .../v2/models/ci_app_test_event.rb | 20 ------------------- .../v2/models/ci_app_test_events_request.rb | 20 ------------------- .../v2/models/ci_app_test_events_response.rb | 20 ------------------- .../models/ci_app_tests_aggregate_request.rb | 20 ------------------- ..._app_tests_aggregation_buckets_response.rb | 20 ------------------- ..._app_tests_analytics_aggregate_response.rb | 20 ------------------- .../v2/models/ci_app_tests_bucket_response.rb | 20 ------------------- .../v2/models/ci_app_tests_group_by.rb | 20 ------------------- .../v2/models/ci_app_tests_query_filter.rb | 20 ------------------- .../v2/models/ci_app_warning.rb | 20 ------------------- ...d_configuration_compliance_rule_options.rb | 20 ------------------- .../models/cloud_configuration_rego_rule.rb | 20 ------------------- .../cloud_configuration_rule_case_create.rb | 20 ------------------- ...guration_rule_compliance_signal_options.rb | 20 ------------------- ...cloud_configuration_rule_create_payload.rb | 20 ------------------- .../cloud_configuration_rule_options.rb | 20 ------------------- .../cloud_configuration_rule_payload.rb | 20 ------------------- .../v2/models/cloud_cost_activity.rb | 20 ------------------- .../models/cloud_cost_activity_attributes.rb | 20 ------------------- .../v2/models/cloud_cost_activity_response.rb | 20 ------------------- ...oud_workload_security_agent_rule_action.rb | 20 ------------------- ...workload_security_agent_rule_attributes.rb | 20 ------------------- ...d_security_agent_rule_create_attributes.rb | 20 ------------------- ...orkload_security_agent_rule_create_data.rb | 20 ------------------- ...load_security_agent_rule_create_request.rb | 20 ------------------- ..._security_agent_rule_creator_attributes.rb | 20 ------------------- ...cloud_workload_security_agent_rule_data.rb | 20 ------------------- ...cloud_workload_security_agent_rule_kill.rb | 20 ------------------- ...d_workload_security_agent_rule_response.rb | 20 ------------------- ...d_security_agent_rule_update_attributes.rb | 20 ------------------- ...orkload_security_agent_rule_update_data.rb | 20 ------------------- ...load_security_agent_rule_update_request.rb | 20 ------------------- ..._security_agent_rule_updater_attributes.rb | 20 ------------------- ...load_security_agent_rules_list_response.rb | 20 ------------------- .../cloudflare_account_create_request.rb | 20 ------------------- ...flare_account_create_request_attributes.rb | 20 ------------------- .../cloudflare_account_create_request_data.rb | 20 ------------------- .../v2/models/cloudflare_account_response.rb | 20 ------------------- .../cloudflare_account_response_attributes.rb | 20 ------------------- .../cloudflare_account_response_data.rb | 20 ------------------- .../cloudflare_account_update_request.rb | 20 ------------------- ...flare_account_update_request_attributes.rb | 20 ------------------- .../cloudflare_account_update_request_data.rb | 20 ------------------- .../v2/models/cloudflare_accounts_response.rb | 20 ------------------- .../confluent_account_create_request.rb | 20 ------------------- ...luent_account_create_request_attributes.rb | 20 ------------------- .../confluent_account_create_request_data.rb | 20 ------------------- .../confluent_account_resource_attributes.rb | 20 ------------------- .../v2/models/confluent_account_response.rb | 20 ------------------- .../confluent_account_response_attributes.rb | 20 ------------------- .../models/confluent_account_response_data.rb | 20 ------------------- .../confluent_account_update_request.rb | 20 ------------------- ...luent_account_update_request_attributes.rb | 20 ------------------- .../confluent_account_update_request_data.rb | 20 ------------------- .../v2/models/confluent_accounts_response.rb | 20 ------------------- .../v2/models/confluent_resource_request.rb | 20 ------------------- .../confluent_resource_request_attributes.rb | 20 ------------------- .../models/confluent_resource_request_data.rb | 20 ------------------- .../v2/models/confluent_resource_response.rb | 20 ------------------- .../confluent_resource_response_attributes.rb | 20 ------------------- .../confluent_resource_response_data.rb | 20 ------------------- .../v2/models/confluent_resources_response.rb | 20 ------------------- lib/datadog_api_client/v2/models/container.rb | 20 ------------------- .../v2/models/container_attributes.rb | 20 ------------------- .../v2/models/container_group.rb | 20 ------------------- .../v2/models/container_group_attributes.rb | 20 ------------------- .../models/container_group_relationships.rb | 20 ------------------- .../container_group_relationships_link.rb | 20 ------------------- .../container_group_relationships_links.rb | 20 ------------------- .../v2/models/container_image.rb | 20 ------------------- .../v2/models/container_image_attributes.rb | 20 ------------------- .../v2/models/container_image_flavor.rb | 20 ------------------- .../v2/models/container_image_group.rb | 20 ------------------- .../container_image_group_attributes.rb | 20 ------------------- ...r_image_group_images_relationships_link.rb | 20 ------------------- .../container_image_group_relationships.rb | 20 ------------------- ...ntainer_image_group_relationships_links.rb | 20 ------------------- .../v2/models/container_image_meta.rb | 20 ------------------- .../v2/models/container_image_meta_page.rb | 20 ------------------- .../models/container_image_vulnerabilities.rb | 20 ------------------- .../v2/models/container_images_response.rb | 20 ------------------- .../models/container_images_response_links.rb | 20 ------------------- .../v2/models/container_meta.rb | 20 ------------------- .../v2/models/container_meta_page.rb | 20 ------------------- .../v2/models/containers_response.rb | 20 ------------------- .../v2/models/containers_response_links.rb | 20 ------------------- .../cost_attribution_aggregates_body.rb | 20 ------------------- .../v2/models/cost_by_org.rb | 20 ------------------- .../v2/models/cost_by_org_attributes.rb | 20 ------------------- .../v2/models/cost_by_org_response.rb | 20 ------------------- .../v2/models/create_open_api_response.rb | 20 ------------------- .../create_open_api_response_attributes.rb | 20 ------------------- .../models/create_open_api_response_data.rb | 20 ------------------- .../v2/models/create_rule_request.rb | 20 ------------------- .../v2/models/create_rule_request_data.rb | 20 ------------------- .../v2/models/create_rule_response.rb | 20 ------------------- .../v2/models/create_rule_response_data.rb | 20 ------------------- lib/datadog_api_client/v2/models/creator.rb | 20 ------------------- .../models/custom_cost_get_response_meta.rb | 20 ------------------- .../models/custom_cost_list_response_meta.rb | 20 ------------------- .../custom_cost_upload_response_meta.rb | 20 ------------------- .../models/custom_costs_file_get_response.rb | 20 ------------------- .../v2/models/custom_costs_file_line_item.rb | 20 ------------------- .../models/custom_costs_file_list_response.rb | 20 ------------------- .../v2/models/custom_costs_file_metadata.rb | 20 ------------------- .../custom_costs_file_metadata_high_level.rb | 20 ------------------- ...custom_costs_file_metadata_with_content.rb | 20 ------------------- ...s_file_metadata_with_content_high_level.rb | 20 ------------------- .../custom_costs_file_upload_response.rb | 20 ------------------- .../custom_costs_file_usage_charge_period.rb | 20 ------------------- .../v2/models/custom_costs_user.rb | 20 ------------------- .../custom_destination_create_request.rb | 20 ------------------- ...m_destination_create_request_attributes.rb | 20 ------------------- ...m_destination_create_request_definition.rb | 20 ------------------- ...tination_elasticsearch_destination_auth.rb | 20 ------------------- ...ation_forward_destination_elasticsearch.rb | 20 ------------------- ...om_destination_forward_destination_http.rb | 20 ------------------- ..._destination_forward_destination_splunk.rb | 20 ------------------- ...destination_http_destination_auth_basic.rb | 20 ------------------- ...ion_http_destination_auth_custom_header.rb | 20 ------------------- .../v2/models/custom_destination_response.rb | 20 ------------------- .../custom_destination_response_attributes.rb | 20 ------------------- .../custom_destination_response_definition.rb | 20 ------------------- ...ponse_forward_destination_elasticsearch.rb | 20 ------------------- ...ation_response_forward_destination_http.rb | 20 ------------------- ...ion_response_forward_destination_splunk.rb | 20 ------------------- ...on_response_http_destination_auth_basic.rb | 20 ------------------- ...nse_http_destination_auth_custom_header.rb | 20 ------------------- .../custom_destination_update_request.rb | 20 ------------------- ...m_destination_update_request_attributes.rb | 20 ------------------- ...m_destination_update_request_definition.rb | 20 ------------------- .../v2/models/custom_destinations_response.rb | 20 ------------------- .../dashboard_list_add_items_request.rb | 20 ------------------- .../dashboard_list_add_items_response.rb | 20 ------------------- .../dashboard_list_delete_items_request.rb | 20 ------------------- .../dashboard_list_delete_items_response.rb | 20 ------------------- .../v2/models/dashboard_list_item.rb | 20 ------------------- .../v2/models/dashboard_list_item_request.rb | 20 ------------------- .../v2/models/dashboard_list_item_response.rb | 20 ------------------- .../v2/models/dashboard_list_items.rb | 20 ------------------- .../dashboard_list_update_items_request.rb | 20 ------------------- .../dashboard_list_update_items_response.rb | 20 ------------------- .../v2/models/data_scalar_column.rb | 20 ------------------- .../v2/models/detailed_finding.rb | 20 ------------------- .../v2/models/detailed_finding_attributes.rb | 20 ------------------- .../v2/models/device_attributes.rb | 20 ------------------- .../device_attributes_interface_statuses.rb | 20 ------------------- .../v2/models/devices_list_data.rb | 20 ------------------- .../v2/models/dora_deployment_request.rb | 20 ------------------- .../dora_deployment_request_attributes.rb | 20 ------------------- .../v2/models/dora_deployment_request_data.rb | 20 ------------------- .../v2/models/dora_deployment_response.rb | 20 ------------------- .../models/dora_deployment_response_data.rb | 20 ------------------- .../v2/models/dora_git_info.rb | 20 ------------------- .../v2/models/dora_incident_request.rb | 20 ------------------- .../dora_incident_request_attributes.rb | 20 ------------------- .../v2/models/dora_incident_request_data.rb | 20 ------------------- .../v2/models/dora_incident_response.rb | 20 ------------------- .../v2/models/dora_incident_response_data.rb | 20 ------------------- .../v2/models/downtime_create_request.rb | 20 ------------------- .../downtime_create_request_attributes.rb | 20 ------------------- .../v2/models/downtime_create_request_data.rb | 20 ------------------- .../v2/models/downtime_meta.rb | 20 ------------------- .../v2/models/downtime_meta_page.rb | 20 ------------------- .../models/downtime_monitor_identifier_id.rb | 20 ------------------- .../downtime_monitor_identifier_tags.rb | 20 ------------------- .../downtime_monitor_included_attributes.rb | 20 ------------------- .../models/downtime_monitor_included_item.rb | 20 ------------------- .../v2/models/downtime_relationships.rb | 20 ------------------- .../downtime_relationships_created_by.rb | 20 ------------------- .../downtime_relationships_created_by_data.rb | 20 ------------------- .../models/downtime_relationships_monitor.rb | 20 ------------------- .../downtime_relationships_monitor_data.rb | 20 ------------------- .../v2/models/downtime_response.rb | 20 ------------------- .../v2/models/downtime_response_attributes.rb | 20 ------------------- .../v2/models/downtime_response_data.rb | 20 ------------------- ...time_schedule_current_downtime_response.rb | 20 ------------------- ...schedule_one_time_create_update_request.rb | 16 +++++++++++++++ .../downtime_schedule_one_time_response.rb | 20 ------------------- ...hedule_recurrence_create_update_request.rb | 20 ------------------- .../downtime_schedule_recurrence_response.rb | 20 ------------------- ...ime_schedule_recurrences_create_request.rb | 20 ------------------- .../downtime_schedule_recurrences_response.rb | 20 ------------------- ...ime_schedule_recurrences_update_request.rb | 16 +++++++++++++++ .../v2/models/downtime_update_request.rb | 20 ------------------- .../downtime_update_request_attributes.rb | 20 ------------------- .../v2/models/downtime_update_request_data.rb | 20 ------------------- lib/datadog_api_client/v2/models/event.rb | 20 ------------------- .../v2/models/event_attributes.rb | 20 ------------------- .../v2/models/event_response.rb | 20 ------------------- .../v2/models/event_response_attributes.rb | 20 ------------------- .../v2/models/events_compute.rb | 20 ------------------- .../v2/models/events_group_by.rb | 20 ------------------- .../v2/models/events_group_by_sort.rb | 20 ------------------- .../v2/models/events_list_request.rb | 20 ------------------- .../v2/models/events_list_response.rb | 20 ------------------- .../v2/models/events_list_response_links.rb | 20 ------------------- .../v2/models/events_query_filter.rb | 20 ------------------- .../v2/models/events_query_options.rb | 20 ------------------- .../v2/models/events_request_page.rb | 20 ------------------- .../v2/models/events_response_metadata.rb | 20 ------------------- .../models/events_response_metadata_page.rb | 20 ------------------- .../v2/models/events_scalar_query.rb | 20 ------------------- .../v2/models/events_search.rb | 20 ------------------- .../v2/models/events_timeseries_query.rb | 20 ------------------- .../v2/models/events_warning.rb | 20 ------------------- .../fastly_accoun_response_attributes.rb | 20 ------------------- .../models/fastly_account_create_request.rb | 20 ------------------- ...astly_account_create_request_attributes.rb | 20 ------------------- .../fastly_account_create_request_data.rb | 20 ------------------- .../v2/models/fastly_account_response.rb | 20 ------------------- .../v2/models/fastly_account_response_data.rb | 20 ------------------- .../models/fastly_account_update_request.rb | 20 ------------------- ...astly_account_update_request_attributes.rb | 20 ------------------- .../fastly_account_update_request_data.rb | 20 ------------------- .../v2/models/fastly_accounts_response.rb | 20 ------------------- .../v2/models/fastly_service.rb | 20 ------------------- .../v2/models/fastly_service_attributes.rb | 20 ------------------- .../v2/models/fastly_service_data.rb | 20 ------------------- .../v2/models/fastly_service_request.rb | 20 ------------------- .../v2/models/fastly_service_response.rb | 20 ------------------- .../v2/models/fastly_services_response.rb | 20 ------------------- lib/datadog_api_client/v2/models/finding.rb | 20 ------------------- .../v2/models/finding_attributes.rb | 20 ------------------- .../v2/models/finding_mute.rb | 16 +++++++++++++++ .../v2/models/finding_rule.rb | 16 +++++++++++++++ .../v2/models/formula_limit.rb | 20 ------------------- .../v2/models/full_api_key.rb | 20 ------------------- .../v2/models/full_api_key_attributes.rb | 20 ------------------- .../v2/models/full_application_key.rb | 20 ------------------- .../models/full_application_key_attributes.rb | 20 ------------------- .../v2/models/gcp_service_account_meta.rb | 20 ------------------- .../v2/models/gcpsts_delegate_account.rb | 20 ------------------- .../gcpsts_delegate_account_attributes.rb | 20 ------------------- .../gcpsts_delegate_account_response.rb | 20 ------------------- .../v2/models/gcpsts_service_account.rb | 20 ------------------- .../gcpsts_service_account_attributes.rb | 20 ------------------- .../gcpsts_service_account_create_request.rb | 20 ------------------- .../v2/models/gcpsts_service_account_data.rb | 20 ------------------- .../models/gcpsts_service_account_response.rb | 20 ------------------- .../gcpsts_service_account_update_request.rb | 20 ------------------- ...sts_service_account_update_request_data.rb | 20 ------------------- .../gcpsts_service_accounts_response.rb | 20 ------------------- .../v2/models/get_device_attributes.rb | 20 ------------------- .../v2/models/get_device_data.rb | 20 ------------------- .../v2/models/get_device_response.rb | 20 ------------------- .../v2/models/get_finding_response.rb | 20 ------------------- .../v2/models/get_interfaces_data.rb | 20 ------------------- .../v2/models/get_interfaces_response.rb | 20 ------------------- .../v2/models/group_scalar_column.rb | 20 ------------------- .../v2/models/hourly_usage.rb | 20 ------------------- .../v2/models/hourly_usage_attributes.rb | 20 ------------------- .../v2/models/hourly_usage_measurement.rb | 20 ------------------- .../v2/models/hourly_usage_metadata.rb | 20 ------------------- .../v2/models/hourly_usage_pagination.rb | 20 ------------------- .../v2/models/hourly_usage_response.rb | 20 ------------------- .../v2/models/http_log_error.rb | 20 ------------------- .../v2/models/http_log_errors.rb | 20 ------------------- .../v2/models/http_log_item.rb | 20 ------------------- .../v2/models/httpci_app_error.rb | 20 ------------------- .../v2/models/httpci_app_errors.rb | 20 ------------------- .../v2/models/idp_metadata_form_data.rb | 20 ------------------- .../v2/models/incident_attachment_data.rb | 20 ------------------- .../incident_attachment_link_attributes.rb | 20 ------------------- ...hment_link_attributes_attachment_object.rb | 20 ------------------- ...cident_attachment_postmortem_attributes.rb | 20 ------------------- .../incident_attachment_relationships.rb | 20 ------------------- .../models/incident_attachment_update_data.rb | 20 ------------------- .../incident_attachment_update_request.rb | 20 ------------------- .../incident_attachment_update_response.rb | 20 ------------------- ...postmortem_attributes_attachment_object.rb | 20 ------------------- .../models/incident_attachments_response.rb | 20 ------------------- .../v2/models/incident_create_attributes.rb | 20 ------------------- .../v2/models/incident_create_data.rb | 20 ------------------- .../models/incident_create_relationships.rb | 20 ------------------- .../v2/models/incident_create_request.rb | 20 ------------------- ...ncident_field_attributes_multiple_value.rb | 20 ------------------- .../incident_field_attributes_single_value.rb | 20 ------------------- ...ncident_integration_metadata_attributes.rb | 20 ------------------- ...cident_integration_metadata_create_data.rb | 20 ------------------- ...ent_integration_metadata_create_request.rb | 20 ------------------- ...dent_integration_metadata_list_response.rb | 20 ------------------- ...ncident_integration_metadata_patch_data.rb | 20 ------------------- ...dent_integration_metadata_patch_request.rb | 20 ------------------- .../incident_integration_metadata_response.rb | 20 ------------------- ...dent_integration_metadata_response_data.rb | 20 ------------------- .../incident_integration_relationships.rb | 20 ------------------- .../v2/models/incident_non_datadog_creator.rb | 20 ------------------- .../v2/models/incident_notification_handle.rb | 20 ------------------- .../v2/models/incident_response.rb | 20 ------------------- .../v2/models/incident_response_attributes.rb | 20 ------------------- .../v2/models/incident_response_data.rb | 20 ------------------- .../v2/models/incident_response_meta.rb | 20 ------------------- .../incident_response_meta_pagination.rb | 20 ------------------- .../models/incident_response_relationships.rb | 20 ------------------- .../v2/models/incident_search_response.rb | 20 ------------------- .../incident_search_response_attributes.rb | 20 ------------------- .../models/incident_search_response_data.rb | 20 ------------------- .../incident_search_response_facets_data.rb | 20 ------------------- ...cident_search_response_field_facet_data.rb | 20 ------------------- ...incident_search_response_incidents_data.rb | 20 ------------------- .../models/incident_search_response_meta.rb | 20 ------------------- ...dent_search_response_numeric_facet_data.rb | 20 ------------------- ..._response_numeric_facet_data_aggregates.rb | 20 ------------------- ...arch_response_property_field_facet_data.rb | 20 ------------------- ...ncident_search_response_user_facet_data.rb | 20 ------------------- .../incident_service_create_attributes.rb | 20 ------------------- .../v2/models/incident_service_create_data.rb | 20 ------------------- .../models/incident_service_create_request.rb | 20 ------------------- .../models/incident_service_relationships.rb | 20 ------------------- .../v2/models/incident_service_response.rb | 20 ------------------- .../incident_service_response_attributes.rb | 20 ------------------- .../models/incident_service_response_data.rb | 20 ------------------- .../incident_service_update_attributes.rb | 20 ------------------- .../v2/models/incident_service_update_data.rb | 20 ------------------- .../models/incident_service_update_request.rb | 20 ------------------- .../v2/models/incident_services_response.rb | 20 ------------------- .../models/incident_team_create_attributes.rb | 20 ------------------- .../v2/models/incident_team_create_data.rb | 20 ------------------- .../v2/models/incident_team_create_request.rb | 20 ------------------- .../v2/models/incident_team_relationships.rb | 20 ------------------- .../v2/models/incident_team_response.rb | 20 ------------------- .../incident_team_response_attributes.rb | 20 ------------------- .../v2/models/incident_team_response_data.rb | 20 ------------------- .../models/incident_team_update_attributes.rb | 20 ------------------- .../v2/models/incident_team_update_data.rb | 20 ------------------- .../v2/models/incident_team_update_request.rb | 20 ------------------- .../v2/models/incident_teams_response.rb | 20 ------------------- ...imeline_cell_markdown_create_attributes.rb | 20 ------------------- ...cell_markdown_create_attributes_content.rb | 20 ------------------- .../incident_todo_anonymous_assignee.rb | 20 ------------------- .../v2/models/incident_todo_attributes.rb | 20 ------------------- .../v2/models/incident_todo_create_data.rb | 20 ------------------- .../v2/models/incident_todo_create_request.rb | 20 ------------------- .../v2/models/incident_todo_list_response.rb | 20 ------------------- .../v2/models/incident_todo_patch_data.rb | 20 ------------------- .../v2/models/incident_todo_patch_request.rb | 20 ------------------- .../v2/models/incident_todo_relationships.rb | 20 ------------------- .../v2/models/incident_todo_response.rb | 20 ------------------- .../v2/models/incident_todo_response_data.rb | 20 ------------------- .../v2/models/incident_update_attributes.rb | 20 ------------------- .../v2/models/incident_update_data.rb | 20 ------------------- .../models/incident_update_relationships.rb | 20 ------------------- .../v2/models/incident_update_request.rb | 20 ------------------- .../v2/models/incidents_response.rb | 20 ------------------- .../v2/models/intake_payload_accepted.rb | 20 ------------------- .../v2/models/interface_attributes.rb | 20 ------------------- .../v2/models/ip_allowlist_attributes.rb | 20 ------------------- .../v2/models/ip_allowlist_data.rb | 20 ------------------- .../v2/models/ip_allowlist_entry.rb | 20 ------------------- .../models/ip_allowlist_entry_attributes.rb | 20 ------------------- .../v2/models/ip_allowlist_entry_data.rb | 20 ------------------- .../v2/models/ip_allowlist_response.rb | 20 ------------------- .../v2/models/ip_allowlist_update_request.rb | 20 ------------------- .../v2/models/jira_integration_metadata.rb | 20 ------------------- .../jira_integration_metadata_issues_item.rb | 20 ------------------- .../v2/models/jira_issue.rb | 20 ------------------- .../v2/models/jira_issue_result.rb | 20 ------------------- .../v2/models/jsonapi_error_item.rb | 20 ------------------- .../v2/models/jsonapi_error_response.rb | 20 ------------------- .../v2/models/leaked_key.rb | 20 ------------------- .../v2/models/leaked_key_attributes.rb | 20 ------------------- .../v2/models/list_apis_response.rb | 20 ------------------- .../v2/models/list_apis_response_data.rb | 20 ------------------- .../list_apis_response_data_attributes.rb | 20 ------------------- .../v2/models/list_apis_response_meta.rb | 20 ------------------- .../list_apis_response_meta_pagination.rb | 20 ------------------- .../models/list_application_keys_response.rb | 20 ------------------- .../v2/models/list_devices_response.rb | 20 ------------------- .../models/list_devices_response_metadata.rb | 20 ------------------- .../list_devices_response_metadata_page.rb | 20 ------------------- .../v2/models/list_downtimes_response.rb | 20 ------------------- .../v2/models/list_findings_meta.rb | 16 +++++++++++++++ .../v2/models/list_findings_page.rb | 16 +++++++++++++++ .../v2/models/list_findings_response.rb | 20 ------------------- .../v2/models/list_powerpacks_response.rb | 20 ------------------- .../v2/models/list_rules_response.rb | 20 ------------------- .../models/list_rules_response_data_item.rb | 20 ------------------- .../v2/models/list_rules_response_links.rb | 20 ------------------- .../v2/models/list_tags_response.rb | 20 ------------------- .../v2/models/list_tags_response_data.rb | 20 ------------------- .../list_tags_response_data_attributes.rb | 20 ------------------- lib/datadog_api_client/v2/models/log.rb | 20 ------------------- .../v2/models/log_attributes.rb | 20 ------------------- .../v2/models/logs_aggregate_bucket.rb | 20 ------------------- ...aggregate_bucket_value_timeseries_point.rb | 20 ------------------- .../v2/models/logs_aggregate_request.rb | 20 ------------------- .../v2/models/logs_aggregate_request_page.rb | 20 ------------------- .../v2/models/logs_aggregate_response.rb | 20 ------------------- .../v2/models/logs_aggregate_response_data.rb | 20 ------------------- .../v2/models/logs_aggregate_sort.rb | 20 ------------------- .../v2/models/logs_archive.rb | 20 ------------------- .../v2/models/logs_archive_attributes.rb | 20 ------------------- .../v2/models/logs_archive_create_request.rb | 20 ------------------- .../logs_archive_create_request_attributes.rb | 20 ------------------- .../logs_archive_create_request_definition.rb | 20 ------------------- .../v2/models/logs_archive_definition.rb | 20 ------------------- .../models/logs_archive_destination_azure.rb | 20 ------------------- .../v2/models/logs_archive_destination_gcs.rb | 20 ------------------- .../v2/models/logs_archive_destination_s3.rb | 20 ------------------- .../models/logs_archive_integration_azure.rb | 20 ------------------- .../v2/models/logs_archive_integration_gcs.rb | 20 ------------------- .../v2/models/logs_archive_integration_s3.rb | 20 ------------------- .../v2/models/logs_archive_order.rb | 20 ------------------- .../models/logs_archive_order_attributes.rb | 20 ------------------- .../models/logs_archive_order_definition.rb | 20 ------------------- .../v2/models/logs_archives.rb | 20 ------------------- .../v2/models/logs_compute.rb | 20 ------------------- .../v2/models/logs_group_by.rb | 20 ------------------- .../v2/models/logs_group_by_histogram.rb | 20 ------------------- .../v2/models/logs_list_request.rb | 20 ------------------- .../v2/models/logs_list_request_page.rb | 20 ------------------- .../v2/models/logs_list_response.rb | 20 ------------------- .../v2/models/logs_list_response_links.rb | 20 ------------------- .../v2/models/logs_metric_compute.rb | 20 ------------------- .../models/logs_metric_create_attributes.rb | 20 ------------------- .../v2/models/logs_metric_create_data.rb | 20 ------------------- .../v2/models/logs_metric_create_request.rb | 20 ------------------- .../v2/models/logs_metric_filter.rb | 20 ------------------- .../v2/models/logs_metric_group_by.rb | 20 ------------------- .../v2/models/logs_metric_response.rb | 20 ------------------- .../models/logs_metric_response_attributes.rb | 20 ------------------- .../v2/models/logs_metric_response_compute.rb | 20 ------------------- .../v2/models/logs_metric_response_data.rb | 20 ------------------- .../v2/models/logs_metric_response_filter.rb | 20 ------------------- .../models/logs_metric_response_group_by.rb | 20 ------------------- .../models/logs_metric_update_attributes.rb | 20 ------------------- .../v2/models/logs_metric_update_compute.rb | 20 ------------------- .../v2/models/logs_metric_update_data.rb | 20 ------------------- .../v2/models/logs_metric_update_request.rb | 20 ------------------- .../v2/models/logs_metrics_response.rb | 20 ------------------- .../v2/models/logs_query_filter.rb | 20 ------------------- .../v2/models/logs_query_options.rb | 20 ------------------- .../v2/models/logs_response_metadata.rb | 20 ------------------- .../v2/models/logs_response_metadata_page.rb | 20 ------------------- .../v2/models/logs_warning.rb | 20 ------------------- lib/datadog_api_client/v2/models/metric.rb | 20 ------------------- .../v2/models/metric_all_tags.rb | 20 ------------------- .../v2/models/metric_all_tags_attributes.rb | 20 ------------------- .../v2/models/metric_all_tags_response.rb | 20 ------------------- .../v2/models/metric_asset_attributes.rb | 20 ------------------- .../metric_asset_dashboard_relationship.rb | 20 ------------------- .../metric_asset_dashboard_relationships.rb | 20 ------------------- .../metric_asset_monitor_relationship.rb | 20 ------------------- .../metric_asset_monitor_relationships.rb | 20 ------------------- .../metric_asset_notebook_relationship.rb | 20 ------------------- .../metric_asset_notebook_relationships.rb | 20 ------------------- .../v2/models/metric_asset_response_data.rb | 20 ------------------- .../metric_asset_response_relationships.rb | 20 ------------------- .../models/metric_asset_slo_relationship.rb | 20 ------------------- .../models/metric_asset_slo_relationships.rb | 20 ------------------- .../v2/models/metric_assets_response.rb | 20 ------------------- .../models/metric_bulk_tag_config_create.rb | 20 ------------------- ...etric_bulk_tag_config_create_attributes.rb | 20 ------------------- .../metric_bulk_tag_config_create_request.rb | 20 ------------------- .../models/metric_bulk_tag_config_delete.rb | 20 ------------------- ...etric_bulk_tag_config_delete_attributes.rb | 20 ------------------- .../metric_bulk_tag_config_delete_request.rb | 20 ------------------- .../models/metric_bulk_tag_config_response.rb | 20 ------------------- .../models/metric_bulk_tag_config_status.rb | 20 ------------------- ...etric_bulk_tag_config_status_attributes.rb | 20 ------------------- .../v2/models/metric_custom_aggregation.rb | 20 ------------------- .../v2/models/metric_dashboard_asset.rb | 20 ------------------- .../v2/models/metric_dashboard_attributes.rb | 20 ------------------- .../v2/models/metric_distinct_volume.rb | 20 ------------------- .../metric_distinct_volume_attributes.rb | 20 ------------------- .../v2/models/metric_estimate.rb | 20 ------------------- .../v2/models/metric_estimate_attributes.rb | 20 ------------------- .../v2/models/metric_estimate_response.rb | 20 ------------------- .../models/metric_ingested_indexed_volume.rb | 20 ------------------- ...tric_ingested_indexed_volume_attributes.rb | 20 ------------------- .../v2/models/metric_metadata.rb | 20 ------------------- .../v2/models/metric_monitor_asset.rb | 20 ------------------- .../v2/models/metric_notebook_asset.rb | 20 ------------------- .../v2/models/metric_origin.rb | 20 ------------------- .../v2/models/metric_payload.rb | 20 ------------------- .../v2/models/metric_point.rb | 20 ------------------- .../v2/models/metric_resource.rb | 20 ------------------- .../v2/models/metric_series.rb | 20 ------------------- .../v2/models/metric_slo_asset.rb | 20 ------------------- .../metric_suggested_tags_and_aggregations.rb | 20 ------------------- ...uggested_tags_and_aggregations_response.rb | 20 ------------------- .../metric_suggested_tags_attributes.rb | 20 ------------------- .../v2/models/metric_tag_configuration.rb | 20 ------------------- .../metric_tag_configuration_attributes.rb | 20 ------------------- ...ric_tag_configuration_create_attributes.rb | 20 ------------------- .../metric_tag_configuration_create_data.rb | 20 ------------------- ...metric_tag_configuration_create_request.rb | 20 ------------------- .../metric_tag_configuration_response.rb | 20 ------------------- ...ric_tag_configuration_update_attributes.rb | 20 ------------------- .../metric_tag_configuration_update_data.rb | 20 ------------------- ...metric_tag_configuration_update_request.rb | 20 ------------------- .../v2/models/metric_volumes_response.rb | 20 ------------------- ..._and_metric_tag_configurations_response.rb | 20 ------------------- .../v2/models/metrics_scalar_query.rb | 20 ------------------- .../v2/models/metrics_timeseries_query.rb | 20 ------------------- ..._config_policy_attribute_create_request.rb | 20 ------------------- ...or_config_policy_attribute_edit_request.rb | 20 ------------------- ...onitor_config_policy_attribute_response.rb | 20 ------------------- .../monitor_config_policy_create_data.rb | 20 ------------------- .../monitor_config_policy_create_request.rb | 20 ------------------- .../models/monitor_config_policy_edit_data.rb | 20 ------------------- .../monitor_config_policy_edit_request.rb | 20 ------------------- .../monitor_config_policy_list_response.rb | 20 ------------------- .../models/monitor_config_policy_response.rb | 20 ------------------- .../monitor_config_policy_response_data.rb | 20 ------------------- .../monitor_config_policy_tag_policy.rb | 20 ------------------- ...config_policy_tag_policy_create_request.rb | 20 ------------------- .../models/monitor_downtime_match_response.rb | 20 ------------------- ...itor_downtime_match_response_attributes.rb | 20 ------------------- .../monitor_downtime_match_response_data.rb | 20 ------------------- .../v2/models/monitor_type.rb | 20 ------------------- .../monthly_cost_attribution_attributes.rb | 20 ------------------- .../models/monthly_cost_attribution_body.rb | 20 ------------------- .../models/monthly_cost_attribution_meta.rb | 20 ------------------- .../monthly_cost_attribution_pagination.rb | 20 ------------------- .../monthly_cost_attribution_response.rb | 20 ------------------- .../models/nullable_relationship_to_user.rb | 20 ------------------- .../nullable_relationship_to_user_data.rb | 20 ------------------- .../v2/models/nullable_user_relationship.rb | 20 ------------------- .../models/nullable_user_relationship_data.rb | 20 ------------------- .../v2/models/okta_account.rb | 20 ------------------- .../v2/models/okta_account_attributes.rb | 20 ------------------- .../v2/models/okta_account_request.rb | 20 ------------------- .../v2/models/okta_account_response.rb | 20 ------------------- .../v2/models/okta_account_response_data.rb | 20 ------------------- .../v2/models/okta_account_update_request.rb | 20 ------------------- .../okta_account_update_request_attributes.rb | 20 ------------------- .../okta_account_update_request_data.rb | 20 ------------------- .../v2/models/okta_accounts_response.rb | 20 ------------------- .../v2/models/on_demand_concurrency_cap.rb | 20 ------------------- .../on_demand_concurrency_cap_attributes.rb | 20 ------------------- .../on_demand_concurrency_cap_response.rb | 20 ------------------- .../v2/models/open_api_endpoint.rb | 20 ------------------- .../v2/models/open_api_file.rb | 20 ------------------- .../opsgenie_service_create_attributes.rb | 20 ------------------- .../v2/models/opsgenie_service_create_data.rb | 20 ------------------- .../models/opsgenie_service_create_request.rb | 20 ------------------- .../v2/models/opsgenie_service_response.rb | 20 ------------------- .../opsgenie_service_response_attributes.rb | 20 ------------------- .../models/opsgenie_service_response_data.rb | 20 ------------------- .../opsgenie_service_update_attributes.rb | 20 ------------------- .../v2/models/opsgenie_service_update_data.rb | 20 ------------------- .../models/opsgenie_service_update_request.rb | 20 ------------------- .../v2/models/opsgenie_services_response.rb | 20 ------------------- .../v2/models/org_config_get_response.rb | 20 ------------------- .../v2/models/org_config_list_response.rb | 20 ------------------- .../v2/models/org_config_read.rb | 20 ------------------- .../v2/models/org_config_read_attributes.rb | 20 ------------------- .../v2/models/org_config_write.rb | 20 ------------------- .../v2/models/org_config_write_attributes.rb | 20 ------------------- .../v2/models/org_config_write_request.rb | 20 ------------------- .../v2/models/organization.rb | 20 ------------------- .../v2/models/organization_attributes.rb | 20 ------------------- .../v2/models/outcomes_batch_attributes.rb | 20 ------------------- .../v2/models/outcomes_batch_request.rb | 20 ------------------- .../v2/models/outcomes_batch_request_data.rb | 20 ------------------- .../v2/models/outcomes_batch_request_item.rb | 20 ------------------- .../v2/models/outcomes_batch_response.rb | 20 ------------------- .../outcomes_batch_response_attributes.rb | 20 ------------------- .../v2/models/outcomes_batch_response_meta.rb | 20 ------------------- .../v2/models/outcomes_response.rb | 20 ------------------- .../v2/models/outcomes_response_data_item.rb | 20 ------------------- .../models/outcomes_response_included_item.rb | 20 ------------------- ...comes_response_included_rule_attributes.rb | 20 ------------------- .../v2/models/outcomes_response_links.rb | 20 ------------------- .../v2/models/pagination.rb | 20 ------------------- .../v2/models/partial_api_key.rb | 20 ------------------- .../v2/models/partial_api_key_attributes.rb | 20 ------------------- .../v2/models/partial_application_key.rb | 20 ------------------- .../partial_application_key_attributes.rb | 20 ------------------- .../partial_application_key_response.rb | 20 ------------------- .../v2/models/permission.rb | 20 ------------------- .../v2/models/permission_attributes.rb | 20 ------------------- .../v2/models/permissions_response.rb | 20 ------------------- lib/datadog_api_client/v2/models/powerpack.rb | 20 ------------------- .../v2/models/powerpack_attributes.rb | 20 ------------------- .../v2/models/powerpack_data.rb | 20 ------------------- .../v2/models/powerpack_group_widget.rb | 20 ------------------- .../powerpack_group_widget_definition.rb | 20 ------------------- .../models/powerpack_group_widget_layout.rb | 20 ------------------- .../models/powerpack_inner_widget_layout.rb | 20 ------------------- .../v2/models/powerpack_inner_widgets.rb | 20 ------------------- .../v2/models/powerpack_relationships.rb | 20 ------------------- .../v2/models/powerpack_response.rb | 20 ------------------- .../v2/models/powerpack_response_links.rb | 20 ------------------- .../v2/models/powerpack_template_variable.rb | 20 ------------------- .../v2/models/powerpacks_response_meta.rb | 20 ------------------- .../powerpacks_response_meta_pagination.rb | 20 ------------------- .../v2/models/process_summaries_meta.rb | 20 ------------------- .../v2/models/process_summaries_meta_page.rb | 20 ------------------- .../v2/models/process_summaries_response.rb | 20 ------------------- .../v2/models/process_summary.rb | 20 ------------------- .../v2/models/process_summary_attributes.rb | 20 ------------------- lib/datadog_api_client/v2/models/project.rb | 20 ------------------- .../v2/models/project_attributes.rb | 20 ------------------- .../v2/models/project_create.rb | 20 ------------------- .../v2/models/project_create_attributes.rb | 20 ------------------- .../v2/models/project_create_request.rb | 20 ------------------- .../v2/models/project_relationship.rb | 20 ------------------- .../v2/models/project_relationship_data.rb | 20 ------------------- .../v2/models/project_relationships.rb | 20 ------------------- .../v2/models/project_response.rb | 20 ------------------- .../v2/models/projected_cost.rb | 20 ------------------- .../v2/models/projected_cost_attributes.rb | 20 ------------------- .../v2/models/projected_cost_response.rb | 20 ------------------- .../v2/models/projects_response.rb | 20 ------------------- .../v2/models/query_formula.rb | 20 ------------------- .../relationship_to_incident_attachment.rb | 20 ------------------- ...elationship_to_incident_attachment_data.rb | 20 ------------------- .../relationship_to_incident_impact_data.rb | 20 ------------------- .../relationship_to_incident_impacts.rb | 20 ------------------- ...p_to_incident_integration_metadata_data.rb | 20 ------------------- ...nship_to_incident_integration_metadatas.rb | 20 ------------------- .../relationship_to_incident_postmortem.rb | 20 ------------------- ...elationship_to_incident_postmortem_data.rb | 20 ------------------- ...relationship_to_incident_responder_data.rb | 20 ------------------- .../relationship_to_incident_responders.rb | 20 ------------------- ...hip_to_incident_user_defined_field_data.rb | 20 ------------------- ...ionship_to_incident_user_defined_fields.rb | 20 ------------------- .../v2/models/relationship_to_organization.rb | 20 ------------------- .../relationship_to_organization_data.rb | 20 ------------------- .../models/relationship_to_organizations.rb | 20 ------------------- .../v2/models/relationship_to_outcome.rb | 20 ------------------- .../v2/models/relationship_to_outcome_data.rb | 20 ------------------- .../v2/models/relationship_to_permission.rb | 20 ------------------- .../models/relationship_to_permission_data.rb | 20 ------------------- .../v2/models/relationship_to_permissions.rb | 20 ------------------- .../v2/models/relationship_to_role.rb | 20 ------------------- .../v2/models/relationship_to_role_data.rb | 20 ------------------- .../v2/models/relationship_to_roles.rb | 20 ------------------- .../v2/models/relationship_to_rule.rb | 20 ------------------- .../v2/models/relationship_to_rule_data.rb | 20 ------------------- .../relationship_to_rule_data_object.rb | 20 ------------------- ...elationship_to_saml_assertion_attribute.rb | 20 ------------------- ...onship_to_saml_assertion_attribute_data.rb | 20 ------------------- .../v2/models/relationship_to_team.rb | 20 ------------------- .../v2/models/relationship_to_team_data.rb | 20 ------------------- .../models/relationship_to_team_link_data.rb | 20 ------------------- .../v2/models/relationship_to_team_links.rb | 20 ------------------- .../v2/models/relationship_to_user.rb | 20 ------------------- .../v2/models/relationship_to_user_data.rb | 20 ------------------- .../relationship_to_user_team_permission.rb | 20 ------------------- ...lationship_to_user_team_permission_data.rb | 20 ------------------- .../models/relationship_to_user_team_team.rb | 20 ------------------- .../relationship_to_user_team_team_data.rb | 20 ------------------- .../models/relationship_to_user_team_user.rb | 20 ------------------- .../relationship_to_user_team_user_data.rb | 20 ------------------- .../v2/models/relationship_to_users.rb | 20 ------------------- .../reorder_retention_filters_request.rb | 20 ------------------- .../v2/models/response_meta_attributes.rb | 20 ------------------- .../v2/models/restriction_policy.rb | 20 ------------------- .../models/restriction_policy_attributes.rb | 20 ------------------- .../v2/models/restriction_policy_binding.rb | 20 ------------------- .../v2/models/restriction_policy_response.rb | 20 ------------------- .../restriction_policy_update_request.rb | 20 ------------------- .../v2/models/retention_filter.rb | 20 ------------------- .../v2/models/retention_filter_all.rb | 20 ------------------- .../models/retention_filter_all_attributes.rb | 20 ------------------- .../v2/models/retention_filter_attributes.rb | 20 ------------------- .../retention_filter_create_attributes.rb | 20 ------------------- .../v2/models/retention_filter_create_data.rb | 20 ------------------- .../models/retention_filter_create_request.rb | 20 ------------------- .../retention_filter_create_response.rb | 20 ------------------- .../v2/models/retention_filter_response.rb | 20 ------------------- .../retention_filter_update_attributes.rb | 20 ------------------- .../v2/models/retention_filter_update_data.rb | 20 ------------------- .../models/retention_filter_update_request.rb | 20 ------------------- .../retention_filter_without_attributes.rb | 20 ------------------- .../v2/models/retention_filters_response.rb | 20 ------------------- lib/datadog_api_client/v2/models/role.rb | 20 ------------------- .../v2/models/role_attributes.rb | 20 ------------------- .../v2/models/role_clone.rb | 20 ------------------- .../v2/models/role_clone_attributes.rb | 20 ------------------- .../v2/models/role_clone_request.rb | 20 ------------------- .../v2/models/role_create_attributes.rb | 20 ------------------- .../v2/models/role_create_data.rb | 20 ------------------- .../v2/models/role_create_request.rb | 20 ------------------- .../v2/models/role_create_response.rb | 20 ------------------- .../v2/models/role_create_response_data.rb | 20 ------------------- .../v2/models/role_relationships.rb | 20 ------------------- .../v2/models/role_response.rb | 20 ------------------- .../v2/models/role_response_relationships.rb | 20 ------------------- .../v2/models/role_update_attributes.rb | 20 ------------------- .../v2/models/role_update_data.rb | 20 ------------------- .../v2/models/role_update_request.rb | 20 ------------------- .../v2/models/role_update_response.rb | 20 ------------------- .../v2/models/role_update_response_data.rb | 20 ------------------- .../v2/models/roles_response.rb | 20 ------------------- .../v2/models/rule_attributes.rb | 20 ------------------- .../v2/models/rule_outcome_relationships.rb | 20 ------------------- ...aggregate_bucket_value_timeseries_point.rb | 20 ------------------- .../v2/models/rum_aggregate_request.rb | 20 ------------------- .../v2/models/rum_aggregate_sort.rb | 20 ------------------- .../rum_aggregation_buckets_response.rb | 20 ------------------- .../rum_analytics_aggregate_response.rb | 20 ------------------- .../v2/models/rum_application.rb | 20 ------------------- .../v2/models/rum_application_attributes.rb | 20 ------------------- .../v2/models/rum_application_create.rb | 20 ------------------- .../rum_application_create_attributes.rb | 20 ------------------- .../models/rum_application_create_request.rb | 20 ------------------- .../v2/models/rum_application_list.rb | 20 ------------------- .../models/rum_application_list_attributes.rb | 20 ------------------- .../v2/models/rum_application_response.rb | 20 ------------------- .../v2/models/rum_application_update.rb | 20 ------------------- .../rum_application_update_attributes.rb | 20 ------------------- .../models/rum_application_update_request.rb | 20 ------------------- .../v2/models/rum_applications_response.rb | 20 ------------------- .../v2/models/rum_bucket_response.rb | 20 ------------------- .../v2/models/rum_compute.rb | 20 ------------------- lib/datadog_api_client/v2/models/rum_event.rb | 20 ------------------- .../v2/models/rum_event_attributes.rb | 20 ------------------- .../v2/models/rum_events_response.rb | 20 ------------------- .../v2/models/rum_group_by.rb | 20 ------------------- .../v2/models/rum_group_by_histogram.rb | 20 ------------------- .../v2/models/rum_query_filter.rb | 20 ------------------- .../v2/models/rum_query_options.rb | 20 ------------------- .../v2/models/rum_query_page_options.rb | 20 ------------------- .../v2/models/rum_response_links.rb | 20 ------------------- .../v2/models/rum_response_metadata.rb | 20 ------------------- .../v2/models/rum_response_page.rb | 20 ------------------- .../v2/models/rum_search_events_request.rb | 20 ------------------- .../v2/models/rum_warning.rb | 20 ------------------- .../v2/models/saml_assertion_attribute.rb | 20 ------------------- .../saml_assertion_attribute_attributes.rb | 20 ------------------- .../v2/models/scalar_formula_query_request.rb | 20 ------------------- .../models/scalar_formula_query_response.rb | 20 ------------------- .../v2/models/scalar_formula_request.rb | 20 ------------------- .../scalar_formula_request_attributes.rb | 20 ------------------- .../scalar_formula_response_atrributes.rb | 20 ------------------- .../v2/models/scalar_meta.rb | 20 ------------------- .../v2/models/scalar_response.rb | 20 ------------------- .../v2/models/security_filter.rb | 20 ------------------- .../v2/models/security_filter_attributes.rb | 20 ------------------- .../security_filter_create_attributes.rb | 20 ------------------- .../v2/models/security_filter_create_data.rb | 20 ------------------- .../models/security_filter_create_request.rb | 20 ------------------- .../security_filter_exclusion_filter.rb | 20 ------------------- ...curity_filter_exclusion_filter_response.rb | 20 ------------------- .../v2/models/security_filter_meta.rb | 20 ------------------- .../v2/models/security_filter_response.rb | 20 ------------------- .../security_filter_update_attributes.rb | 20 ------------------- .../v2/models/security_filter_update_data.rb | 20 ------------------- .../models/security_filter_update_request.rb | 20 ------------------- .../v2/models/security_filters_response.rb | 20 ------------------- .../v2/models/security_monitoring_filter.rb | 20 ------------------- ...security_monitoring_list_rules_response.rb | 20 ------------------- .../models/security_monitoring_rule_case.rb | 20 ------------------- .../security_monitoring_rule_case_create.rb | 20 ------------------- ...curity_monitoring_rule_convert_response.rb | 20 ------------------- ...nitoring_rule_impossible_travel_options.rb | 20 ------------------- ...urity_monitoring_rule_new_value_options.rb | 20 ------------------- .../security_monitoring_rule_options.rb | 20 ------------------- .../security_monitoring_rule_query_payload.rb | 20 ------------------- ...rity_monitoring_rule_query_payload_data.rb | 20 ------------------- .../security_monitoring_rule_test_request.rb | 20 ------------------- .../security_monitoring_rule_test_response.rb | 20 ------------------- ...ity_monitoring_rule_third_party_options.rb | 20 ------------------- ...security_monitoring_rule_update_payload.rb | 20 ------------------- .../v2/models/security_monitoring_signal.rb | 20 ------------------- ...oring_signal_assignee_update_attributes.rb | 20 ------------------- ..._monitoring_signal_assignee_update_data.rb | 20 ------------------- ...nitoring_signal_assignee_update_request.rb | 20 ------------------- .../security_monitoring_signal_attributes.rb | 20 ------------------- ...ring_signal_incidents_update_attributes.rb | 20 ------------------- ...monitoring_signal_incidents_update_data.rb | 20 ------------------- ...itoring_signal_incidents_update_request.rb | 20 ------------------- ...security_monitoring_signal_list_request.rb | 20 ------------------- ...y_monitoring_signal_list_request_filter.rb | 20 ------------------- ...ity_monitoring_signal_list_request_page.rb | 20 ------------------- .../security_monitoring_signal_response.rb | 20 ------------------- ...y_monitoring_signal_rule_create_payload.rb | 20 ------------------- ...security_monitoring_signal_rule_payload.rb | 20 ------------------- .../security_monitoring_signal_rule_query.rb | 20 ------------------- ...ecurity_monitoring_signal_rule_response.rb | 20 ------------------- ...y_monitoring_signal_rule_response_query.rb | 20 ------------------- ...nitoring_signal_state_update_attributes.rb | 20 ------------------- ...ity_monitoring_signal_state_update_data.rb | 20 ------------------- ..._monitoring_signal_state_update_request.rb | 20 ------------------- ...ity_monitoring_signal_triage_attributes.rb | 20 ------------------- ...ty_monitoring_signal_triage_update_data.rb | 20 ------------------- ...onitoring_signal_triage_update_response.rb | 20 ------------------- ...curity_monitoring_signals_list_response.rb | 20 ------------------- ..._monitoring_signals_list_response_links.rb | 20 ------------------- ...y_monitoring_signals_list_response_meta.rb | 20 ------------------- ...itoring_signals_list_response_meta_page.rb | 20 ------------------- ...monitoring_standard_rule_create_payload.rb | 20 ------------------- ...curity_monitoring_standard_rule_payload.rb | 20 ------------------- ...security_monitoring_standard_rule_query.rb | 20 ------------------- ...urity_monitoring_standard_rule_response.rb | 20 ------------------- ...y_monitoring_standard_rule_test_payload.rb | 20 ------------------- .../models/security_monitoring_suppression.rb | 20 ------------------- ...urity_monitoring_suppression_attributes.rb | 20 ------------------- ...onitoring_suppression_create_attributes.rb | 20 ------------------- ...rity_monitoring_suppression_create_data.rb | 20 ------------------- ...y_monitoring_suppression_create_request.rb | 20 ------------------- ...ecurity_monitoring_suppression_response.rb | 20 ------------------- ...onitoring_suppression_update_attributes.rb | 20 ------------------- ...rity_monitoring_suppression_update_data.rb | 20 ------------------- ...y_monitoring_suppression_update_request.rb | 20 ------------------- ...curity_monitoring_suppressions_response.rb | 20 ------------------- ...urity_monitoring_third_party_root_query.rb | 20 ------------------- ...curity_monitoring_third_party_rule_case.rb | 20 ------------------- ...monitoring_third_party_rule_case_create.rb | 20 ------------------- .../models/security_monitoring_triage_user.rb | 20 ------------------- .../v2/models/security_monitoring_user.rb | 20 ------------------- .../sensitive_data_scanner_config_request.rb | 20 ------------------- .../sensitive_data_scanner_configuration.rb | 20 ------------------- ...nsitive_data_scanner_configuration_data.rb | 20 ------------------- ...ata_scanner_configuration_relationships.rb | 20 ------------------- ...tive_data_scanner_create_group_response.rb | 20 ------------------- ...itive_data_scanner_create_rule_response.rb | 20 ------------------- .../models/sensitive_data_scanner_filter.rb | 20 ------------------- ...sitive_data_scanner_get_config_response.rb | 20 ------------------- ...e_data_scanner_get_config_response_data.rb | 20 ------------------- .../v2/models/sensitive_data_scanner_group.rb | 20 ------------------- ...sensitive_data_scanner_group_attributes.rb | 20 ------------------- .../sensitive_data_scanner_group_create.rb | 20 ------------------- ...itive_data_scanner_group_create_request.rb | 20 ------------------- .../sensitive_data_scanner_group_data.rb | 20 ------------------- ...itive_data_scanner_group_delete_request.rb | 20 ------------------- ...tive_data_scanner_group_delete_response.rb | 20 ------------------- ...sitive_data_scanner_group_included_item.rb | 20 ------------------- .../sensitive_data_scanner_group_item.rb | 20 ------------------- .../sensitive_data_scanner_group_list.rb | 20 ------------------- ...sitive_data_scanner_group_relationships.rb | 20 ------------------- .../sensitive_data_scanner_group_response.rb | 20 ------------------- .../sensitive_data_scanner_group_update.rb | 20 ------------------- ...itive_data_scanner_group_update_request.rb | 20 ------------------- ...tive_data_scanner_group_update_response.rb | 20 ------------------- ..._scanner_included_keyword_configuration.rb | 20 ------------------- .../v2/models/sensitive_data_scanner_meta.rb | 20 ------------------- ...ensitive_data_scanner_meta_version_only.rb | 20 ------------------- .../sensitive_data_scanner_reorder_config.rb | 20 ------------------- ...ve_data_scanner_reorder_groups_response.rb | 20 ------------------- .../v2/models/sensitive_data_scanner_rule.rb | 20 ------------------- .../sensitive_data_scanner_rule_attributes.rb | 20 ------------------- .../sensitive_data_scanner_rule_create.rb | 20 ------------------- ...sitive_data_scanner_rule_create_request.rb | 20 ------------------- .../sensitive_data_scanner_rule_data.rb | 20 ------------------- ...sitive_data_scanner_rule_delete_request.rb | 20 ------------------- ...itive_data_scanner_rule_delete_response.rb | 20 ------------------- ...nsitive_data_scanner_rule_included_item.rb | 20 ------------------- ...nsitive_data_scanner_rule_relationships.rb | 20 ------------------- .../sensitive_data_scanner_rule_response.rb | 20 ------------------- .../sensitive_data_scanner_rule_update.rb | 20 ------------------- ...sitive_data_scanner_rule_update_request.rb | 20 ------------------- ...itive_data_scanner_rule_update_response.rb | 20 ------------------- ...sensitive_data_scanner_standard_pattern.rb | 20 ------------------- ...ata_scanner_standard_pattern_attributes.rb | 20 ------------------- ...tive_data_scanner_standard_pattern_data.rb | 20 ------------------- ...scanner_standard_patterns_response_data.rb | 20 ------------------- ...scanner_standard_patterns_response_item.rb | 20 ------------------- ...sensitive_data_scanner_text_replacement.rb | 20 ------------------- .../service_account_create_attributes.rb | 20 ------------------- .../v2/models/service_account_create_data.rb | 20 ------------------- .../models/service_account_create_request.rb | 20 ------------------- .../service_definition_create_response.rb | 20 ------------------- .../v2/models/service_definition_data.rb | 20 ------------------- .../service_definition_data_attributes.rb | 20 ------------------- .../models/service_definition_get_response.rb | 20 ------------------- .../v2/models/service_definition_meta.rb | 20 ------------------- .../service_definition_meta_warnings.rb | 20 ------------------- .../v2/models/service_definition_v1.rb | 20 ------------------- .../models/service_definition_v1_contact.rb | 20 ------------------- .../v2/models/service_definition_v1_info.rb | 20 ------------------- .../service_definition_v1_integrations.rb | 20 ------------------- .../v2/models/service_definition_v1_org.rb | 20 ------------------- .../models/service_definition_v1_resource.rb | 20 ------------------- .../v2/models/service_definition_v2.rb | 20 ------------------- .../v2/models/service_definition_v2_doc.rb | 20 ------------------- .../v2/models/service_definition_v2_dot1.rb | 20 ------------------- .../service_definition_v2_dot1_email.rb | 20 ------------------- ...service_definition_v2_dot1_integrations.rb | 20 ------------------- .../models/service_definition_v2_dot1_link.rb | 20 ------------------- .../service_definition_v2_dot1_ms_teams.rb | 20 ------------------- .../service_definition_v2_dot1_opsgenie.rb | 20 ------------------- .../service_definition_v2_dot1_pagerduty.rb | 20 ------------------- .../service_definition_v2_dot1_slack.rb | 20 ------------------- .../v2/models/service_definition_v2_dot2.rb | 20 ------------------- .../service_definition_v2_dot2_contact.rb | 20 ------------------- ...service_definition_v2_dot2_integrations.rb | 20 ------------------- .../models/service_definition_v2_dot2_link.rb | 20 ------------------- .../service_definition_v2_dot2_opsgenie.rb | 20 ------------------- .../service_definition_v2_dot2_pagerduty.rb | 20 ------------------- .../v2/models/service_definition_v2_email.rb | 20 ------------------- .../service_definition_v2_integrations.rb | 20 ------------------- .../v2/models/service_definition_v2_link.rb | 20 ------------------- .../models/service_definition_v2_ms_teams.rb | 20 ------------------- .../models/service_definition_v2_opsgenie.rb | 20 ------------------- .../v2/models/service_definition_v2_repo.rb | 20 ------------------- .../v2/models/service_definition_v2_slack.rb | 20 ------------------- .../service_definitions_list_response.rb | 20 ------------------- .../v2/models/service_now_ticket.rb | 20 ------------------- .../v2/models/service_now_ticket_result.rb | 20 ------------------- .../v2/models/slack_integration_metadata.rb | 20 ------------------- ...slack_integration_metadata_channel_item.rb | 20 ------------------- .../v2/models/slo_report_create_request.rb | 20 ------------------- .../slo_report_create_request_attributes.rb | 20 ------------------- .../models/slo_report_create_request_data.rb | 20 ------------------- .../v2/models/slo_report_post_response.rb | 20 ------------------- .../models/slo_report_post_response_data.rb | 20 ------------------- .../models/slo_report_status_get_response.rb | 20 ------------------- ...o_report_status_get_response_attributes.rb | 20 ------------------- .../slo_report_status_get_response_data.rb | 20 ------------------- lib/datadog_api_client/v2/models/span.rb | 20 ------------------- .../v2/models/spans_aggregate_bucket.rb | 20 ------------------- .../spans_aggregate_bucket_attributes.rb | 20 ------------------- ...aggregate_bucket_value_timeseries_point.rb | 20 ------------------- .../v2/models/spans_aggregate_data.rb | 20 ------------------- .../v2/models/spans_aggregate_request.rb | 20 ------------------- .../spans_aggregate_request_attributes.rb | 20 ------------------- .../v2/models/spans_aggregate_response.rb | 20 ------------------- .../spans_aggregate_response_metadata.rb | 20 ------------------- .../v2/models/spans_aggregate_sort.rb | 20 ------------------- .../v2/models/spans_attributes.rb | 20 ------------------- .../v2/models/spans_compute.rb | 20 ------------------- .../v2/models/spans_filter.rb | 20 ------------------- .../v2/models/spans_filter_create.rb | 20 ------------------- .../v2/models/spans_group_by.rb | 20 ------------------- .../v2/models/spans_group_by_histogram.rb | 20 ------------------- .../v2/models/spans_list_request.rb | 20 ------------------- .../models/spans_list_request_attributes.rb | 20 ------------------- .../v2/models/spans_list_request_data.rb | 20 ------------------- .../v2/models/spans_list_request_page.rb | 20 ------------------- .../v2/models/spans_list_response.rb | 20 ------------------- .../v2/models/spans_list_response_links.rb | 20 ------------------- .../v2/models/spans_list_response_metadata.rb | 20 ------------------- .../v2/models/spans_metric_compute.rb | 20 ------------------- .../models/spans_metric_create_attributes.rb | 20 ------------------- .../v2/models/spans_metric_create_data.rb | 20 ------------------- .../v2/models/spans_metric_create_request.rb | 20 ------------------- .../v2/models/spans_metric_filter.rb | 20 ------------------- .../v2/models/spans_metric_group_by.rb | 20 ------------------- .../v2/models/spans_metric_response.rb | 20 ------------------- .../spans_metric_response_attributes.rb | 20 ------------------- .../models/spans_metric_response_compute.rb | 20 ------------------- .../v2/models/spans_metric_response_data.rb | 20 ------------------- .../v2/models/spans_metric_response_filter.rb | 20 ------------------- .../models/spans_metric_response_group_by.rb | 20 ------------------- .../models/spans_metric_update_attributes.rb | 20 ------------------- .../v2/models/spans_metric_update_compute.rb | 20 ------------------- .../v2/models/spans_metric_update_data.rb | 20 ------------------- .../v2/models/spans_metric_update_request.rb | 20 ------------------- .../v2/models/spans_metrics_response.rb | 20 ------------------- .../v2/models/spans_query_filter.rb | 20 ------------------- .../v2/models/spans_query_options.rb | 20 ------------------- .../v2/models/spans_response_metadata_page.rb | 20 ------------------- .../v2/models/spans_warning.rb | 20 ------------------- lib/datadog_api_client/v2/models/team.rb | 20 ------------------- .../v2/models/team_attributes.rb | 20 ------------------- .../v2/models/team_create.rb | 20 ------------------- .../v2/models/team_create_attributes.rb | 20 ------------------- .../v2/models/team_create_relationships.rb | 20 ------------------- .../v2/models/team_create_request.rb | 20 ------------------- lib/datadog_api_client/v2/models/team_link.rb | 20 ------------------- .../v2/models/team_link_attributes.rb | 20 ------------------- .../v2/models/team_link_create.rb | 20 ------------------- .../v2/models/team_link_create_request.rb | 20 ------------------- .../v2/models/team_link_response.rb | 20 ------------------- .../v2/models/team_links_response.rb | 20 ------------------- .../v2/models/team_permission_setting.rb | 20 ------------------- .../team_permission_setting_attributes.rb | 20 ------------------- .../team_permission_setting_response.rb | 20 ------------------- .../models/team_permission_setting_update.rb | 20 ------------------- ...am_permission_setting_update_attributes.rb | 20 ------------------- .../team_permission_setting_update_request.rb | 20 ------------------- .../team_permission_settings_response.rb | 20 ------------------- .../v2/models/team_relationships.rb | 20 ------------------- .../v2/models/team_relationships_links.rb | 20 ------------------- .../v2/models/team_response.rb | 20 ------------------- .../v2/models/team_update.rb | 20 ------------------- .../v2/models/team_update_attributes.rb | 20 ------------------- .../v2/models/team_update_relationships.rb | 20 ------------------- .../v2/models/team_update_request.rb | 20 ------------------- .../v2/models/teams_response.rb | 20 ------------------- .../v2/models/teams_response_links.rb | 20 ------------------- .../v2/models/teams_response_meta.rb | 20 ------------------- .../models/teams_response_meta_pagination.rb | 20 ------------------- .../timeseries_formula_query_request.rb | 20 ------------------- .../timeseries_formula_query_response.rb | 20 ------------------- .../v2/models/timeseries_formula_request.rb | 20 ------------------- .../timeseries_formula_request_attributes.rb | 20 ------------------- .../v2/models/timeseries_response.rb | 20 ------------------- .../models/timeseries_response_attributes.rb | 20 ------------------- .../v2/models/timeseries_response_series.rb | 20 ------------------- lib/datadog_api_client/v2/models/unit.rb | 20 ------------------- .../v2/models/update_open_api_response.rb | 20 ------------------- .../update_open_api_response_attributes.rb | 20 ------------------- .../models/update_open_api_response_data.rb | 20 ------------------- .../v2/models/update_rule_request.rb | 20 ------------------- .../v2/models/update_rule_request_data.rb | 20 ------------------- .../v2/models/update_rule_response.rb | 20 ------------------- .../v2/models/update_rule_response_data.rb | 20 ------------------- ...pplication_security_monitoring_response.rb | 20 ------------------- .../v2/models/usage_attributes_object.rb | 20 ------------------- .../v2/models/usage_data_object.rb | 20 ------------------- ...sage_lambda_traced_invocations_response.rb | 20 ------------------- .../usage_observability_pipelines_response.rb | 20 ------------------- .../v2/models/usage_time_series_object.rb | 20 ------------------- lib/datadog_api_client/v2/models/user.rb | 20 ------------------- .../v2/models/user_attributes.rb | 20 ------------------- .../v2/models/user_create_attributes.rb | 20 ------------------- .../v2/models/user_create_data.rb | 20 ------------------- .../v2/models/user_create_request.rb | 20 ------------------- .../v2/models/user_invitation_data.rb | 20 ------------------- .../models/user_invitation_data_attributes.rb | 20 ------------------- .../models/user_invitation_relationships.rb | 20 ------------------- .../v2/models/user_invitation_response.rb | 20 ------------------- .../models/user_invitation_response_data.rb | 20 ------------------- .../v2/models/user_invitations_request.rb | 20 ------------------- .../v2/models/user_invitations_response.rb | 20 ------------------- .../v2/models/user_relationship_data.rb | 20 ------------------- .../v2/models/user_relationships.rb | 20 ------------------- .../v2/models/user_response.rb | 20 ------------------- .../v2/models/user_response_relationships.rb | 20 ------------------- lib/datadog_api_client/v2/models/user_team.rb | 20 ------------------- .../v2/models/user_team_attributes.rb | 20 ------------------- .../v2/models/user_team_create.rb | 20 ------------------- .../v2/models/user_team_permission.rb | 20 ------------------- .../models/user_team_permission_attributes.rb | 20 ------------------- .../v2/models/user_team_relationships.rb | 20 ------------------- .../v2/models/user_team_request.rb | 20 ------------------- .../v2/models/user_team_response.rb | 20 ------------------- .../v2/models/user_team_update.rb | 20 ------------------- .../v2/models/user_team_update_request.rb | 20 ------------------- .../v2/models/user_teams_response.rb | 20 ------------------- .../v2/models/user_update_attributes.rb | 20 ------------------- .../v2/models/user_update_data.rb | 20 ------------------- .../v2/models/user_update_request.rb | 20 ------------------- .../v2/models/users_relationship.rb | 20 ------------------- .../v2/models/users_response.rb | 20 ------------------- .../models/workflow_instance_create_meta.rb | 20 ------------------- .../workflow_instance_create_request.rb | 20 ------------------- .../workflow_instance_create_response.rb | 20 ------------------- .../workflow_instance_create_response_data.rb | 20 ------------------- .../v2/models/workflow_instance_list_item.rb | 20 ------------------- .../workflow_list_instances_response.rb | 20 ------------------- .../workflow_list_instances_response_meta.rb | 20 ------------------- ...kflow_list_instances_response_meta_page.rb | 20 ------------------- .../worklflow_cancel_instance_response.rb | 20 ------------------- ...worklflow_cancel_instance_response_data.rb | 20 ------------------- .../models/worklflow_get_instance_response.rb | 20 ------------------- .../worklflow_get_instance_response_data.rb | 20 ------------------- ...w_get_instance_response_data_attributes.rb | 20 ------------------- 1794 files changed, 170 insertions(+), 35644 deletions(-) diff --git a/lib/datadog_api_client/v1/model_base.rb b/lib/datadog_api_client/v1/model_base.rb index fda1f3037344..64365d75d81c 100644 --- a/lib/datadog_api_client/v1/model_base.rb +++ b/lib/datadog_api_client/v1/model_base.rb @@ -59,7 +59,7 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) unless self.respond_to?(:additional_properties) unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } - return nil + raise SchemaMismatchError, "Additional properties are not allowed" end end self.class.openapi_types.each_pair do |key, type| @@ -161,7 +161,7 @@ def to_body to_hash end - # Returns the object in the form of hash + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private def to_hash @@ -175,6 +175,9 @@ def to_hash hash[param] = _to_hash(value) end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end hash end diff --git a/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb b/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb index 108fa967c560..3a28c61d6b8f 100644 --- a/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb +++ b/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb @@ -101,26 +101,6 @@ def incident_id=(incident_id) @incident_id = incident_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb b/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb index e009b3dd440a..f9114194f1bf 100644 --- a/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb @@ -159,26 +159,6 @@ def viz_type=(viz_type) @viz_type = viz_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb b/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb index 60ab2fc33b67..339d6c698d0e 100644 --- a/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb @@ -157,26 +157,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/api_error_response.rb b/lib/datadog_api_client/v1/models/api_error_response.rb index fef860614fc4..9117370a26c1 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -85,26 +85,6 @@ def errors=(errors) @errors = errors end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index c1eda2c40345..c0fafda75764 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -114,26 +114,6 @@ def key=(key) @key = key end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/api_key_list_response.rb b/lib/datadog_api_client/v1/models/api_key_list_response.rb index 10c7034e51fc..52e9c55e8f40 100644 --- a/lib/datadog_api_client/v1/models/api_key_list_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/api_key_response.rb b/lib/datadog_api_client/v1/models/api_key_response.rb index e380a200d36f..0744acd9823a 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb b/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb index 9d05bcadd665..f6eefdc2b466 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb @@ -110,26 +110,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb b/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb index 98827cc38573..b5c36db8751a 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb @@ -183,26 +183,6 @@ def service=(service) @service = service end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index 21b4ea6ad39a..03218a5dd2aa 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -105,26 +105,6 @@ def _hash=(_hash) @_hash = _hash end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/application_key_list_response.rb b/lib/datadog_api_client/v1/models/application_key_list_response.rb index af5706c0ea78..95d9a5332522 100644 --- a/lib/datadog_api_client/v1/models/application_key_list_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/application_key_response.rb b/lib/datadog_api_client/v1/models/application_key_response.rb index 821573536e2a..f64182dca43e 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/authentication_validation_response.rb b/lib/datadog_api_client/v1/models/authentication_validation_response.rb index 0baa0db35e6f..2f0a11182489 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index 7d965eab6627..93ebddb1807a 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -179,26 +179,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb b/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb index f3933795f22c..5801dabff3e0 100644 --- a/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb +++ b/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb @@ -103,26 +103,6 @@ def lambda_arn=(lambda_arn) @lambda_arn = lambda_arn end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account_create_response.rb b/lib/datadog_api_client/v1/models/aws_account_create_response.rb index c741aa3f62e0..5d742e931716 100644 --- a/lib/datadog_api_client/v1/models/aws_account_create_response.rb +++ b/lib/datadog_api_client/v1/models/aws_account_create_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account_delete_request.rb b/lib/datadog_api_client/v1/models/aws_account_delete_request.rb index f5498bd75406..4b266be3929b 100644 --- a/lib/datadog_api_client/v1/models/aws_account_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_account_delete_request.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account_list_response.rb b/lib/datadog_api_client/v1/models/aws_account_list_response.rb index 60f4637d1b23..25267cfa29b9 100644 --- a/lib/datadog_api_client/v1/models/aws_account_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_account_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb index 104249c6d615..4e02106523db 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb @@ -88,26 +88,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb index a7c5a97ec17b..a585e56a9700 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb @@ -94,26 +94,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb index 8db98d22f3d0..f9dadf46b20b 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb index 3728a892a176..9f2e13763488 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb index 28202c33ecf7..ad5839be6c2e 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb index 705edb4c795f..81ab13656d92 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb index 8c7a2d031ec6..5050e09d6fa2 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_async_error.rb b/lib/datadog_api_client/v1/models/aws_logs_async_error.rb index 19c080766b0f..f83594f8b921 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_async_error.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_async_error.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_async_response.rb b/lib/datadog_api_client/v1/models/aws_logs_async_response.rb index 0b865db0dbb4..89bfce739981 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_async_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_async_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb index 4f05c96e1d4c..dd5de8470e05 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_list_response.rb b/lib/datadog_api_client/v1/models/aws_logs_list_response.rb index 608a1baee641..21e2896f377e 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_list_response.rb @@ -87,26 +87,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb b/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb index 912c94a5b2bb..a67c34a2f0ed 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_services_request.rb b/lib/datadog_api_client/v1/models/aws_logs_services_request.rb index 0dee77c43f2b..498b5948c806 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_services_request.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_services_request.rb @@ -105,26 +105,6 @@ def services=(services) @services = services end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter.rb b/lib/datadog_api_client/v1/models/aws_tag_filter.rb index 727db1e7edd9..3b9cba2dc2ba 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb index 213973762323..73d7d0b47cb6 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb index 0825c70e6656..b3a03d69ae04 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb index 5259978f0ed9..168edb34db63 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index 1586bfd0f78f..a2bdb8c5db93 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -191,26 +191,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb b/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb index f754e97c2309..56b9309412d6 100644 --- a/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb +++ b/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb @@ -70,26 +70,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb b/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb index a1ee5793a945..9785e1931fc3 100644 --- a/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb +++ b/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb @@ -85,26 +85,6 @@ def scope=(scope) @scope = scope end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb index 40efe8b0bcdf..ee7c879138ed 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/change_widget_definition.rb b/lib/datadog_api_client/v1/models/change_widget_definition.rb index 0141923d6c86..77f43a630333 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -163,26 +163,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/change_widget_request.rb b/lib/datadog_api_client/v1/models/change_widget_request.rb index cf43f748421a..886604bd574a 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -222,26 +222,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb index c1353d1bffd0..409b8b2f26fa 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb @@ -100,26 +100,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb index a7d69fd378d2..abe515b43426 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb b/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb index 7614aec6b0aa..80f00797c004 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb b/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb index 18b1c7620d1d..4efb2ddc3c7a 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_status_widget_definition.rb b/lib/datadog_api_client/v1/models/check_status_widget_definition.rb index e216c396788f..4700224bd9a3 100644 --- a/lib/datadog_api_client/v1/models/check_status_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/check_status_widget_definition.rb @@ -190,26 +190,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index aa3dfd120dea..c28fe1c1a2a6 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -91,26 +91,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index f2654dd2ab69..9673a9d0b73c 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -292,26 +292,6 @@ def widgets=(widgets) @widgets = widgets end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb b/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb index b1efd9915a23..a52365fd5dd4 100644 --- a/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb +++ b/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb b/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb index 30930992d2ac..16a1e7b090fd 100644 --- a/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb index 5186678e409b..dfb2c57d24e2 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_global_time.rb b/lib/datadog_api_client/v1/models/dashboard_global_time.rb index 2d815717796a..709c37481dc1 100644 --- a/lib/datadog_api_client/v1/models/dashboard_global_time.rb +++ b/lib/datadog_api_client/v1/models/dashboard_global_time.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index 3646242937b9..44a84d2e85ea 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -146,26 +146,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb b/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb index 770baf631991..0019ef247765 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb b/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb index 9f241a47ad6c..260ae17fba03 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb index 2ac46e950c2c..1e7be3b4b37f 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index 0c081704dc7f..bf51056521c0 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb index 57135f7c20fb..5fe0f4271d31 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -147,26 +147,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb index 4f7dddca0821..694740e0657f 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -133,26 +133,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb index f0c085b8415d..659994023cd9 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb index 00d5a1a41fc3..1dc920556ede 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb @@ -103,26 +103,6 @@ def values=(values) @values = values end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb b/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb index 1c413b9ae449..deb397a5ee0b 100644 --- a/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb +++ b/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index de5b6e36d33a..455cb8740e88 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_points_payload.rb b/lib/datadog_api_client/v1/models/distribution_points_payload.rb index 6e965c38ad06..28de133c1ce1 100644 --- a/lib/datadog_api_client/v1/models/distribution_points_payload.rb +++ b/lib/datadog_api_client/v1/models/distribution_points_payload.rb @@ -85,26 +85,6 @@ def series=(series) @series = series end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_points_series.rb b/lib/datadog_api_client/v1/models/distribution_points_series.rb index a1b225ea5a8b..b242a992dba6 100644 --- a/lib/datadog_api_client/v1/models/distribution_points_series.rb +++ b/lib/datadog_api_client/v1/models/distribution_points_series.rb @@ -134,26 +134,6 @@ def points=(points) @points = points end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb index a769952d2618..413ca4f00547 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -212,26 +212,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_widget_request.rb b/lib/datadog_api_client/v1/models/distribution_widget_request.rb index 11dc47452614..8fb916440ec1 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -173,26 +173,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb b/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb index fa1da16efee1..aaeeade616ef 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb b/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb index 1bac3496ab7d..c5b0b97745f3 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index 22974a916862..849bea43aa64 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -317,26 +317,6 @@ def updater_id=(updater_id) @updater_id = updater_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 6d6422c6ef55..3bd8ee56f650 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -304,26 +304,6 @@ def updater_id=(updater_id) @updater_id = updater_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index 2125423da4a0..e2dd73d11c9a 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -160,26 +160,6 @@ def until_occurrences=(until_occurrences) @until_occurrences = until_occurrences end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index b708f8471dc7..61fd76305045 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -209,26 +209,6 @@ def text=(text) @text = text end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_create_request.rb b/lib/datadog_api_client/v1/models/event_create_request.rb index ade07c500e7f..c78d799cd191 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -217,26 +217,6 @@ def title=(title) @title = title end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_create_response.rb b/lib/datadog_api_client/v1/models/event_create_response.rb index bf2a43ec98c1..9aa4f3c6501e 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_list_response.rb b/lib/datadog_api_client/v1/models/event_list_response.rb index 5da4615aed40..6cdc33846547 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_query_definition.rb b/lib/datadog_api_client/v1/models/event_query_definition.rb index 9abf8cb44a85..4fc9cd0f0413 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -103,26 +103,6 @@ def tags_execution=(tags_execution) @tags_execution = tags_execution end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index 995b20b12033..8b08cd2294ac 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb index 7f4e9ebc2d16..39c1c2ce77d4 100644 --- a/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb @@ -158,26 +158,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb b/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb index b0a110166707..fb3941622b1b 100644 --- a/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb @@ -148,26 +148,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb index df396cae702e..f86a0cb0e250 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb @@ -252,26 +252,6 @@ def stat=(stat) @stat = stat end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb index 748a41871f75..cd3d72b65323 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb @@ -232,26 +232,6 @@ def stat=(stat) @stat = stat end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb index 0e90f9d67845..a1b25297c8bf 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb @@ -154,26 +154,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb index bcdd73690ca9..ac352b4d28c2 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb @@ -185,26 +185,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb index db6712e1cc02..18186ce5a33f 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb @@ -101,26 +101,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb index de6acaffbbda..b7c46f4382a4 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb @@ -83,26 +83,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb index adce09c48205..85b4da4d07a3 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb @@ -101,26 +101,6 @@ def facet=(facet) @facet = facet end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb index 8e688abb571f..40569f61c1f4 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb @@ -101,26 +101,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb index 555188b911a2..8af45c4c91ce 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb @@ -154,26 +154,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb index ce27a9a0d415..8a0b8f034149 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb @@ -201,26 +201,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb index 097f786d229a..53470063d44c 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb @@ -181,26 +181,6 @@ def slo_id=(slo_id) @slo_id = slo_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/free_text_widget_definition.rb b/lib/datadog_api_client/v1/models/free_text_widget_definition.rb index 081df5835297..59b09f0eeee8 100644 --- a/lib/datadog_api_client/v1/models/free_text_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/free_text_widget_definition.rb @@ -130,26 +130,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index d4a2323b64f6..92a54abef278 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -125,26 +125,6 @@ def steps=(steps) @steps = steps end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/funnel_step.rb b/lib/datadog_api_client/v1/models/funnel_step.rb index 10c8c3ab002f..1e9a4ab0f8cf 100644 --- a/lib/datadog_api_client/v1/models/funnel_step.rb +++ b/lib/datadog_api_client/v1/models/funnel_step.rb @@ -103,26 +103,6 @@ def value=(value) @value = value end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb index e8ff761a9db7..9c9c1a2e3b56 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -149,26 +149,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/funnel_widget_request.rb b/lib/datadog_api_client/v1/models/funnel_widget_request.rb index 9edb99665d0c..253c8275b88d 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -103,26 +103,6 @@ def request_type=(request_type) @request_type = request_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index 74c97b48da37..29f30fe16180 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -216,26 +216,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb index 765fd5a220ab..bafae67d057a 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -203,26 +203,6 @@ def view=(view) @view = view end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb index 3db6edbacae0..5a271d2d2a79 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb @@ -103,26 +103,6 @@ def palette_flip=(palette_flip) @palette_flip = palette_flip end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb index 101907f2e4aa..83f652386fb3 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb @@ -83,26 +83,6 @@ def focus=(focus) @focus = focus end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/geomap_widget_request.rb b/lib/datadog_api_client/v1/models/geomap_widget_request.rb index 13f4dcf8aae7..22ed55fd189c 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -152,26 +152,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index 6ecd5476bfa3..817d6ad20f14 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/group_widget_definition.rb b/lib/datadog_api_client/v1/models/group_widget_definition.rb index 522b73bebf86..1d8f54c49d69 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -170,26 +170,6 @@ def widgets=(widgets) @widgets = widgets end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb b/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb index 30a962b68784..062fd5ae61f1 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb @@ -198,26 +198,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_request.rb b/lib/datadog_api_client/v1/models/heat_map_widget_request.rb index 00abd8033dff..05c7547690de 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_request.rb @@ -177,26 +177,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index 3abc20c59769..47996dba2b37 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -196,26 +196,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_list_response.rb b/lib/datadog_api_client/v1/models/host_list_response.rb index 4ae54c173767..e11169abc57f 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_map_request.rb b/lib/datadog_api_client/v1/models/host_map_request.rb index e095cb4b2a0d..41ef55f3d930 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -137,26 +137,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition.rb index 02cf3eb59586..cbceebc10aef 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition.rb @@ -208,26 +208,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb index 6d44fafbb08c..1fe32685dead 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb index 05e28a109537..6fa089fe73fc 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index 589045becdf2..3ef945453ed0 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -201,26 +201,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_meta_install_method.rb b/lib/datadog_api_client/v1/models/host_meta_install_method.rb index 6f240983a633..29f5bf43f643 100644 --- a/lib/datadog_api_client/v1/models/host_meta_install_method.rb +++ b/lib/datadog_api_client/v1/models/host_meta_install_method.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index 47323d810a1e..f9eec0a935b7 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_mute_response.rb b/lib/datadog_api_client/v1/models/host_mute_response.rb index 3d84817669c9..8e1b9d2ba128 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_mute_settings.rb b/lib/datadog_api_client/v1/models/host_mute_settings.rb index 8ce781ea6e6c..21a542bc2906 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index 9d2a8806aba1..caeae8f144ca 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index 54905dd26aff..f2594048a51d 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb index 44aa85c98158..764113c2864c 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb @@ -149,26 +149,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb index cddfa75b16f0..c0ea241b486b 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb index fb645474bd6d..124abf6b78c8 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb @@ -73,26 +73,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb index 5fab07b0e455..9e00bc3ada30 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/http_log_error.rb b/lib/datadog_api_client/v1/models/http_log_error.rb index b6e4ea116df8..a95e615ee805 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -107,26 +107,6 @@ def message=(message) @message = message end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/http_log_item.rb b/lib/datadog_api_client/v1/models/http_log_item.rb index 87edb58d4b21..b71c15222953 100644 --- a/lib/datadog_api_client/v1/models/http_log_item.rb +++ b/lib/datadog_api_client/v1/models/http_log_item.rb @@ -125,26 +125,6 @@ def message=(message) @message = message end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb b/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb index 561c79874b63..c9a2c6d54ad4 100644 --- a/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb @@ -103,26 +103,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/idp_form_data.rb b/lib/datadog_api_client/v1/models/idp_form_data.rb index a2e7ce7b141c..d3d9ad02a47e 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -83,26 +83,6 @@ def idp_file=(idp_file) @idp_file = idp_file end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index ef87dc4ff1f1..84df5146679f 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -83,26 +83,6 @@ def message=(message) @message = message end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/image_widget_definition.rb b/lib/datadog_api_client/v1/models/image_widget_definition.rb index 614555c1950d..8e70ca769553 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -168,26 +168,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb index 57a485e6d67f..0e9273c87d33 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb index 07d7c5237620..2c3f104da5d2 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb index bce7c4405a0c..765a2ed366ac 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb index d1b286d417eb..39ad4e7f7698 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_global.rb b/lib/datadog_api_client/v1/models/ip_prefixes_global.rb index 1d8121d169cf..3b78e68635a1 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_global.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_global.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb index 720e8a615e50..aa537d29c129 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb b/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb index d71219513bd2..3723698b2fff 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb index 859947b2d3ac..962c2822f2f8 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb b/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb index c7a50b387d09..7cebd7f0fe41 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb index 4cba41597f79..dfd86b1e9eb9 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -96,26 +96,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb index 1030e1aafcea..726484827ba4 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb index b59468b7a29b..5fbabecd8dcb 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index f624d6b97d4c..fc0d12e428da 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -173,26 +173,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_column.rb b/lib/datadog_api_client/v1/models/list_stream_column.rb index 3b6b75de166a..8db8c35dfa06 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -103,26 +103,6 @@ def width=(width) @width = width end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_compute_items.rb b/lib/datadog_api_client/v1/models/list_stream_compute_items.rb index a20ce22c3c74..f9a3d635261f 100644 --- a/lib/datadog_api_client/v1/models/list_stream_compute_items.rb +++ b/lib/datadog_api_client/v1/models/list_stream_compute_items.rb @@ -92,26 +92,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb b/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb index b12ba4993139..e8c53460baf1 100644 --- a/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb +++ b/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb @@ -83,26 +83,6 @@ def facet=(facet) @facet = facet end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_query.rb b/lib/datadog_api_client/v1/models/list_stream_query.rb index ca577a2b83f4..7f04ae106853 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -189,26 +189,6 @@ def query_string=(query_string) @query_string = query_string end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb index 66d5a8beb4de..1aaac8a59601 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb @@ -168,26 +168,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_request.rb b/lib/datadog_api_client/v1/models/list_stream_widget_request.rb index d19a0d9dba43..79b1af9475d0 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_request.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_request.rb @@ -125,26 +125,6 @@ def response_format=(response_format) @response_format = response_format end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index c8f2550dbab1..59fb34b54016 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index 1e9229b27e2e..cabd3cb5dedb 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -116,26 +116,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_query_definition.rb b/lib/datadog_api_client/v1/models/log_query_definition.rb index 78723d373e43..775f5cc3b7bb 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -105,26 +105,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb b/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb index 2c3e61fae435..58861e8db57d 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb @@ -101,26 +101,6 @@ def facet=(facet) @facet = facet end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb b/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb index aefbea213a35..829d368a9e24 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb @@ -112,26 +112,6 @@ def order=(order) @order = order end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_query_definition_search.rb b/lib/datadog_api_client/v1/models/log_query_definition_search.rb index 2153510b93fd..f91d5f6f9637 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_search.rb @@ -83,26 +83,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb index 96cf59ec4bc1..f632539acb84 100644 --- a/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb @@ -195,26 +195,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_api_error.rb b/lib/datadog_api_client/v1/models/logs_api_error.rb index a00f848cdbcf..b0d91205e5e6 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_api_error_response.rb b/lib/datadog_api_client/v1/models/logs_api_error_response.rb index 5f788492a16e..35bc8f4ee426 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error_response.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb index 4595b28663fa..3c6dbfb1d5d2 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -171,26 +171,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb index c029abb9e49f..8bd42d871ea0 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -192,26 +192,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_by_retention.rb b/lib/datadog_api_client/v1/models/logs_by_retention.rb index 02e1b6d44969..c6f00809240c 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb b/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb index 725e6aa57f58..ec564fcfe4a9 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb b/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb index 4476a1823261..0cf220b68acb 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb b/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb index 53a8060db3bf..e1b4f7c2ff39 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_category_processor.rb b/lib/datadog_api_client/v1/models/logs_category_processor.rb index 77b4c3d91b38..d6cbcf510dd3 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -156,26 +156,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_category_processor_category.rb b/lib/datadog_api_client/v1/models/logs_category_processor_category.rb index abd1343d272e..588c7fabbee0 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor_category.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor_category.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb b/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb index 5cf3d60e76d6..b65d6215baea 100644 --- a/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb +++ b/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_date_remapper.rb b/lib/datadog_api_client/v1/models/logs_date_remapper.rb index 60438974aff9..cbc8c6583b79 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -141,26 +141,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index 455a6404fcdf..907e7b8f578c 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -101,26 +101,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb index a845c14eaa3c..457a18ad4ec5 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -94,26 +94,6 @@ def sample_rate=(sample_rate) @sample_rate = sample_rate end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index 97fc5f2438ad..1c5723423637 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb b/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb index 214b31bc0000..c4cf4686820f 100644 --- a/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb @@ -144,26 +144,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser.rb b/lib/datadog_api_client/v1/models/logs_grok_parser.rb index e434ecbf3f71..772fd34a820d 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -164,26 +164,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb b/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb index 9ae7c16fce73..909562e5798f 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb @@ -92,26 +92,6 @@ def match_rules=(match_rules) @match_rules = match_rules end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index 00f1bd645270..771bfad818e9 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -178,26 +178,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_index_list_response.rb b/lib/datadog_api_client/v1/models/logs_index_list_response.rb index cf79b55547b8..1e2c554c8d0d 100644 --- a/lib/datadog_api_client/v1/models/logs_index_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_index_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_index_update_request.rb b/lib/datadog_api_client/v1/models/logs_index_update_request.rb index da5bd8a89338..7f3e444a4376 100644 --- a/lib/datadog_api_client/v1/models/logs_index_update_request.rb +++ b/lib/datadog_api_client/v1/models/logs_index_update_request.rb @@ -162,26 +162,6 @@ def filter=(filter) @filter = filter end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_indexes_order.rb b/lib/datadog_api_client/v1/models/logs_indexes_order.rb index 7ee65b175664..8791e6c1aac2 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -87,26 +87,6 @@ def index_names=(index_names) @index_names = index_names end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_list_request.rb b/lib/datadog_api_client/v1/models/logs_list_request.rb index 24a4fcc6e66e..1a07b6b0a7bd 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -144,26 +144,6 @@ def time=(time) @time = time end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_list_request_time.rb b/lib/datadog_api_client/v1/models/logs_list_request_time.rb index 5ca63a0f07f9..8cbf6f37de0c 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request_time.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request_time.rb @@ -113,26 +113,6 @@ def to=(to) @to = to end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_list_response.rb b/lib/datadog_api_client/v1/models/logs_list_response.rb index b26ed61c5336..6e3ef826203e 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -94,26 +94,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb index d7ab1c7eccd8..f62a14f807cd 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -179,26 +179,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_message_remapper.rb b/lib/datadog_api_client/v1/models/logs_message_remapper.rb index f03a0fbcbc2e..1421e05c2976 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -128,26 +128,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index 21b4311aa9c9..8e3fa6cb45a3 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -143,26 +143,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb index 1eb5a9d5cf6f..4e9dc180e04d 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -125,26 +125,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb index 5b46bf9f3539..fc6a7b6b30bd 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -86,26 +86,6 @@ def pipeline_ids=(pipeline_ids) @pipeline_ids = pipeline_ids end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_query_compute.rb b/lib/datadog_api_client/v1/models/logs_query_compute.rb index 5794bebf2bbf..cc0911da5095 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -101,26 +101,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb b/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb index 0462e7773ea6..361399fd7242 100644 --- a/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb b/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb index e785659998cb..6cde6b6ca9ef 100644 --- a/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_service_remapper.rb b/lib/datadog_api_client/v1/models/logs_service_remapper.rb index e6e01309c240..5ff0f0f7afca 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -126,26 +126,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_status_remapper.rb b/lib/datadog_api_client/v1/models/logs_status_remapper.rb index 4b5f17b3a424..3700b2344dc9 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -140,26 +140,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb b/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb index 14111a87b3ac..9fff5156168c 100644 --- a/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb @@ -163,26 +163,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb index b0f7eabac385..0e8cd9c6f0e3 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -117,26 +117,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_url_parser.rb b/lib/datadog_api_client/v1/models/logs_url_parser.rb index 8cd713bbc4b8..2de92996f936 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -160,26 +160,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb b/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb index ac3bfa804553..09cf5cda1dcf 100644 --- a/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb @@ -153,26 +153,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/matching_downtime.rb b/lib/datadog_api_client/v1/models/matching_downtime.rb index bcde14a8a9e8..7b508516282c 100644 --- a/lib/datadog_api_client/v1/models/matching_downtime.rb +++ b/lib/datadog_api_client/v1/models/matching_downtime.rb @@ -122,26 +122,6 @@ def id=(id) @id = id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index f898083b548b..228085ae4d2e 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -119,26 +119,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metric_search_response.rb b/lib/datadog_api_client/v1/models/metric_search_response.rb index 9330396e70e2..e53b4b122435 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metric_search_response_results.rb b/lib/datadog_api_client/v1/models/metric_search_response_results.rb index afc6d3460e75..8282f8c9bd68 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response_results.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response_results.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_list_response.rb b/lib/datadog_api_client/v1/models/metrics_list_response.rb index 88377716ce1e..42fe51b8d063 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 28a86f73dd57..8919d90538fc 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -85,26 +85,6 @@ def series=(series) @series = series end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb index 7d036e0804e1..f3a3506a5fa6 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -212,26 +212,6 @@ def unit=(unit) @unit = unit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_query_response.rb b/lib/datadog_api_client/v1/models/metrics_query_response.rb index 5aec21038ca1..710154709f6b 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -141,26 +141,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_query_unit.rb b/lib/datadog_api_client/v1/models/metrics_query_unit.rb index 29784e3cbf20..f74c15976e84 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 8a107eb46412..9aae689f5587 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -254,26 +254,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb index 1efd9089b4ec..ef855a637b3c 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb @@ -154,26 +154,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb index 84502792ae91..3bdb650eeebb 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb @@ -101,26 +101,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb index bd4f9bbbad1e..887dbcbafdda 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb @@ -83,26 +83,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb index 6a3e77b4a52c..1956d962538e 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb @@ -101,26 +101,6 @@ def facet=(facet) @facet = facet end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb index e08dcd07c1d8..814fd64f36b8 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb @@ -101,26 +101,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response.rb index 1cf7d54c17d6..86a9c13ca169 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb index 240110b309a9..da1195184104 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_result.rb b/lib/datadog_api_client/v1/models/monitor_group_search_result.rb index 4923680a1082..6e608797354a 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_result.rb @@ -129,26 +129,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index 11ce78b2e636..c055602f13cb 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -422,26 +422,6 @@ def min_failure_duration=(min_failure_duration) @min_failure_duration = min_failure_duration end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb index ef2aaec72b1a..576d786e92d2 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb index 545ea649b482..590630bb2577 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb index 182d0b85d583..e8ae7dc950d3 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb index d10cd516eb87..c2f81ad769b4 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb index cc4477875af2..91d903a0ca93 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb @@ -120,26 +120,6 @@ def month_starts=(month_starts) @month_starts = month_starts end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_count_item.rb b/lib/datadog_api_client/v1/models/monitor_search_count_item.rb index dc04012b9802..c1db820ec103 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_count_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_count_item.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_response.rb b/lib/datadog_api_client/v1/models/monitor_search_response.rb index 4b2a302e7455..577b82e234df 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb index b89010b79dec..2b4c9a838be4 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb b/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb index a6bda902a44f..076d01d55b82 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_result.rb b/lib/datadog_api_client/v1/models/monitor_search_result.rb index 634f233ca93f..54a24ff543d2 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -192,26 +192,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb b/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb index e5bf322893b7..4e70cc0b65a4 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index 3a49976ef046..9995a6766173 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_state_group.rb b/lib/datadog_api_client/v1/models/monitor_state_group.rb index 19fb68b80235..425f0263fb32 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -110,26 +110,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb index 53177a3f1654..bcf8974acdf7 100644 --- a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb @@ -211,26 +211,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb b/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb index a921c11fdbed..39b85d74a828 100644 --- a/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index 4e77aa643992..3e35bb17396b 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -122,26 +122,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_update_request.rb b/lib/datadog_api_client/v1/models/monitor_update_request.rb index 6cc10e3a79ab..a87091f621eb 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -214,26 +214,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb index 42297d5ea7dd..70167b001cad 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb @@ -140,26 +140,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb index 486cd8ea0fec..042087169207 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb index f970777ab4a3..6316bf32da4d 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb @@ -73,26 +73,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb index 07e6b58d496d..f8e73a1178c7 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb index f30d4f79fc0a..999b575cdba2 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb @@ -1298,26 +1298,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/note_widget_definition.rb b/lib/datadog_api_client/v1/models/note_widget_definition.rb index 087a443dde75..929cf8adda22 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -175,26 +175,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb index 40334df47d22..671e2cc1a74d 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -112,26 +112,6 @@ def start=(start) @start = start end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index dc432f17d805..6fefbc1d64fe 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -146,26 +146,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb b/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb index 1bbc4c1afe97..8083f4a38b17 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb @@ -99,6 +99,22 @@ def type=(type) end @type = type end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v1/models/notebook_cell_response.rb b/lib/datadog_api_client/v1/models/notebook_cell_response.rb index 244917cdd3fa..13f6285580a9 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -124,26 +124,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb b/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb index fbf2711b1e1e..c47eeaa07c41 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb @@ -124,26 +124,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_create_data.rb b/lib/datadog_api_client/v1/models/notebook_create_data.rb index 4d8bd5736d14..41b8b2afb394 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb index b08e69fff4a3..1bd4aef7a143 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb @@ -151,26 +151,6 @@ def time=(time) @time = time end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_create_request.rb b/lib/datadog_api_client/v1/models/notebook_create_request.rb index dceb8be3eac1..b037a65e950d 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb index dd5887d54832..ae47a4f12249 100644 --- a/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb @@ -120,26 +120,6 @@ def definition=(definition) @definition = definition end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb index a8554a60eec7..0ce50be5b6cf 100644 --- a/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb @@ -118,26 +118,6 @@ def definition=(definition) @definition = definition end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb index ad823bc75c5b..ebe98b5346b4 100644 --- a/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb @@ -109,26 +109,6 @@ def definition=(definition) @definition = definition end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb index c5e43573bfa6..4194dedf12ae 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb @@ -83,26 +83,6 @@ def definition=(definition) @definition = definition end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb index 2c1ddcbdf2c7..7adaee334cbe 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index 94817f2d6fb9..6cd4e790356b 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -91,26 +91,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_relative_time.rb b/lib/datadog_api_client/v1/models/notebook_relative_time.rb index 44afd83a32fa..27a3628f26aa 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -83,26 +83,6 @@ def live_span=(live_span) @live_span = live_span end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index d76057931171..6b1d3390ab42 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_response_data.rb b/lib/datadog_api_client/v1/models/notebook_response_data.rb index a17add410ab3..be46dc6b680f 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb index ab1c4be24bcb..2ce958d2e299 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb @@ -178,26 +178,6 @@ def time=(time) @time = time end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_split_by.rb b/lib/datadog_api_client/v1/models/notebook_split_by.rb index 44ac9e2588bb..afd7ec57f4d0 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -107,26 +107,6 @@ def tags=(tags) @tags = tags end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb index 3b5b1c7f2c19..946154e5d2b1 100644 --- a/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb @@ -118,26 +118,6 @@ def definition=(definition) @definition = definition end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb index a4aa14907148..32aaf45db917 100644 --- a/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb @@ -118,26 +118,6 @@ def definition=(definition) @definition = definition end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_update_data.rb b/lib/datadog_api_client/v1/models/notebook_update_data.rb index 40915fed4afd..91a5ceded955 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb index 4c65566b0db6..65be0fe7fa83 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb @@ -151,26 +151,6 @@ def time=(time) @time = time end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_update_request.rb b/lib/datadog_api_client/v1/models/notebook_update_request.rb index 6de88074f2c4..7445b1a6ed43 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index 90212ff593c2..ba469df64159 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response_data.rb b/lib/datadog_api_client/v1/models/notebooks_response_data.rb index 2f6c38b64320..57860616bb97 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb b/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb index ba1f1b5d78e9..6673ad4c7a37 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb @@ -156,26 +156,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb index 8d84681bf761..5d1ffd86b13f 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response_page.rb b/lib/datadog_api_client/v1/models/notebooks_response_page.rb index 28578129aadb..57dd80abe565 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/org_downgraded_response.rb b/lib/datadog_api_client/v1/models/org_downgraded_response.rb index 53e4e9c70d79..a9edbb35e84a 100644 --- a/lib/datadog_api_client/v1/models/org_downgraded_response.rb +++ b/lib/datadog_api_client/v1/models/org_downgraded_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index f9406983eb7a..2158265ad4e7 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -146,26 +146,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index 7b2d84be48f8..e7c5047f7529 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -68,26 +68,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_create_body.rb b/lib/datadog_api_client/v1/models/organization_create_body.rb index 8615c5daf862..14e1854ca402 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -105,26 +105,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_create_response.rb b/lib/datadog_api_client/v1/models/organization_create_response.rb index 3e6d9e3974d1..d49386ab9e85 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_list_response.rb b/lib/datadog_api_client/v1/models/organization_list_response.rb index 73f1b5bba36c..4fd28faef980 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index 0baf232d2cfb..5dd68d75dc61 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index a18015141113..e4c059fdc59a 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -155,26 +155,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml.rb b/lib/datadog_api_client/v1/models/organization_settings_saml.rb index a6a452eaecae..79f851fea7cc 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb index 5b4b8d8bf820..cbb86eca026e 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb index a032b1d224cb..0dc330a14d6e 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb index d95a73e50072..454be2b14dfc 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index 3e34b2c12490..11b4da194c1c 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -68,26 +68,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/pager_duty_service.rb b/lib/datadog_api_client/v1/models/pager_duty_service.rb index e76fc2e4c8d2..7c892d26051d 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -103,26 +103,6 @@ def service_name=(service_name) @service_name = service_name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/pager_duty_service_key.rb b/lib/datadog_api_client/v1/models/pager_duty_service_key.rb index 8a401df1af0f..459d53c8130b 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service_key.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service_key.rb @@ -83,26 +83,6 @@ def service_key=(service_key) @service_key = service_key end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/pager_duty_service_name.rb b/lib/datadog_api_client/v1/models/pager_duty_service_name.rb index 4d6ae129b535..0d26ad791fb2 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service_name.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service_name.rb @@ -83,26 +83,6 @@ def service_name=(service_name) @service_name = service_name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index 0c6bc907dfc4..a8f1dac82d52 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb b/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb index f084a23b77b3..9d6e5c593f10 100644 --- a/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb +++ b/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb @@ -114,26 +114,6 @@ def values=(values) @values = values end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/powerpack_template_variables.rb b/lib/datadog_api_client/v1/models/powerpack_template_variables.rb index c5bfe6d03acb..1f89fbda5b51 100644 --- a/lib/datadog_api_client/v1/models/powerpack_template_variables.rb +++ b/lib/datadog_api_client/v1/models/powerpack_template_variables.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb b/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb index e88d0c36a3e3..185eacedf176 100644 --- a/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb @@ -148,26 +148,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/process_query_definition.rb b/lib/datadog_api_client/v1/models/process_query_definition.rb index bfc1ffddad6f..04b0fcd5c161 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -123,26 +123,6 @@ def metric=(metric) @metric = metric end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/query_value_widget_definition.rb b/lib/datadog_api_client/v1/models/query_value_widget_definition.rb index 788f56661179..d21013516379 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_definition.rb @@ -205,26 +205,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/query_value_widget_request.rb b/lib/datadog_api_client/v1/models/query_value_widget_request.rb index 3ce0c45ab3f9..000bf9439f24 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_request.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_request.rb @@ -197,26 +197,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb b/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb index 3d5630f422f5..ca2d32b5293b 100644 --- a/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb @@ -167,26 +167,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/response_meta_attributes.rb b/lib/datadog_api_client/v1/models/response_meta_attributes.rb index 93d197cd991e..4a1cc2a65668 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb b/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb index 09871dce86cf..1f409fdae097 100644 --- a/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb @@ -161,26 +161,6 @@ def workflow_id=(workflow_id) @workflow_id = workflow_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb b/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb index 6883510026f1..89358b71fa50 100644 --- a/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb +++ b/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb @@ -103,26 +103,6 @@ def value=(value) @value = value end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatter_plot_request.rb b/lib/datadog_api_client/v1/models/scatter_plot_request.rb index 6238cbde0e06..561534ad0782 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -146,26 +146,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb index a1f0c325bce9..3db116bdc254 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb @@ -179,26 +179,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb index 5b0d32c6ce27..6a40bc5f3043 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb index 194dd3b31aa0..e6a22355b81b 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -87,26 +87,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb index 876e97579e80..c623387e6b84 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -112,26 +112,6 @@ def formula=(formula) @formula = formula end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_service_level_objective.rb b/lib/datadog_api_client/v1/models/search_service_level_objective.rb index cadb1366611d..c24f99caba7c 100644 --- a/lib/datadog_api_client/v1/models/search_service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/search_service_level_objective.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb b/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb index 07553dbe58f9..6050733861b1 100644 --- a/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +++ b/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb @@ -242,26 +242,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb b/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb index 5b5ef7e05cf0..36c7b8456794 100644 --- a/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb +++ b/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb @@ -86,26 +86,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_query.rb b/lib/datadog_api_client/v1/models/search_slo_query.rb index 1a3f82235b0d..ed2c17f44f74 100644 --- a/lib/datadog_api_client/v1/models/search_slo_query.rb +++ b/lib/datadog_api_client/v1/models/search_slo_query.rb @@ -96,26 +96,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response.rb b/lib/datadog_api_client/v1/models/search_slo_response.rb index 8ebef8ee4d21..5be2fb45435a 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data.rb b/lib/datadog_api_client/v1/models/search_slo_response_data.rb index ccac3a1f878b..535515d23813 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb index 5b4795c745bd..74f7227772cf 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb index 7509353eb6e2..b3b00cc5dbdc 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb @@ -144,26 +144,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb index e0f9e2263cc8..293bd5cd3540 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb index e588a5dfe20b..354a3f2dc262 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_links.rb b/lib/datadog_api_client/v1/models/search_slo_response_links.rb index a57d7b02e601..40aade1f95ce 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_links.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_links.rb @@ -110,26 +110,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_meta.rb b/lib/datadog_api_client/v1/models/search_slo_response_meta.rb index 10d1003cdb19..a2ca42997803 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_meta.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb b/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb index 5dfaa826c58f..223d641f57ad 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb @@ -128,26 +128,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_threshold.rb b/lib/datadog_api_client/v1/models/search_slo_threshold.rb index 956e6890b61f..c83aa8b5abbf 100644 --- a/lib/datadog_api_client/v1/models/search_slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/search_slo_threshold.rb @@ -148,26 +148,6 @@ def timeframe=(timeframe) @timeframe = timeframe end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb b/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb index 1df411b874ea..d9c045e6eace 100644 --- a/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb +++ b/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb @@ -102,26 +102,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index ac74a0cb9eb3..d132ce72e910 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -152,26 +152,6 @@ def points=(points) @points = points end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index 41faf53d5df5..2f7f292f2ed2 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -163,26 +163,6 @@ def tags=(tags) @tags = tags end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_level_objective.rb b/lib/datadog_api_client/v1/models/service_level_objective.rb index e741c5e29923..3c55da0b8837 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -297,26 +297,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_level_objective_query.rb b/lib/datadog_api_client/v1/models/service_level_objective_query.rb index 3f86b9844711..973fc8ad6625 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective_query.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective_query.rb @@ -105,26 +105,6 @@ def numerator=(numerator) @numerator = numerator end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_level_objective_request.rb b/lib/datadog_api_client/v1/models/service_level_objective_request.rb index f3956fa964dd..7957eec0b25e 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective_request.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective_request.rb @@ -239,26 +239,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_map_widget_definition.rb b/lib/datadog_api_client/v1/models/service_map_widget_definition.rb index 34769809a8f5..dc23f2fc9bff 100644 --- a/lib/datadog_api_client/v1/models/service_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/service_map_widget_definition.rb @@ -167,26 +167,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb b/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb index b9ff308149e8..a000261bc9a6 100644 --- a/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb @@ -251,26 +251,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard.rb b/lib/datadog_api_client/v1/models/shared_dashboard.rb index c02c0cd2930e..e85e4815ff83 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard.rb @@ -199,26 +199,6 @@ def dashboard_type=(dashboard_type) @dashboard_type = dashboard_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_author.rb b/lib/datadog_api_client/v1/models/shared_dashboard_author.rb index 796081e3c291..c534c9cdee0a 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_author.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_author.rb @@ -82,26 +82,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb index 6269ae27e522..4319fbc00463 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb @@ -92,26 +92,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb index 3aa3b606a7d7..97e1ae84c562 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb index 9da82a3a3ebb..9226c1e1772b 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb @@ -118,26 +118,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb index c1a1e3f932c9..56e240faa0a9 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb index 5c28c587b8dd..117aebc2d5e1 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb b/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb index c89bff78b589..580aea0c6a5d 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb @@ -117,26 +117,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb b/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb index 8bd000a58323..4a6c44110913 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb b/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb index bcb70583ca71..08fce3e1b0e6 100644 --- a/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb +++ b/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb @@ -92,26 +92,6 @@ def assignee=(assignee) @assignee = assignee end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/signal_state_update_request.rb b/lib/datadog_api_client/v1/models/signal_state_update_request.rb index e6c1faa7f3e4..c9388bf8bcc1 100644 --- a/lib/datadog_api_client/v1/models/signal_state_update_request.rb +++ b/lib/datadog_api_client/v1/models/signal_state_update_request.rb @@ -110,26 +110,6 @@ def state=(state) @state = state end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slack_integration_channel.rb b/lib/datadog_api_client/v1/models/slack_integration_channel.rb index ce64e1d0c997..9cf7a971736e 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb b/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb index 13fc7a57e4c0..fa94a849a000 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb index 0ad679a11c2d..26af0be9b3b7 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb @@ -125,26 +125,6 @@ def timeframe=(timeframe) @timeframe = timeframe end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb index acef6a716223..145fff104ade 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb @@ -81,26 +81,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb index 9a134e6c2963..6dfe23717c7f 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb @@ -81,26 +81,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index d02c655042c1..36945cc50621 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_data.rb b/lib/datadog_api_client/v1/models/slo_correction_create_data.rb index ae8aff73e6d2..eece43b94853 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_data.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_data.rb @@ -92,26 +92,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_request.rb b/lib/datadog_api_client/v1/models/slo_correction_create_request.rb index d812b78a3f0e..e75c14a71556 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_request.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb index 932773591e96..a52500cc5b87 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb @@ -169,26 +169,6 @@ def start=(start) @start = start end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_list_response.rb b/lib/datadog_api_client/v1/models/slo_correction_list_response.rb index dd2b4b93a279..1d037925784c 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_list_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_response.rb b/lib/datadog_api_client/v1/models/slo_correction_response.rb index 7025e9f3f1f6..c0ca40db7569 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb index a0760a143c76..93e581cd4c9f 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb @@ -178,26 +178,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb b/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb index 16f4982ef66b..c2e5e33c295b 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_data.rb b/lib/datadog_api_client/v1/models/slo_correction_update_data.rb index 52d626cc512e..e16204d17043 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_data.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_request.rb b/lib/datadog_api_client/v1/models/slo_correction_update_request.rb index e9648698fd90..fc1fc1050ef6 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_request.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb index b1d6d96ed962..8dc4e27442ea 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb @@ -120,26 +120,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_creator.rb b/lib/datadog_api_client/v1/models/slo_creator.rb index 46982e91bbbd..c9df829073b3 100644 --- a/lib/datadog_api_client/v1/models/slo_creator.rb +++ b/lib/datadog_api_client/v1/models/slo_creator.rb @@ -91,26 +91,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_delete_response.rb b/lib/datadog_api_client/v1/models/slo_delete_response.rb index 9506524b462f..96c7bce4b48b 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_formula.rb b/lib/datadog_api_client/v1/models/slo_formula.rb index 2b644a77aeec..6a1d5d7883c1 100644 --- a/lib/datadog_api_client/v1/models/slo_formula.rb +++ b/lib/datadog_api_client/v1/models/slo_formula.rb @@ -83,26 +83,6 @@ def formula=(formula) @formula = formula end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics.rb b/lib/datadog_api_client/v1/models/slo_history_metrics.rb index 35b0c1e3d2e5..f1c7ef2f992c 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -218,26 +218,6 @@ def times=(times) @times = times end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb index b11529750d34..d38533cc5f50 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb @@ -135,26 +135,6 @@ def values=(values) @values = values end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb index 3dd5cd9f9ce0..671630d18e37 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb @@ -122,26 +122,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb index c081d1b5cbbe..9930309d17b8 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb @@ -119,26 +119,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_monitor.rb b/lib/datadog_api_client/v1/models/slo_history_monitor.rb index 502b96038c0b..4f567bdcaf65 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -184,26 +184,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_response.rb b/lib/datadog_api_client/v1/models/slo_history_response.rb index 96dc823dd7ff..b21078bbf030 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -84,26 +84,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_response_data.rb b/lib/datadog_api_client/v1/models/slo_history_response_data.rb index ea60d8002d4a..f0b592931531 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_data.rb @@ -163,26 +163,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_response_error.rb b/lib/datadog_api_client/v1/models/slo_history_response_error.rb index 5478ed3b0e7d..347106fbd0ea 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_error.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_error.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb b/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb index a51812d9bc05..704899d345d2 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb @@ -103,26 +103,6 @@ def error_type=(error_type) @error_type = error_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_sli_data.rb b/lib/datadog_api_client/v1/models/slo_history_sli_data.rb index 552f4a92c8af..b351c583d7f5 100644 --- a/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +++ b/lib/datadog_api_client/v1/models/slo_history_sli_data.rb @@ -186,26 +186,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_response.rb b/lib/datadog_api_client/v1/models/slo_list_response.rb index 7510937525a8..b524135ee49a 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -88,26 +88,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb b/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb index 9f6559c3a010..e3eb727eed43 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb b/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb index 8cd94a535172..1936e8bd01a6 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb b/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb index a3d5da46b603..ac849e8ddf0f 100644 --- a/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb @@ -140,26 +140,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_widget_query.rb b/lib/datadog_api_client/v1/models/slo_list_widget_query.rb index a991c4a2ad89..f465b2f02135 100644 --- a/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +++ b/lib/datadog_api_client/v1/models/slo_list_widget_query.rb @@ -118,26 +118,6 @@ def query_string=(query_string) @query_string = query_string end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_widget_request.rb b/lib/datadog_api_client/v1/models/slo_list_widget_request.rb index d4a0fd670953..cc94f759fc80 100644 --- a/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +++ b/lib/datadog_api_client/v1/models/slo_list_widget_request.rb @@ -103,26 +103,6 @@ def request_type=(request_type) @request_type = request_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_overall_statuses.rb b/lib/datadog_api_client/v1/models/slo_overall_statuses.rb index bb85be58c3d6..8b1a08fed973 100644 --- a/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +++ b/lib/datadog_api_client/v1/models/slo_overall_statuses.rb @@ -151,26 +151,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb b/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb index 63444409c190..957e7251efe6 100644 --- a/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb +++ b/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index 543d97f60194..854197b53562 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_response_data.rb b/lib/datadog_api_client/v1/models/slo_response_data.rb index 122c2d8374e6..66eab0d16e03 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -268,26 +268,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_status.rb b/lib/datadog_api_client/v1/models/slo_status.rb index 5115c94156e6..a3342d1df4c6 100644 --- a/lib/datadog_api_client/v1/models/slo_status.rb +++ b/lib/datadog_api_client/v1/models/slo_status.rb @@ -132,26 +132,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index 76d43da00632..a73a31d1148e 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -140,26 +140,6 @@ def timeframe=(timeframe) @timeframe = timeframe end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb b/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb index 81113ee13c77..98b06fa46cf3 100644 --- a/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +++ b/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb @@ -135,26 +135,6 @@ def threshold=(threshold) @threshold = threshold end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_time_slice_query.rb b/lib/datadog_api_client/v1/models/slo_time_slice_query.rb index bddd2640fe24..4bba5be0eb3c 100644 --- a/lib/datadog_api_client/v1/models/slo_time_slice_query.rb +++ b/lib/datadog_api_client/v1/models/slo_time_slice_query.rb @@ -115,26 +115,6 @@ def queries=(queries) @queries = queries end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb b/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb index 1355b07874e4..ae493ba8d6fa 100644 --- a/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +++ b/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb @@ -79,6 +79,22 @@ def time_slice=(time_slice) end @time_slice = time_slice end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v1/models/slo_widget_definition.rb b/lib/datadog_api_client/v1/models/slo_widget_definition.rb index f68ff8da4c2e..256dc5c91789 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -186,26 +186,6 @@ def view_type=(view_type) @view_type = view_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_config.rb b/lib/datadog_api_client/v1/models/split_config.rb index 0faaab8b98bc..f72ad0454636 100644 --- a/lib/datadog_api_client/v1/models/split_config.rb +++ b/lib/datadog_api_client/v1/models/split_config.rb @@ -163,26 +163,6 @@ def static_splits=(static_splits) @static_splits = static_splits end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_config_sort_compute.rb b/lib/datadog_api_client/v1/models/split_config_sort_compute.rb index c493e52c01bd..ebd4e4ffb030 100644 --- a/lib/datadog_api_client/v1/models/split_config_sort_compute.rb +++ b/lib/datadog_api_client/v1/models/split_config_sort_compute.rb @@ -103,26 +103,6 @@ def metric=(metric) @metric = metric end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_dimension.rb b/lib/datadog_api_client/v1/models/split_dimension.rb index 61a90b6ab3ea..0baae2d9e080 100644 --- a/lib/datadog_api_client/v1/models/split_dimension.rb +++ b/lib/datadog_api_client/v1/models/split_dimension.rb @@ -83,26 +83,6 @@ def one_graph_per=(one_graph_per) @one_graph_per = one_graph_per end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb b/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb index 6a1ed28c0ed9..44f4a1258868 100644 --- a/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb @@ -170,26 +170,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_sort.rb b/lib/datadog_api_client/v1/models/split_sort.rb index 0e5887a516b7..035d3f406ddb 100644 --- a/lib/datadog_api_client/v1/models/split_sort.rb +++ b/lib/datadog_api_client/v1/models/split_sort.rb @@ -92,26 +92,6 @@ def order=(order) @order = order end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_vector_entry_item.rb b/lib/datadog_api_client/v1/models/split_vector_entry_item.rb index 58e01ddde2c3..33295d56760a 100644 --- a/lib/datadog_api_client/v1/models/split_vector_entry_item.rb +++ b/lib/datadog_api_client/v1/models/split_vector_entry_item.rb @@ -109,26 +109,6 @@ def tag_values=(tag_values) @tag_values = tag_values end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/successful_signal_update_response.rb b/lib/datadog_api_client/v1/models/successful_signal_update_response.rb index 62092291bf93..576d478c12e6 100644 --- a/lib/datadog_api_client/v1/models/successful_signal_update_response.rb +++ b/lib/datadog_api_client/v1/models/successful_signal_update_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb index c852479d5956..b73dafd0b067 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -174,26 +174,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb index cbe859c35fd0..73222800e148 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb index 8111b506b911..cfc1cdf82412 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb @@ -83,26 +83,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb index a30a1170fa4b..17388a6f13b0 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -186,26 +186,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test.rb b/lib/datadog_api_client/v1/models/synthetics_api_test.rb index df1e78421023..b24c91f882ff 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -234,26 +234,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb index 6f08c5c20930..48ea1f7a4ffa 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb @@ -107,26 +107,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb index 0982652e0d99..5307966b599a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb @@ -138,26 +138,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb index 1872dc2d4d76..aeab7be2c9a9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb index 17e74517e95d..4cef15b306a5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb @@ -122,26 +122,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb index 30d8a36cab36..88332da68a36 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb @@ -83,26 +83,6 @@ def config=(config) @config = config end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb index e9f07e890958..9ca6273bb5d6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb @@ -104,26 +104,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb index 4e0c7b38b619..c38ac7e996b0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb index fa982af91532..d444d4f43831 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb @@ -184,26 +184,6 @@ def subtype=(subtype) @subtype = subtype end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb index 12fbaf017163..9c6556dfd43d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb @@ -131,26 +131,6 @@ def value=(value) @value = value end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb index 2b0fca21d455..82a27c40db48 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb index db22cd710656..a3d9d9b971e0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb index daac817ae801..166155eb7383 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb index a7e05af987e0..c313cf00e674 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb index f94455b39a79..3ae1521bf294 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb index 72a7c774cab8..d9ac95add3be 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -141,26 +141,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb index 7dd7fff4ba1d..157e624580af 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb index 5855865fc4e4..406fdf1475cd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb index 1b01b2349513..7d0171ac2110 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb @@ -123,26 +123,6 @@ def username=(username) @username = username end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb index 4d5440628c08..e458cfea67c9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb @@ -119,26 +119,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb index c21ca679ea0b..c15f96c3455b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb @@ -190,26 +190,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb index 0ac31038dacb..85645775655f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb @@ -208,26 +208,6 @@ def username=(username) @username = username end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb index 436bdcb50ee2..bb6c2f3cb6fa 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb @@ -150,26 +150,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb index 2681cb027ca3..08d3217b033a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb @@ -112,26 +112,6 @@ def username=(username) @username = username end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb index 648712d095eb..2bbcb85cd0f5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb index 37cca7178799..ecbe487d4e98 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb index 87c110dcbe11..eec87f687f4c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -146,26 +146,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb index 88c31cd7d319..f1f2bea5d2e2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -132,26 +132,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb index 801bed09dd7f..87a94a4c873f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -235,26 +235,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb index fd59d269510d..3e75ab027b2d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb @@ -136,26 +136,6 @@ def request=(request) @request = request end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb index 1b941f077ae1..5a98b3dbfb56 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb @@ -167,26 +167,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb index 6f0dcf3ac49d..80f0fa214376 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb index a8d03fc7ede7..e82fd7f0da41 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb @@ -122,26 +122,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb index 4e6d662a3ba9..53d618da40f6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb @@ -83,26 +83,6 @@ def config=(config) @config = config end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb index b3fc5a63a8bd..eaeb09bfeeb1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb @@ -104,26 +104,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb index 2d83e02c04ca..5e7e46673744 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb index 3b827b789d90..61157b96d189 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb @@ -111,26 +111,6 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb index e8653f1a5cc7..f87ada94d64a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -140,26 +140,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb index dc328ea6f048..a10c384ab39d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb index f85c53267947..03e77108dad7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb index 063f52d8634a..37faf3bf8d62 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb index fadb70de3feb..44e368d771b4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb index 042c8411f5ab..3730ac1b8ca7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb index 445a639d6155..4d0a22ca939a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -204,26 +204,6 @@ def public_id=(public_id) @public_id = public_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb b/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb index 74cf519d7fb8..0069dee6fbb7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb index d5750f961425..9ba7a38d4987 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -139,26 +139,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb b/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb index de6e4c14eaab..a01b96c6fc1f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb +++ b/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb index 1f6048416b0e..190e2cb899b4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb +++ b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb index ae480c6978d4..8d5d4461e0e7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb @@ -68,26 +68,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb index f5addad320c3..1ca022a0e372 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 83b6598e78ed..9faf636c28e6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -152,26 +152,6 @@ def width=(width) @width = width end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb b/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb index a2b2ad685f21..b8f6b176d412 100644 --- a/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb b/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb index 6fef6a63b7c9..54a5725f1d14 100644 --- a/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb index 84f6281ab5cd..f04c0246041d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -199,26 +199,6 @@ def value=(value) @value = value end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb index b252f42df586..f115daaf39d1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb index 853599eaac12..4d92643a7135 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb index 1342ca59bd8e..2259d7101265 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb @@ -110,26 +110,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb index 55b914924c68..9624c7d1033a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb @@ -188,26 +188,6 @@ def tags=(tags) @tags = tags end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb index 47bb8c2e8643..b1270e3e03b5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb @@ -111,26 +111,6 @@ def refresh_interval=(refresh_interval) @refresh_interval = refresh_interval end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb index 0c4025d31dda..2ad2be8cf552 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb @@ -84,26 +84,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb b/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb index cfea756c4d6a..5bb30ce6f18e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb index 966a58de43ac..41baf950e8d2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index a02dc90b9980..26597398bf9e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index 67b060e1ef87..80f6de7a583e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb index 84e5ef5bc575..b55069655d33 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb b/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb index 58833b296721..dd5a4cf46d0c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb b/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb index bd05ebc8c01a..62eaee46b381 100644 --- a/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb +++ b/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location.rb b/lib/datadog_api_client/v1/models/synthetics_private_location.rb index 724c4aaa3a67..e9ae12dca5ee 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -152,26 +152,6 @@ def tags=(tags) @tags = tags end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb index c6811fdb4823..f566b051b529 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb index c5125ac84315..76efe0b56f19 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb index d4b2e11707b1..8f049c00c6e5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb index df43dbc533a9..c3eda7cb9950 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb index a1313ab2883e..27536340ef99 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb index 407f39158334..9c1276d07e16 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb index 30952ace83ac..2ea09c5b2bd2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -166,26 +166,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb index e76f898f8ebb..8bd2daafb553 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb @@ -110,26 +110,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb index dacc8d4241e9..20ed726fb497 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb @@ -119,26 +119,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 7cd2f3a28b66..57aa04a5f6e8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -119,26 +119,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb index 6a6e97abe82c..19ccd4ccb222 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -218,26 +218,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb b/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb index 210a3d048d80..c0e5ad8ee71a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb index 4fd4d6b43235..09766b7a482d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_test_config.rb index c2b44add4c30..119fad80efdb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -98,26 +98,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details.rb b/lib/datadog_api_client/v1/models/synthetics_test_details.rb index 7108560181ba..8854d5958b4a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -181,26 +181,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options.rb index a1d65efea0c8..3a80d85953c6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -326,26 +326,6 @@ def tick_every=(tick_every) @tick_every = tick_every end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb index 1a1e34bb9625..ea4aa5d467ab 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb @@ -85,26 +85,6 @@ def renotify_interval=(renotify_interval) @renotify_interval = renotify_interval end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb index e40bb3490412..4a23301bfe88 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb index ae829098db7a..5c00179dce5c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb index 40c2dd589300..eb0f76cf4877 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb @@ -105,26 +105,6 @@ def day=(day) @day = day end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request.rb b/lib/datadog_api_client/v1/models/synthetics_test_request.rb index ba1fe839002d..262b6d18a96f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -369,26 +369,6 @@ def number_of_packets=(number_of_packets) @number_of_packets = number_of_packets end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb index 92ed779f39ee..3ade53a393f4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb @@ -176,26 +176,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb index a40d4ccaab6c..d7e31c79a740 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb index 0eb50fe0dae1..6d9145807d9d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb index f59219f6352f..175faca55361 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb @@ -92,26 +92,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index 137fa54ddfbe..ade02785d96a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -138,26 +138,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb index 451e0e20937d..005485e17229 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -85,26 +85,6 @@ def tests=(tests) @tests = tests end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb index 624493497b87..a2985a7d4790 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb index 360d1b2be100..e94a12f0ef34 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb index eded5bc1cb11..7fb11b05daa3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb @@ -106,26 +106,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb index 679c21b12569..6214c85b6510 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -92,26 +92,6 @@ def public_id=(public_id) @public_id = public_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb b/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb index 82e88f7f718b..5eb62bf93772 100644 --- a/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb +++ b/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb index f31c15202ab6..b82e473801ee 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -92,26 +92,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/table_widget_definition.rb b/lib/datadog_api_client/v1/models/table_widget_definition.rb index c493d600d690..f11519329af7 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -161,26 +161,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/table_widget_request.rb b/lib/datadog_api_client/v1/models/table_widget_request.rb index fea7f99bc81d..fe653e157070 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -244,26 +244,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/tag_to_hosts.rb b/lib/datadog_api_client/v1/models/tag_to_hosts.rb index 96ca601a1d1a..57a697d2d36f 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/timeseries_background.rb b/lib/datadog_api_client/v1/models/timeseries_background.rb index 8f8fa5ced516..53a5a62aa178 100644 --- a/lib/datadog_api_client/v1/models/timeseries_background.rb +++ b/lib/datadog_api_client/v1/models/timeseries_background.rb @@ -92,26 +92,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb index d67d53ef039b..ba80539c8e86 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -234,26 +234,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb b/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb index 4a974193a69a..73efe49b6d3e 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb @@ -92,26 +92,6 @@ def expression=(expression) @expression = expression end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb index b862e649abe4..0d9a53ec323d 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -215,26 +215,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb index 98dac3ba44a6..567c6e0a4a0d 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -161,26 +161,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_flat.rb b/lib/datadog_api_client/v1/models/toplist_widget_flat.rb index 83405173c73f..3441e22f31bd 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_flat.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_flat.rb @@ -83,26 +83,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_request.rb b/lib/datadog_api_client/v1/models/toplist_widget_request.rb index 6f411d8ffb9a..932d3babf782 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -224,26 +224,6 @@ def conditional_formats=(conditional_formats) @conditional_formats = conditional_formats end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb b/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb index 8699d2dd301c..7bb46afcb9fa 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_style.rb b/lib/datadog_api_client/v1/models/toplist_widget_style.rb index 4a663ede364d..eff6f71230a0 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_style.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_style.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb b/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb index 7a39c3178a74..28956e79f65e 100644 --- a/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb @@ -147,26 +147,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/topology_query.rb b/lib/datadog_api_client/v1/models/topology_query.rb index 072d06430be3..9f249f94c4a5 100644 --- a/lib/datadog_api_client/v1/models/topology_query.rb +++ b/lib/datadog_api_client/v1/models/topology_query.rb @@ -103,26 +103,6 @@ def filters=(filters) @filters = filters end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/topology_request.rb b/lib/datadog_api_client/v1/models/topology_request.rb index f824052b5a3b..930630519b44 100644 --- a/lib/datadog_api_client/v1/models/topology_request.rb +++ b/lib/datadog_api_client/v1/models/topology_request.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb index 6dadea8d4876..52523beea8e9 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb @@ -169,26 +169,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_request.rb b/lib/datadog_api_client/v1/models/tree_map_widget_request.rb index 25d0fb2cc609..01e84ecd0dd8 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_request.rb @@ -96,26 +96,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb index d5e4be33fe4a..eb505c98d313 100644 --- a/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb b/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb index 1ddacae79e03..1fe37d6f2821 100644 --- a/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb index 6b0d3db0c54e..25373062293a 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb index 43c22fa76288..008c22fe7430 100644 --- a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb b/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb index 50bd0cb63e0f..d9a2a48017a3 100644 --- a/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb index 6208358fd890..88533fee165e 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb @@ -119,26 +119,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb index a28701c53609..b199752b7f1f 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb @@ -155,26 +155,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb index 158cf04c324b..ef4d38c556cd 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb @@ -857,26 +857,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb index bfdf460a870c..b4264f73e0b1 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb b/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb index ccd798bdc785..88542f3083aa 100644 --- a/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb @@ -131,26 +131,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb b/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb index ff4ada2019cf..892c0a50e30c 100644 --- a/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb +++ b/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb index 2bbc8b2beb46..c9e77bd2428e 100644 --- a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb @@ -160,26 +160,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb index 7fd40df51f9b..b4949f0a7b29 100644 --- a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb index a6cb2968d66e..2d5f5ee1c224 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb @@ -103,26 +103,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb index 822d6fe4a2a9..87e5c216450e 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb index dc78c00596ec..2311fd31f1a1 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb index f03340b54b24..6167b68aaf07 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb index 702ea93a10fc..045ba885a1c4 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_cws_hour.rb b/lib/datadog_api_client/v1/models/usage_cws_hour.rb index 42712db4254d..5ab244343972 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -110,26 +110,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_cws_response.rb b/lib/datadog_api_client/v1/models/usage_cws_response.rb index 819b17597967..b26576b56d3e 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb index 73e0796a65c0..3735a05f8a92 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -110,26 +110,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_dbm_response.rb b/lib/datadog_api_client/v1/models/usage_dbm_response.rb index 058bf9df5505..a8e4de6571c2 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb index af113eba43be..a45e6110f8df 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -130,26 +130,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_fargate_response.rb b/lib/datadog_api_client/v1/models/usage_fargate_response.rb index a8e5d232b25e..9814fcdc1dca 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_host_hour.rb b/lib/datadog_api_client/v1/models/usage_host_hour.rb index cf57844cacd0..7ccdddc49e15 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -240,26 +240,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_hosts_response.rb b/lib/datadog_api_client/v1/models/usage_hosts_response.rb index ee9f79ea750a..a7e02079a442 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb b/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb index eb833ecd507c..4eb6aa3c357f 100644 --- a/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_incident_management_response.rb b/lib/datadog_api_client/v1/models/usage_incident_management_response.rb index 395e55190eb5..5759d3794d2a 100644 --- a/lib/datadog_api_client/v1/models/usage_incident_management_response.rb +++ b/lib/datadog_api_client/v1/models/usage_incident_management_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb b/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb index 51413bacce58..2446a3fb7546 100644 --- a/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb b/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb index 09e8baa6f1f9..28578aa2d5c5 100644 --- a/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb +++ b/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb b/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb index ee464f540cce..3b523c5110ad 100644 --- a/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb b/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb index 9c40fca72aae..5e8870c16f68 100644 --- a/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb +++ b/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_iot_hour.rb b/lib/datadog_api_client/v1/models/usage_iot_hour.rb index 082ccf947208..5c3f9da385aa 100644 --- a/lib/datadog_api_client/v1/models/usage_iot_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_iot_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_iot_response.rb b/lib/datadog_api_client/v1/models/usage_iot_response.rb index 7b1e5c5ac07d..c4039c1bb26a 100644 --- a/lib/datadog_api_client/v1/models/usage_iot_response.rb +++ b/lib/datadog_api_client/v1/models/usage_iot_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb index f034b9c37b46..0c47329b4bdd 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -111,26 +111,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_lambda_response.rb b/lib/datadog_api_client/v1/models/usage_lambda_response.rb index 32329494e4e2..99e468f921c3 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -68,26 +68,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb index 61d28db299a5..9a4fbefef330 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb @@ -119,26 +119,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb b/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb index 64ff8d47b60d..deeca7762c08 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb index 76bf4d7da495..9fcd462546ee 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb @@ -121,26 +121,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb b/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb index 116488524c89..3d9ac9cc0532 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_hour.rb index 82c703d6b294..24a662c1b784 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -170,26 +170,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_response.rb b/lib/datadog_api_client/v1/models/usage_logs_response.rb index f5a6a91f84e1..6f7f0962425f 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb b/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb index c6067cf69d0a..98232b9ada9e 100644 --- a/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_network_flows_response.rb b/lib/datadog_api_client/v1/models/usage_network_flows_response.rb index 523d7b5f6c43..48eb9df78d28 100644 --- a/lib/datadog_api_client/v1/models/usage_network_flows_response.rb +++ b/lib/datadog_api_client/v1/models/usage_network_flows_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb b/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb index fc10291da683..e7f3f8b9c6fe 100644 --- a/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb b/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb index d3c5f27441b4..b694db42d34a 100644 --- a/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb b/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb index 3892f6cb8054..97301833ab61 100644 --- a/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_online_archive_response.rb b/lib/datadog_api_client/v1/models/usage_online_archive_response.rb index 13849aad4887..abe23b337fd3 100644 --- a/lib/datadog_api_client/v1/models/usage_online_archive_response.rb +++ b/lib/datadog_api_client/v1/models/usage_online_archive_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb index 14a9e38608f7..39df4a8de733 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -120,26 +120,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_profiling_response.rb b/lib/datadog_api_client/v1/models/usage_profiling_response.rb index 41a454463044..7b1145eb3783 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb b/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb index 7601beae9520..71123e0e7bb3 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb @@ -149,26 +149,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb b/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb index 1823e9040d73..9542d99e84a1 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb index 52a2ad5db7ae..79cbfbce53f9 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb @@ -111,26 +111,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_response.rb b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb index 190cbbd6d21c..08e11dc85155 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_units_response.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_sds_hour.rb b/lib/datadog_api_client/v1/models/usage_sds_hour.rb index 12dd5722ba0b..876fba6019bd 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -140,26 +140,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_sds_response.rb b/lib/datadog_api_client/v1/models/usage_sds_response.rb index d5596d3c6b27..8c6bc0a1e47a 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb index ad4b67e25e7a..82a6482c90af 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_snmp_response.rb b/lib/datadog_api_client/v1/models/usage_snmp_response.rb index f9d84164b141..bf00c087f83a 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb index 1964beb8a470..dbec9cd1ec5c 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb @@ -112,26 +112,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb index be4cced3feef..e8ae1aebfca7 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb index 0ba55a7841d0..e230fedd3190 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb index 3a3bc6c9af57..c854f813ffa0 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb index 4dc4c183774a..52e13dedcb24 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_summary_date.rb b/lib/datadog_api_client/v1/models/usage_summary_date.rb index a1682ebfb26c..4c9f0359dfa2 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -1246,26 +1246,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb index b8e4cf69bc4d..f5c8df536c97 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb @@ -1298,26 +1298,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_summary_response.rb b/lib/datadog_api_client/v1/models/usage_summary_response.rb index 009f0b040aed..f2296066e8f8 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -1345,26 +1345,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb index 4cc56ec4f2d8..7f08da65465e 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb index b923017a8f0d..9b301047f88d 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb index e87b7e29be25..45294a4c5250 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb @@ -100,26 +100,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb index 3dbbb0990e18..b97f3d831a5f 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb index 9ba1ce8a4deb..9ff9e1191a53 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb index 4f03be9960e0..aa79cb0a57a2 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb index f525cedc4638..92919494bafd 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -110,26 +110,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb index f5fec66df5a0..1bf16e40a302 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb index 1b36c914c0be..77d8a306ff4c 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb index ee8196d354c2..f6db9c7c3a95 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb index dfdd048270f5..7680d834c11e 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb index da4c672f359e..a7e71bc954e1 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index e8c4860f5403..d07d9da00faa 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -127,26 +127,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/user_disable_response.rb b/lib/datadog_api_client/v1/models/user_disable_response.rb index 0ef61674a62a..134693258d9e 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/user_list_response.rb b/lib/datadog_api_client/v1/models/user_list_response.rb index 0da850e2d410..37d793de356b 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index 1820bb67c90a..eeff2f049913 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 67fd1ddbf140..a9153b248a34 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -145,26 +145,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb index 6b91b0a3c3a9..0f31ff17410a 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb @@ -124,26 +124,6 @@ def value=(value) @value = value end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb index 324838ddec6d..298667c8a16c 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb @@ -113,26 +113,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb index 17d430964f03..cf6164f7c156 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb @@ -86,26 +86,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb b/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb index 89063c6e3d86..607394d2d141 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb @@ -117,26 +117,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 7482f8a35fde..5919344a2147 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -106,26 +106,6 @@ def definition=(definition) @definition = definition end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index 62aaa5b27990..541f48680f13 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_conditional_format.rb b/lib/datadog_api_client/v1/models/widget_conditional_format.rb index 872ebc6bd212..08dd11f18d8c 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -177,26 +177,6 @@ def value=(value) @value = value end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_custom_link.rb b/lib/datadog_api_client/v1/models/widget_custom_link.rb index 4b7689cd1025..acc7d18b3350 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index 2d443905b0a9..77251e97a5e1 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -95,26 +95,6 @@ def q=(q) @q = q end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_field_sort.rb b/lib/datadog_api_client/v1/models/widget_field_sort.rb index f346749e587b..e9c537b5ec14 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -103,26 +103,6 @@ def order=(order) @order = order end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 65a165b09525..30a8ec9e7dfc 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -130,26 +130,6 @@ def formula=(formula) @formula = formula end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_formula_limit.rb b/lib/datadog_api_client/v1/models/widget_formula_limit.rb index 93d6254eb958..860a9dd5192b 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_formula_sort.rb b/lib/datadog_api_client/v1/models/widget_formula_sort.rb index 0df6dc3e9e67..d8dc5d9bd353 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_sort.rb @@ -127,26 +127,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_formula_style.rb b/lib/datadog_api_client/v1/models/widget_formula_style.rb index fc2e33d3b5c4..029fb307e8f1 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_style.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_style.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_group_sort.rb b/lib/datadog_api_client/v1/models/widget_group_sort.rb index a07d5996ed10..da71b0880e05 100644 --- a/lib/datadog_api_client/v1/models/widget_group_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_group_sort.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index a5709449e2ba..24a32c2ef241 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -169,26 +169,6 @@ def y=(y) @y = y end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index a9744f4a1e51..da59658db640 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -114,26 +114,6 @@ def value=(value) @value = value end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_request_style.rb b/lib/datadog_api_client/v1/models/widget_request_style.rb index e2ef48ff5378..0414b505a901 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_sort_by.rb b/lib/datadog_api_client/v1/models/widget_sort_by.rb index 19cc7236f892..13d3147cde01 100644 --- a/lib/datadog_api_client/v1/models/widget_sort_by.rb +++ b/lib/datadog_api_client/v1/models/widget_sort_by.rb @@ -94,26 +94,6 @@ def count=(count) @count = count end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index 1d2a2ecb334a..5c4c4a8d2826 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index c8a0524315c5..f8a978e3aa49 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/model_base.rb b/lib/datadog_api_client/v2/model_base.rb index 35a96e04229a..25ab047ac8b7 100644 --- a/lib/datadog_api_client/v2/model_base.rb +++ b/lib/datadog_api_client/v2/model_base.rb @@ -59,7 +59,7 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) unless self.respond_to?(:additional_properties) unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } - return nil + raise SchemaMismatchError, "Additional properties are not allowed" end end self.class.openapi_types.each_pair do |key, type| @@ -161,7 +161,7 @@ def to_body to_hash end - # Returns the object in the form of hash + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private def to_hash @@ -175,6 +175,9 @@ def to_hash hash[param] = _to_hash(value) end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end hash end diff --git a/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb b/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb index 6103e109359f..c67fa0da59e3 100644 --- a/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb +++ b/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb b/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb index 1d0dc4e07715..5e2a4244e887 100644 --- a/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb +++ b/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb b/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb index 0ca80517333d..dc11c940e2c2 100644 --- a/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb +++ b/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_error_response.rb b/lib/datadog_api_client/v2/models/api_error_response.rb index 3e992f7bc778..c343a5aeda1f 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -85,26 +85,6 @@ def errors=(errors) @errors = errors end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_create_attributes.rb b/lib/datadog_api_client/v2/models/api_key_create_attributes.rb index f0b87999efb6..021864b66ef3 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_attributes.rb @@ -101,26 +101,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_create_data.rb b/lib/datadog_api_client/v2/models/api_key_create_data.rb index d3adfe0ddb03..1dbee098282c 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_data.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_create_request.rb b/lib/datadog_api_client/v2/models/api_key_create_request.rb index e3f3818214f8..1c73c0669285 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_request.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_relationships.rb b/lib/datadog_api_client/v2/models/api_key_relationships.rb index 25c7ae3d6f11..3160d119d42d 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -82,26 +82,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_response.rb b/lib/datadog_api_client/v2/models/api_key_response.rb index 776572151d2b..ee16dc008d33 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_update_attributes.rb b/lib/datadog_api_client/v2/models/api_key_update_attributes.rb index 880f5f7a2244..f06bb2a1a6f4 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_attributes.rb @@ -101,26 +101,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_update_data.rb b/lib/datadog_api_client/v2/models/api_key_update_data.rb index ccecc7ab8d6c..28cd796b23f3 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_data.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_update_request.rb b/lib/datadog_api_client/v2/models/api_key_update_request.rb index 4d911e94bbd3..609103132bda 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_request.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_keys_response.rb b/lib/datadog_api_client/v2/models/api_keys_response.rb index 7a8873e84508..05a075301168 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -87,26 +87,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_keys_response_meta.rb b/lib/datadog_api_client/v2/models/api_keys_response_meta.rb index 122302fad067..d7d861bc3b71 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response_meta.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response_meta.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb b/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb index 35153d3720d8..25c1c96aeac3 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_create_attributes.rb b/lib/datadog_api_client/v2/models/application_key_create_attributes.rb index 7e27a64e0c35..42670b2561a0 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_attributes.rb @@ -102,26 +102,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_create_data.rb b/lib/datadog_api_client/v2/models/application_key_create_data.rb index cf551863210e..be370d799308 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_data.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_create_request.rb b/lib/datadog_api_client/v2/models/application_key_create_request.rb index 4c7e587e324c..ca0e5f4cc77c 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_request.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_relationships.rb b/lib/datadog_api_client/v2/models/application_key_relationships.rb index b893cfe8ae05..62e212afa4dc 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_response.rb b/lib/datadog_api_client/v2/models/application_key_response.rb index 656ecf30b4da..5afe41d48ad2 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_response_meta.rb b/lib/datadog_api_client/v2/models/application_key_response_meta.rb index e284e28a89c3..cf345323c108 100644 --- a/lib/datadog_api_client/v2/models/application_key_response_meta.rb +++ b/lib/datadog_api_client/v2/models/application_key_response_meta.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb b/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb index 3793ce37b280..8b1d07c3303f 100644 --- a/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_update_attributes.rb b/lib/datadog_api_client/v2/models/application_key_update_attributes.rb index 70eb50d9c5fc..70785cf97ca2 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_attributes.rb @@ -84,26 +84,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_update_data.rb b/lib/datadog_api_client/v2/models/application_key_update_data.rb index f50681a1db7d..de539bf2873d 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_data.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_update_request.rb b/lib/datadog_api_client/v2/models/application_key_update_request.rb index 275889fc9ac2..19854b5f766c 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_request.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_event.rb b/lib/datadog_api_client/v2/models/audit_logs_event.rb index e47e0e3900ed..39b80bec866a 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_event.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_event.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb b/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb index 776c292fc25d..8b31f18004c0 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb @@ -105,26 +105,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_events_response.rb b/lib/datadog_api_client/v2/models/audit_logs_events_response.rb index 260e3a891690..29318590ff6e 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_events_response.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_events_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb b/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb index ebce981ef271..afc96335d785 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_query_options.rb b/lib/datadog_api_client/v2/models/audit_logs_query_options.rb index 232ef4cb645b..31aaf109b341 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_query_options.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb b/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb index c576172eb1e3..f6b904fb540d 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb @@ -92,26 +92,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_response_links.rb b/lib/datadog_api_client/v2/models/audit_logs_response_links.rb index 0f88b3c2935c..e0a4e1374ed4 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_response_links.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_response_links.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb b/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb index 6274790d70e9..60f38b56fb61 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb @@ -104,26 +104,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_response_page.rb b/lib/datadog_api_client/v2/models/audit_logs_response_page.rb index 52f0ca6c594d..02766a7a3c46 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_response_page.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_response_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb b/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb index 4fc42c60c16b..7462f2dec46e 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb @@ -93,26 +93,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_warning.rb b/lib/datadog_api_client/v2/models/audit_logs_warning.rb index ec389f8ad4d7..bf10880c881e 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_warning.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_warning.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping.rb b/lib/datadog_api_client/v2/models/authn_mapping.rb index b84acc35c546..70298db70897 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb index d6da093c4ce0..485e89a735ab 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb index 7c0d98367471..e18a527d6538 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb b/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb index 70ae4fff6442..629ad7bc4bf2 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb b/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb index dbc1b0328f80..0e4353ca8409 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb index 12742c23a77d..59bb464cf828 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb @@ -83,26 +83,6 @@ def role=(role) @role = role end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb index 1f163c09f5b7..7a2315671892 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb @@ -83,26 +83,6 @@ def team=(team) @team = team end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb b/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb index e7249232aa85..e2331e3f09e2 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_response.rb b/lib/datadog_api_client/v2/models/authn_mapping_response.rb index 80c576f33d51..d4f6a10a85eb 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_response.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_team.rb b/lib/datadog_api_client/v2/models/authn_mapping_team.rb index cf5ff506b1df..e583dffc7b09 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_team.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_team.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb index 04a9021c7e9d..05f49fdfb2af 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb @@ -191,26 +191,6 @@ def user_count=(user_count) @user_count = user_count end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb index 57291c89d651..9741e450baa9 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb b/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb index 4cd83bc3394f..ee22b391b405 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb b/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb index 17f8a6e055e7..5e8a225ba26e 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mappings_response.rb b/lib/datadog_api_client/v2/models/authn_mappings_response.rb index 979677598cb0..87c225c593c2 100644 --- a/lib/datadog_api_client/v2/models/authn_mappings_response.rb +++ b/lib/datadog_api_client/v2/models/authn_mappings_response.rb @@ -87,26 +87,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config.rb b/lib/datadog_api_client/v2/models/aws_cur_config.rb index 41eecad512e8..48a3092420a2 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb b/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb index 81c7ee23c30c..849a93c575b8 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb @@ -280,26 +280,6 @@ def updated_at=(updated_at) @updated_at = updated_at end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb b/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb index 64ecab23543b..05b2eee35986 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb index a98862433a44..dcd2391430e4 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb index f61b02d5e12a..7dea635dac9e 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb @@ -83,26 +83,6 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb b/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb index 983a13ad6ab4..468e31086177 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb b/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb index 4d2607c7097d..592a89a6311b 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb b/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb index bbe773114616..bef8bf5774a1 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb @@ -181,26 +181,6 @@ def report_prefix=(report_prefix) @report_prefix = report_prefix end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_response.rb b/lib/datadog_api_client/v2/models/aws_cur_config_response.rb index 77b63c40d4ff..b41ca4f25507 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb b/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb index 56e4384068f4..5b45ffad12d1 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_related_account.rb b/lib/datadog_api_client/v2/models/aws_related_account.rb index a2ce67413ef5..ac0b8897ba37 100644 --- a/lib/datadog_api_client/v2/models/aws_related_account.rb +++ b/lib/datadog_api_client/v2/models/aws_related_account.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb b/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb index f6f1bb28db55..713285c032f7 100644 --- a/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb b/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb index 46da2ce3d52a..26c1f6dd7514 100644 --- a/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config.rb b/lib/datadog_api_client/v2/models/azure_uc_config.rb index 3787b6d067eb..1f2a0957df41 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config.rb @@ -349,26 +349,6 @@ def updated_at=(updated_at) @updated_at = updated_at end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb b/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb index 61f6d40cb79d..f918c3e16b73 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb b/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb index 3e91f52fe4cb..f519bb4cd43a 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb @@ -94,26 +94,6 @@ def configs=(configs) @configs = configs end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb b/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb index 5058e46f8c3d..af0be14022f3 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb b/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb index e3a7518e30d6..633bf4e3d66a 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb index e768620ef78e..5caa75c04574 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb index 14ef295561c3..381738c9532a 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb @@ -83,26 +83,6 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb b/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb index 17506a559c4e..8c550ad246c9 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb b/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb index 9351ceea22d7..4abc7051c6c7 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb b/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb index a68bb99dde31..7a7066415932 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb @@ -172,26 +172,6 @@ def scope=(scope) @scope = scope end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb b/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb index 39b05adbd976..e34e15fbe38e 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bill_config.rb b/lib/datadog_api_client/v2/models/bill_config.rb index 7c4db5e7b723..8876ff46edcf 100644 --- a/lib/datadog_api_client/v2/models/bill_config.rb +++ b/lib/datadog_api_client/v2/models/bill_config.rb @@ -143,26 +143,6 @@ def storage_container=(storage_container) @storage_container = storage_container end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb index 0d0dcfa94fbb..d23daf324d63 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_attributes.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_attributes.rb index 477fa9af6149..8e6f8bf98f60 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_attributes.rb @@ -78,6 +78,22 @@ def mute=(mute) end @mute = mute end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb index 9ba3f3c7dd1c..bb13eed26a8b 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb @@ -143,26 +143,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb index 894e709d4e1a..8ca2c5a16024 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb index 315864e4549b..acd2aab4fc73 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb index 834b09eafa2b..fa5a2bf47ec1 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb @@ -118,6 +118,22 @@ def reason=(reason) end @reason = reason end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb index 4ec819024c71..82eea29c1927 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb index daf608b8f006..10bd0e9f765e 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case.rb b/lib/datadog_api_client/v2/models/case.rb index 1573f988c3a5..983789bb3e4c 100644 --- a/lib/datadog_api_client/v2/models/case.rb +++ b/lib/datadog_api_client/v2/models/case.rb @@ -132,26 +132,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_assign.rb b/lib/datadog_api_client/v2/models/case_assign.rb index 81931c5e9bc2..d43fa89e058a 100644 --- a/lib/datadog_api_client/v2/models/case_assign.rb +++ b/lib/datadog_api_client/v2/models/case_assign.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_assign_attributes.rb b/lib/datadog_api_client/v2/models/case_assign_attributes.rb index 8001037c13a1..d37ecdf0de42 100644 --- a/lib/datadog_api_client/v2/models/case_assign_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_assign_attributes.rb @@ -83,26 +83,6 @@ def assignee_id=(assignee_id) @assignee_id = assignee_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_assign_request.rb b/lib/datadog_api_client/v2/models/case_assign_request.rb index 091ff5e3a47c..802a869c45ad 100644 --- a/lib/datadog_api_client/v2/models/case_assign_request.rb +++ b/lib/datadog_api_client/v2/models/case_assign_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_attributes.rb b/lib/datadog_api_client/v2/models/case_attributes.rb index 7ab640637638..3ce8debe8588 100644 --- a/lib/datadog_api_client/v2/models/case_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_attributes.rb @@ -176,26 +176,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_create.rb b/lib/datadog_api_client/v2/models/case_create.rb index 2f4ec7b26982..b951a0d94d03 100644 --- a/lib/datadog_api_client/v2/models/case_create.rb +++ b/lib/datadog_api_client/v2/models/case_create.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_create_attributes.rb b/lib/datadog_api_client/v2/models/case_create_attributes.rb index 9739ca48b80b..f75059292771 100644 --- a/lib/datadog_api_client/v2/models/case_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_create_attributes.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_create_relationships.rb b/lib/datadog_api_client/v2/models/case_create_relationships.rb index 91b529d1ad07..871cbcfef40e 100644 --- a/lib/datadog_api_client/v2/models/case_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/case_create_relationships.rb @@ -100,26 +100,6 @@ def project=(project) @project = project end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_create_request.rb b/lib/datadog_api_client/v2/models/case_create_request.rb index 51e78c431536..636346461270 100644 --- a/lib/datadog_api_client/v2/models/case_create_request.rb +++ b/lib/datadog_api_client/v2/models/case_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_empty.rb b/lib/datadog_api_client/v2/models/case_empty.rb index e6ca66b4da0c..e122866c584c 100644 --- a/lib/datadog_api_client/v2/models/case_empty.rb +++ b/lib/datadog_api_client/v2/models/case_empty.rb @@ -83,26 +83,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_empty_request.rb b/lib/datadog_api_client/v2/models/case_empty_request.rb index 5f7a626bb2a9..0c815ca21b26 100644 --- a/lib/datadog_api_client/v2/models/case_empty_request.rb +++ b/lib/datadog_api_client/v2/models/case_empty_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_relationships.rb b/lib/datadog_api_client/v2/models/case_relationships.rb index d20f70fbab41..cd7b2e55cec5 100644 --- a/lib/datadog_api_client/v2/models/case_relationships.rb +++ b/lib/datadog_api_client/v2/models/case_relationships.rb @@ -102,26 +102,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_response.rb b/lib/datadog_api_client/v2/models/case_response.rb index e10580f69057..756c2c6b7033 100644 --- a/lib/datadog_api_client/v2/models/case_response.rb +++ b/lib/datadog_api_client/v2/models/case_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_priority.rb b/lib/datadog_api_client/v2/models/case_update_priority.rb index 23438aea53d8..865e9d8cae62 100644 --- a/lib/datadog_api_client/v2/models/case_update_priority.rb +++ b/lib/datadog_api_client/v2/models/case_update_priority.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb b/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb index 37a5acafb5e2..9f23e456070d 100644 --- a/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb @@ -83,26 +83,6 @@ def priority=(priority) @priority = priority end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_priority_request.rb b/lib/datadog_api_client/v2/models/case_update_priority_request.rb index ebda37319f21..f99ada11f4db 100644 --- a/lib/datadog_api_client/v2/models/case_update_priority_request.rb +++ b/lib/datadog_api_client/v2/models/case_update_priority_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_status.rb b/lib/datadog_api_client/v2/models/case_update_status.rb index b96236c2b0ef..414fb3a7f9d4 100644 --- a/lib/datadog_api_client/v2/models/case_update_status.rb +++ b/lib/datadog_api_client/v2/models/case_update_status.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_status_attributes.rb b/lib/datadog_api_client/v2/models/case_update_status_attributes.rb index fd04d01cb0e9..def25756cef1 100644 --- a/lib/datadog_api_client/v2/models/case_update_status_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_update_status_attributes.rb @@ -83,26 +83,6 @@ def status=(status) @status = status end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_status_request.rb b/lib/datadog_api_client/v2/models/case_update_status_request.rb index 62b9fe343cd5..c580726e6eb9 100644 --- a/lib/datadog_api_client/v2/models/case_update_status_request.rb +++ b/lib/datadog_api_client/v2/models/case_update_status_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cases_response.rb b/lib/datadog_api_client/v2/models/cases_response.rb index 456328db3773..4a92ba72c68b 100644 --- a/lib/datadog_api_client/v2/models/cases_response.rb +++ b/lib/datadog_api_client/v2/models/cases_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cases_response_meta.rb b/lib/datadog_api_client/v2/models/cases_response_meta.rb index acfaa5f6360e..0b9a1d71f7ea 100644 --- a/lib/datadog_api_client/v2/models/cases_response_meta.rb +++ b/lib/datadog_api_client/v2/models/cases_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb index ea60d4208b6b..f8288d8ac26d 100644 --- a/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/chargeback_breakdown.rb b/lib/datadog_api_client/v2/models/chargeback_breakdown.rb index 2f81f1cd4202..c2c28203f2b9 100644 --- a/lib/datadog_api_client/v2/models/chargeback_breakdown.rb +++ b/lib/datadog_api_client/v2/models/chargeback_breakdown.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb index 4fb63ea3ee2a..41c6905d06d6 100644 --- a/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb b/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb index 03206c524af2..e64627057e78 100644 --- a/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_ci_error.rb b/lib/datadog_api_client/v2/models/ci_app_ci_error.rb index f2414bf5381d..ca04f249ec51 100644 --- a/lib/datadog_api_client/v2/models/ci_app_ci_error.rb +++ b/lib/datadog_api_client/v2/models/ci_app_ci_error.rb @@ -131,26 +131,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_compute.rb b/lib/datadog_api_client/v2/models/ci_app_compute.rb index 49cfb41f6b4f..0a7511cafa09 100644 --- a/lib/datadog_api_client/v2/models/ci_app_compute.rb +++ b/lib/datadog_api_client/v2/models/ci_app_compute.rb @@ -111,26 +111,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb index e341a0cef52a..594a99733c0e 100644 --- a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb index 367f47346315..2ff289145325 100644 --- a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb @@ -101,26 +101,6 @@ def resource=(resource) @resource = resource end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb index a431fa7c91c2..ee2e2c91cb72 100644 --- a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb +++ b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb b/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb index 3e9d9bef8e9d..e63978f57e36 100644 --- a/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_git_info.rb b/lib/datadog_api_client/v2/models/ci_app_git_info.rb index 726cf72ebc5f..119f5b81764e 100644 --- a/lib/datadog_api_client/v2/models/ci_app_git_info.rb +++ b/lib/datadog_api_client/v2/models/ci_app_git_info.rb @@ -227,26 +227,6 @@ def sha=(sha) @sha = sha end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb b/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb index 21c1adb588cd..757e5c8ef23c 100644 --- a/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb @@ -126,26 +126,6 @@ def min=(min) @min = min end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_host_info.rb b/lib/datadog_api_client/v2/models/ci_app_host_info.rb index 6874177af91b..ee6173f1ad38 100644 --- a/lib/datadog_api_client/v2/models/ci_app_host_info.rb +++ b/lib/datadog_api_client/v2/models/ci_app_host_info.rb @@ -94,26 +94,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb index e48a786960d5..07b8de6d16bd 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb index 8ee21295b015..d98deb8c1b6c 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb index b4a1f7867004..f9c612979caa 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb @@ -368,26 +368,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb index b626b5616aa3..b5322a42b0fd 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb @@ -92,26 +92,6 @@ def id=(id) @id = id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb index 0e9e1afd3878..6bc6220fc4c0 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb @@ -368,26 +368,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb index ad5e416777f7..9688d9db201e 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb @@ -92,26 +92,6 @@ def id=(id) @id = id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb index e4c1f6d19f49..148db443a295 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb @@ -328,26 +328,6 @@ def status=(status) @status = status end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb index 9ed84458db65..61d0031a1ace 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb @@ -345,26 +345,6 @@ def status=(status) @status = status end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb index 0586481b1b7b..b0e73187d235 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb @@ -93,26 +93,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb index 172d7be59110..5cb0710a00d6 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb index e266598734c2..e2392acf3fe4 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb @@ -97,26 +97,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb index 89bf49d1b573..10c9c2ffc96b 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb index 6529d1845ffd..37d080950f6f 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb index 250e6ce07d8f..9a3e5dcb5aff 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb index e6c7deb5698e..12b4497b99ac 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb @@ -129,26 +129,6 @@ def facet=(facet) @facet = facet end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb index 38eea3965b83..560aac2a4787 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_query_options.rb b/lib/datadog_api_client/v2/models/ci_app_query_options.rb index 660b08a08100..76ce5b9373e0 100644 --- a/lib/datadog_api_client/v2/models/ci_app_query_options.rb +++ b/lib/datadog_api_client/v2/models/ci_app_query_options.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb b/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb index 70a6a05b9a3f..4454ed44bf4c 100644 --- a/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb +++ b/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb @@ -92,26 +92,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_response_links.rb b/lib/datadog_api_client/v2/models/ci_app_response_links.rb index ddd2e142f441..01205b1dc7ed 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_links.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_links.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb b/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb index b6bc0eafb72c..7b3169f4d2b4 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb @@ -95,26 +95,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb b/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb index 90e0f8c8c307..6c827566a454 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb @@ -104,26 +104,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_response_page.rb b/lib/datadog_api_client/v2/models/ci_app_response_page.rb index daf82380ba57..e98b4fe664e5 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_page.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_test_event.rb b/lib/datadog_api_client/v2/models/ci_app_test_event.rb index 02ca45e86d69..5e7d8c121015 100644 --- a/lib/datadog_api_client/v2/models/ci_app_test_event.rb +++ b/lib/datadog_api_client/v2/models/ci_app_test_event.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb b/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb index 69263a6d936a..fd1074ac15bb 100644 --- a/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb @@ -93,26 +93,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb b/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb index 14b46743c988..15ec37ebb8c2 100644 --- a/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb b/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb index 51731da3bcf2..7526df5e1f36 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb @@ -97,26 +97,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb b/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb index 2a53c9ece9c4..b379696579b5 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb b/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb index 38842c3a7223..6c123ee1e114 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb b/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb index 989bb59edf3d..49fbc3f0d255 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb b/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb index 667a6386c363..794b500b0cbb 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb @@ -129,26 +129,6 @@ def facet=(facet) @facet = facet end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb b/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb index 092738ff6029..333384307b98 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_warning.rb b/lib/datadog_api_client/v2/models/ci_app_warning.rb index b91425e852ef..e9f12e692c3a 100644 --- a/lib/datadog_api_client/v2/models/ci_app_warning.rb +++ b/lib/datadog_api_client/v2/models/ci_app_warning.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb b/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb index b6adaf791d5e..4e34fc729547 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb @@ -87,26 +87,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb index 8322bc8e34f8..ef19221e1e70 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb @@ -105,26 +105,6 @@ def resource_types=(resource_types) @resource_types = resource_types end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb index cdd160271a3d..16c46795c2f1 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb @@ -94,26 +94,6 @@ def status=(status) @status = status end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb index bb1693fb614f..5fe4d3b37f18 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb @@ -107,26 +107,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb index 812744c50c43..c5d08d2e1906 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb @@ -217,26 +217,6 @@ def options=(options) @options = options end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb index ed577c0a5718..0117f163c810 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb @@ -85,26 +85,6 @@ def compliance_rule_options=(compliance_rule_options) @compliance_rule_options = compliance_rule_options end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb index c0703f3190c6..0de66a5d7359 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb @@ -217,26 +217,6 @@ def options=(options) @options = options end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_cost_activity.rb b/lib/datadog_api_client/v2/models/cloud_cost_activity.rb index a47c7ab00506..a499afb58f02 100644 --- a/lib/datadog_api_client/v2/models/cloud_cost_activity.rb +++ b/lib/datadog_api_client/v2/models/cloud_cost_activity.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb b/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb index 14f980a622ec..e2893999aa1e 100644 --- a/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb @@ -83,26 +83,6 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb b/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb index 80a6018bfc60..016eda20dcc3 100644 --- a/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb index b47013766209..f48ff39dcec2 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb index a6d9b148516d..b7af80ef319d 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb @@ -221,26 +221,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb index c7064a4e25f0..0b81d5560ae0 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb @@ -132,26 +132,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb index 1b23b48f48b5..e49185724ae2 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb index 62624100d437..cf9b63b2935b 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb index e5e22dd27534..9cf3e4dc7390 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb @@ -82,26 +82,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb index 5d9ad28a64d9..93c7a3234138 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb index 8850e6722437..ae691c4296d2 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb index 65d83126261c..db8c58ce7301 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb index 78816924bb3d..3478a1c18e2c 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb index dbb11a788a94..cbde20c810a5 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb index 2c83659c494c..0a4b2426a717 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb index 3c086559a5c6..602871087f5e 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb @@ -82,26 +82,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb index a5710e67bfa1..73abcd796252 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb index 9774090eb71d..ce7dd8fe38fa 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb index abd5503f5f5e..8a796df59f2a 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb @@ -134,26 +134,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb index 1363b853457b..fdb6a59d7792 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response.rb index d494660cf556..fc52824e5eec 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb index bb3b6981c4f9..cd71545644bf 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb @@ -123,26 +123,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb index e91d7fc588e7..8b58388c9199 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb index 4b764f4603d2..9441ddd7b662 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb index b98e3430ebe3..bc57bdbe2809 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb @@ -123,26 +123,6 @@ def api_key=(api_key) @api_key = api_key end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb index cce3aa43856a..5ba1a3953ab0 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb b/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb index 91bc209baf8e..c1350bb110fb 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_create_request.rb b/lib/datadog_api_client/v2/models/confluent_account_create_request.rb index 8edf8ec3fdcc..4168b933a093 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb index e913fc6a1679..28a3b9acc8e5 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb @@ -125,26 +125,6 @@ def api_secret=(api_secret) @api_secret = api_secret end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb b/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb index 2ec258d9d2aa..5f2a8b39ab30 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb index f5f571e27354..a39509d798b1 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb @@ -112,26 +112,6 @@ def resource_type=(resource_type) @resource_type = resource_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_response.rb b/lib/datadog_api_client/v2/models/confluent_account_response.rb index aae559bfd112..6da932588844 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb index c286d0543ea7..1092677f797c 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb @@ -105,26 +105,6 @@ def api_key=(api_key) @api_key = api_key end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_response_data.rb b/lib/datadog_api_client/v2/models/confluent_account_response_data.rb index c2a8bf82aa31..ba3d35a3bf65 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_response_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_update_request.rb b/lib/datadog_api_client/v2/models/confluent_account_update_request.rb index 093336d87e41..f3e4a7fc17ad 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb index 987dfa551178..02c4b4b019d9 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb @@ -114,26 +114,6 @@ def api_secret=(api_secret) @api_secret = api_secret end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb b/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb index af457d4d97b8..2149cb685105 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_accounts_response.rb b/lib/datadog_api_client/v2/models/confluent_accounts_response.rb index fdc3dc6c68c5..bc39b67e812e 100644 --- a/lib/datadog_api_client/v2/models/confluent_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_accounts_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_request.rb b/lib/datadog_api_client/v2/models/confluent_resource_request.rb index ceb244e9863d..ad3845b205e7 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_request.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb b/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb index c1bd29d3ae2c..720cc6d90593 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb @@ -103,26 +103,6 @@ def resource_type=(resource_type) @resource_type = resource_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb b/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb index 4f1e78aaa8e5..0149fb6e8d8c 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_response.rb b/lib/datadog_api_client/v2/models/confluent_resource_response.rb index 3120b35f4367..84e34c717d24 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb b/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb index 87de15dc40dc..914ac782c0f5 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb @@ -112,26 +112,6 @@ def resource_type=(resource_type) @resource_type = resource_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb b/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb index 2fef5eaba0be..82dfe6eb88cb 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resources_response.rb b/lib/datadog_api_client/v2/models/confluent_resources_response.rb index 4b6b11f77c39..11f93852f2f6 100644 --- a/lib/datadog_api_client/v2/models/confluent_resources_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_resources_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container.rb b/lib/datadog_api_client/v2/models/container.rb index 620e189d877d..1061a3c22a55 100644 --- a/lib/datadog_api_client/v2/models/container.rb +++ b/lib/datadog_api_client/v2/models/container.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_attributes.rb b/lib/datadog_api_client/v2/models/container_attributes.rb index 4d9759dbbe77..00a5291cdcb2 100644 --- a/lib/datadog_api_client/v2/models/container_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_attributes.rb @@ -159,26 +159,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group.rb b/lib/datadog_api_client/v2/models/container_group.rb index 06c787bea79d..92a7cf429b67 100644 --- a/lib/datadog_api_client/v2/models/container_group.rb +++ b/lib/datadog_api_client/v2/models/container_group.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group_attributes.rb b/lib/datadog_api_client/v2/models/container_group_attributes.rb index ae2ffa342901..42b99d786864 100644 --- a/lib/datadog_api_client/v2/models/container_group_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_group_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group_relationships.rb b/lib/datadog_api_client/v2/models/container_group_relationships.rb index b3533f19dd91..2599d6cf39c7 100644 --- a/lib/datadog_api_client/v2/models/container_group_relationships.rb +++ b/lib/datadog_api_client/v2/models/container_group_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group_relationships_link.rb b/lib/datadog_api_client/v2/models/container_group_relationships_link.rb index ee133cc42d1a..01af44cfb026 100644 --- a/lib/datadog_api_client/v2/models/container_group_relationships_link.rb +++ b/lib/datadog_api_client/v2/models/container_group_relationships_link.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group_relationships_links.rb b/lib/datadog_api_client/v2/models/container_group_relationships_links.rb index de5198b4c86f..e10e552bf579 100644 --- a/lib/datadog_api_client/v2/models/container_group_relationships_links.rb +++ b/lib/datadog_api_client/v2/models/container_group_relationships_links.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image.rb b/lib/datadog_api_client/v2/models/container_image.rb index 4db894444e02..a5f37c7f6b62 100644 --- a/lib/datadog_api_client/v2/models/container_image.rb +++ b/lib/datadog_api_client/v2/models/container_image.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_attributes.rb b/lib/datadog_api_client/v2/models/container_image_attributes.rb index d04a8a17069f..2901f2514527 100644 --- a/lib/datadog_api_client/v2/models/container_image_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_image_attributes.rb @@ -230,26 +230,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_flavor.rb b/lib/datadog_api_client/v2/models/container_image_flavor.rb index f33e48c49507..3287a25ccb40 100644 --- a/lib/datadog_api_client/v2/models/container_image_flavor.rb +++ b/lib/datadog_api_client/v2/models/container_image_flavor.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group.rb b/lib/datadog_api_client/v2/models/container_image_group.rb index 5f2aafb4a4b5..4f10d3e4f755 100644 --- a/lib/datadog_api_client/v2/models/container_image_group.rb +++ b/lib/datadog_api_client/v2/models/container_image_group.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group_attributes.rb b/lib/datadog_api_client/v2/models/container_image_group_attributes.rb index 4d7275ef19c8..3d8e4dbe5993 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_attributes.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb b/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb index 254f843f7e69..e06dc2eb0719 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group_relationships.rb b/lib/datadog_api_client/v2/models/container_image_group_relationships.rb index e1655660ccd4..9238727cf6ed 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_relationships.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb b/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb index 58eee7913a05..7044aa6ddd86 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_meta.rb b/lib/datadog_api_client/v2/models/container_image_meta.rb index 03ee68699598..130e9b848c23 100644 --- a/lib/datadog_api_client/v2/models/container_image_meta.rb +++ b/lib/datadog_api_client/v2/models/container_image_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_meta_page.rb b/lib/datadog_api_client/v2/models/container_image_meta_page.rb index 86ef2377015b..da9124a18990 100644 --- a/lib/datadog_api_client/v2/models/container_image_meta_page.rb +++ b/lib/datadog_api_client/v2/models/container_image_meta_page.rb @@ -140,26 +140,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb b/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb index 7a7df0685678..cb6672b4def6 100644 --- a/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb +++ b/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb @@ -119,26 +119,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_images_response.rb b/lib/datadog_api_client/v2/models/container_images_response.rb index e82988aad1ea..352f2b707380 100644 --- a/lib/datadog_api_client/v2/models/container_images_response.rb +++ b/lib/datadog_api_client/v2/models/container_images_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_images_response_links.rb b/lib/datadog_api_client/v2/models/container_images_response_links.rb index 34da8c2be5ff..6cbe1eb14f1f 100644 --- a/lib/datadog_api_client/v2/models/container_images_response_links.rb +++ b/lib/datadog_api_client/v2/models/container_images_response_links.rb @@ -111,26 +111,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_meta.rb b/lib/datadog_api_client/v2/models/container_meta.rb index 30ed593f8734..d94408c09aec 100644 --- a/lib/datadog_api_client/v2/models/container_meta.rb +++ b/lib/datadog_api_client/v2/models/container_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_meta_page.rb b/lib/datadog_api_client/v2/models/container_meta_page.rb index bacdeb9369e9..cee8eb2b1424 100644 --- a/lib/datadog_api_client/v2/models/container_meta_page.rb +++ b/lib/datadog_api_client/v2/models/container_meta_page.rb @@ -140,26 +140,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/containers_response.rb b/lib/datadog_api_client/v2/models/containers_response.rb index 18e8159f58ac..d7d191bad65c 100644 --- a/lib/datadog_api_client/v2/models/containers_response.rb +++ b/lib/datadog_api_client/v2/models/containers_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/containers_response_links.rb b/lib/datadog_api_client/v2/models/containers_response_links.rb index 5fd17d2de0e6..fe70dac1b4ea 100644 --- a/lib/datadog_api_client/v2/models/containers_response_links.rb +++ b/lib/datadog_api_client/v2/models/containers_response_links.rb @@ -111,26 +111,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb b/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb index 507e472cc270..36ba519fb719 100644 --- a/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb +++ b/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cost_by_org.rb b/lib/datadog_api_client/v2/models/cost_by_org.rb index 73c422431749..c1f86da5d4a5 100644 --- a/lib/datadog_api_client/v2/models/cost_by_org.rb +++ b/lib/datadog_api_client/v2/models/cost_by_org.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb b/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb index ff58e923c9c3..978caa865462 100644 --- a/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb +++ b/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb @@ -130,26 +130,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cost_by_org_response.rb b/lib/datadog_api_client/v2/models/cost_by_org_response.rb index 9151d8335c65..b8a5be5c5df5 100644 --- a/lib/datadog_api_client/v2/models/cost_by_org_response.rb +++ b/lib/datadog_api_client/v2/models/cost_by_org_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_open_api_response.rb b/lib/datadog_api_client/v2/models/create_open_api_response.rb index 6f6168c69016..a40f1f94b963 100644 --- a/lib/datadog_api_client/v2/models/create_open_api_response.rb +++ b/lib/datadog_api_client/v2/models/create_open_api_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb b/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb index 2a2bf85e1530..662107fc5944 100644 --- a/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_open_api_response_data.rb b/lib/datadog_api_client/v2/models/create_open_api_response_data.rb index 8e9320577f11..57bb0b87da05 100644 --- a/lib/datadog_api_client/v2/models/create_open_api_response_data.rb +++ b/lib/datadog_api_client/v2/models/create_open_api_response_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_rule_request.rb b/lib/datadog_api_client/v2/models/create_rule_request.rb index 7d9cb190b897..f4874ca5cfaa 100644 --- a/lib/datadog_api_client/v2/models/create_rule_request.rb +++ b/lib/datadog_api_client/v2/models/create_rule_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_rule_request_data.rb b/lib/datadog_api_client/v2/models/create_rule_request_data.rb index b051af1b4e64..60f3cf2ce073 100644 --- a/lib/datadog_api_client/v2/models/create_rule_request_data.rb +++ b/lib/datadog_api_client/v2/models/create_rule_request_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_rule_response.rb b/lib/datadog_api_client/v2/models/create_rule_response.rb index cf71416e0ee0..97f03965d169 100644 --- a/lib/datadog_api_client/v2/models/create_rule_response.rb +++ b/lib/datadog_api_client/v2/models/create_rule_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_rule_response_data.rb b/lib/datadog_api_client/v2/models/create_rule_response_data.rb index d5ebbe809c93..bda31b69fa6f 100644 --- a/lib/datadog_api_client/v2/models/create_rule_response_data.rb +++ b/lib/datadog_api_client/v2/models/create_rule_response_data.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index 2ec445d3c175..9aa1d128ba33 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -91,26 +91,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb b/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb index 24397c6af89d..4b32aed00ff0 100644 --- a/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb +++ b/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb b/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb index 3950129e4ae5..835255da9480 100644 --- a/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb +++ b/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb b/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb index ecd06c98551c..59d9c075a944 100644 --- a/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb +++ b/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb b/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb index 51950918defa..a72480189c68 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb b/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb index d9306ab2594c..1d10acef6932 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb @@ -152,26 +152,6 @@ def charge_period_start=(charge_period_start) @charge_period_start = charge_period_start end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb b/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb index b03b25208f66..752f263429f4 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb index a29861fc0c3d..a119e9e48759 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb @@ -130,26 +130,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb index 3a088b5d5d53..834e905de858 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb index 69f69e59efe9..33d12a190e5b 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb @@ -141,26 +141,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb index 4cd22299ce81..831044be59fc 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb b/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb index c22b1f60da35..c937d8f9e18d 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb b/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb index cd57e73af7b1..59464a2cde59 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_user.rb b/lib/datadog_api_client/v2/models/custom_costs_user.rb index b979a4bd156f..7b52d943774a 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_user.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_user.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_create_request.rb b/lib/datadog_api_client/v2/models/custom_destination_create_request.rb index bc801ecfcab2..c2dce55a956e 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_create_request.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_create_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb b/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb index 5f92577ac293..c6e70d50b152 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb @@ -172,26 +172,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb b/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb index 0892c7989dbb..3e9bf3ec5985 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb b/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb index 4c485624c410..a237fe6cb4e8 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb @@ -103,26 +103,6 @@ def username=(username) @username = username end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb index ca9d1ea89db6..655b345c3bc4 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb @@ -162,26 +162,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb index d898be9ed95e..73e64a26aea9 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb @@ -124,26 +124,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb index 6ebac3a72593..42dbbd394208 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb @@ -124,26 +124,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb index deaffa852fee..8924c0d501f2 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb @@ -123,26 +123,6 @@ def username=(username) @username = username end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb index 2cc601f37288..b4e89804574e 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response.rb b/lib/datadog_api_client/v2/models/custom_destination_response.rb index 024ed6df1dbc..66dceb526260 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb b/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb index de69d8d8a13b..be2c6848b5a2 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb @@ -150,26 +150,6 @@ def forward_tags_restriction_list=(forward_tags_restriction_list) @forward_tags_restriction_list = forward_tags_restriction_list end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb b/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb index 84be926ebd86..769b745828d8 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb index b6bdcb7e4eff..0ecaa37a8837 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb @@ -162,26 +162,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb index 8b9555c4d2fc..21e088e5af51 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb @@ -124,26 +124,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb index fdd41aa3e0dc..ceb4bc4f251a 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb @@ -104,26 +104,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb index ec2b6d121807..41997609bc30 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb @@ -83,26 +83,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb index a32897f1786e..6346898ace54 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_update_request.rb b/lib/datadog_api_client/v2/models/custom_destination_update_request.rb index 1c8adec241ff..f703922423fd 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_update_request.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_update_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb b/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb index ef23ce4c6bf7..d3916ccfc152 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb @@ -148,26 +148,6 @@ def forward_tags_restriction_list=(forward_tags_restriction_list) @forward_tags_restriction_list = forward_tags_restriction_list end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb b/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb index 06ff7a142f65..eb0df7a4eec1 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destinations_response.rb b/lib/datadog_api_client/v2/models/custom_destinations_response.rb index ad60799aa64e..24634c94906b 100644 --- a/lib/datadog_api_client/v2/models/custom_destinations_response.rb +++ b/lib/datadog_api_client/v2/models/custom_destinations_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb index e960982638ca..b0779bcfb90b 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb index f2e4e0b4fd6c..a7d45a7eb811 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb index e50276b88c75..6892f59de1b0 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb index 331e37902469..5c7ff26cc4b3 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item.rb b/lib/datadog_api_client/v2/models/dashboard_list_item.rb index 61ecb51cf90d..c8d159aa7666 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -245,26 +245,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb index 4a47a4994efd..2a08d7979011 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb index 4d0d54e336b6..90d539526f2a 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_items.rb b/lib/datadog_api_client/v2/models/dashboard_list_items.rb index 636c66e2d5a8..61c0391039e7 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -94,26 +94,6 @@ def dashboards=(dashboards) @dashboards = dashboards end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb index c12c94c0b098..e6b363939b67 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb index 3e0fdbc36278..3b72f6544a48 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/data_scalar_column.rb b/lib/datadog_api_client/v2/models/data_scalar_column.rb index f6629576d3dc..5a7b15ecaba6 100644 --- a/lib/datadog_api_client/v2/models/data_scalar_column.rb +++ b/lib/datadog_api_client/v2/models/data_scalar_column.rb @@ -94,26 +94,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/detailed_finding.rb b/lib/datadog_api_client/v2/models/detailed_finding.rb index ba7a0092f334..acee85c9acec 100644 --- a/lib/datadog_api_client/v2/models/detailed_finding.rb +++ b/lib/datadog_api_client/v2/models/detailed_finding.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb b/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb index 6a1479cbe899..d7c3d854f505 100644 --- a/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb +++ b/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb @@ -186,26 +186,6 @@ def resource_discovery_date=(resource_discovery_date) @resource_discovery_date = resource_discovery_date end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/device_attributes.rb b/lib/datadog_api_client/v2/models/device_attributes.rb index 70b77f0370c9..e0d21de7cebe 100644 --- a/lib/datadog_api_client/v2/models/device_attributes.rb +++ b/lib/datadog_api_client/v2/models/device_attributes.rb @@ -238,26 +238,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb b/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb index 3e2291cda34a..4dd491ad2f88 100644 --- a/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb +++ b/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/devices_list_data.rb b/lib/datadog_api_client/v2/models/devices_list_data.rb index d6fdb6a3b7c3..33f57d0917ce 100644 --- a/lib/datadog_api_client/v2/models/devices_list_data.rb +++ b/lib/datadog_api_client/v2/models/devices_list_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request.rb b/lib/datadog_api_client/v2/models/dora_deployment_request.rb index 2180a18a6c28..f0e91df56531 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb b/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb index 63a7ebd56793..511ae031b04b 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb @@ -159,26 +159,6 @@ def started_at=(started_at) @started_at = started_at end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb b/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb index e23c9f25bdb0..260af1525233 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb @@ -83,26 +83,6 @@ def attributes=(attributes) @attributes = attributes end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_response.rb b/lib/datadog_api_client/v2/models/dora_deployment_response.rb index 04115d10b54b..3febb9f68478 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_response.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_response.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb b/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb index 68cf1547cc44..50a1b2c7742e 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb @@ -92,26 +92,6 @@ def id=(id) @id = id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_git_info.rb b/lib/datadog_api_client/v2/models/dora_git_info.rb index a0bb0fe90a1d..e907993df4e4 100644 --- a/lib/datadog_api_client/v2/models/dora_git_info.rb +++ b/lib/datadog_api_client/v2/models/dora_git_info.rb @@ -109,26 +109,6 @@ def repository_url=(repository_url) @repository_url = repository_url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_request.rb b/lib/datadog_api_client/v2/models/dora_incident_request.rb index c65c4a896cee..34b74774b11b 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_request.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb b/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb index 3c9e6e1adc5c..86df7826e33f 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb @@ -166,26 +166,6 @@ def started_at=(started_at) @started_at = started_at end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_request_data.rb b/lib/datadog_api_client/v2/models/dora_incident_request_data.rb index f9d256e122f2..914d00e4ae92 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_request_data.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_request_data.rb @@ -83,26 +83,6 @@ def attributes=(attributes) @attributes = attributes end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_response.rb b/lib/datadog_api_client/v2/models/dora_incident_response.rb index 86be6a3d05ec..07a63666bd1a 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_response.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_response.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_response_data.rb b/lib/datadog_api_client/v2/models/dora_incident_response_data.rb index 440b951198b2..c5650524bfb4 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_response_data.rb @@ -92,26 +92,6 @@ def id=(id) @id = id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_create_request.rb b/lib/datadog_api_client/v2/models/downtime_create_request.rb index 17f54622a227..409afb9ce940 100644 --- a/lib/datadog_api_client/v2/models/downtime_create_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb b/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb index ff27e11ffd6c..492399bc4536 100644 --- a/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb @@ -172,26 +172,6 @@ def scope=(scope) @scope = scope end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_create_request_data.rb b/lib/datadog_api_client/v2/models/downtime_create_request_data.rb index b771b7b71e31..fe4029c99e22 100644 --- a/lib/datadog_api_client/v2/models/downtime_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_create_request_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_meta.rb b/lib/datadog_api_client/v2/models/downtime_meta.rb index df177c9af62b..44097d3d27af 100644 --- a/lib/datadog_api_client/v2/models/downtime_meta.rb +++ b/lib/datadog_api_client/v2/models/downtime_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_meta_page.rb b/lib/datadog_api_client/v2/models/downtime_meta_page.rb index 35f51ba1705a..06287a1f43dc 100644 --- a/lib/datadog_api_client/v2/models/downtime_meta_page.rb +++ b/lib/datadog_api_client/v2/models/downtime_meta_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb index 9028cd7daa8a..74c8f9c0344b 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb @@ -83,26 +83,6 @@ def monitor_id=(monitor_id) @monitor_id = monitor_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb index f28e3087e527..93e3928b2289 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb @@ -92,26 +92,6 @@ def monitor_tags=(monitor_tags) @monitor_tags = monitor_tags end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb b/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb index 28fa209f81ae..8fa5b78d8407 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb b/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb index b743fce26f15..d3689092214e 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships.rb b/lib/datadog_api_client/v2/models/downtime_relationships.rb index 5a8b8e1e9059..3cdf065ecd58 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb b/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb index 4708443d065e..4f4249906dc3 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb @@ -73,26 +73,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb b/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb index 4b798d67ef9d..1473232afdff 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb b/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb index 99a994254aa8..81f222568641 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb @@ -73,26 +73,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb b/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb index a4137a916de2..44b6a3f9157b 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_response.rb b/lib/datadog_api_client/v2/models/downtime_response.rb index cd8e664cccf9..8f49ac6285b3 100644 --- a/lib/datadog_api_client/v2/models/downtime_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_response.rb @@ -79,26 +79,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_response_attributes.rb b/lib/datadog_api_client/v2/models/downtime_response_attributes.rb index 8e9b9ef45912..802735da39c8 100644 --- a/lib/datadog_api_client/v2/models/downtime_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_response_attributes.rb @@ -182,26 +182,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_response_data.rb b/lib/datadog_api_client/v2/models/downtime_response_data.rb index 5c57a8d668b4..2ddb45297c59 100644 --- a/lib/datadog_api_client/v2/models/downtime_response_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_response_data.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb index 225aa4406df1..6684e71db6b2 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb @@ -84,26 +84,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb index 65ea83d029bd..281655f709ff 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb @@ -80,6 +80,22 @@ def initialize(attributes = {}) self.start = attributes[:'start'] end end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb index 2a65555fd69e..6a211992bc30 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb @@ -100,26 +100,6 @@ def start=(start) @start = start end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb index c514a550c194..409c3c5a5fcd 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb @@ -126,26 +126,6 @@ def rrule=(rrule) @rrule = rrule end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb index 2e883e4de63e..b543787a4696 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb @@ -89,26 +89,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb index e273adab95b5..d4da079f224d 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb @@ -94,26 +94,6 @@ def recurrences=(recurrences) @recurrences = recurrences end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb index 0fad380c43c9..e1c5ef43abd8 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb @@ -114,26 +114,6 @@ def recurrences=(recurrences) @recurrences = recurrences end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb index cc73a8c0bc06..170317388b8d 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb @@ -71,6 +71,22 @@ def initialize(attributes = {}) self.timezone = attributes[:'timezone'] end end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/downtime_update_request.rb b/lib/datadog_api_client/v2/models/downtime_update_request.rb index c0c7d88a1e40..d84355f860bc 100644 --- a/lib/datadog_api_client/v2/models/downtime_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb b/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb index df504a51c8ca..9f6300af9a15 100644 --- a/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb @@ -143,26 +143,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_update_request_data.rb b/lib/datadog_api_client/v2/models/downtime_update_request_data.rb index 8ffba0e94704..355e22b0465a 100644 --- a/lib/datadog_api_client/v2/models/downtime_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_update_request_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/event.rb b/lib/datadog_api_client/v2/models/event.rb index 453fc4cdfeb1..aa00c05b47b1 100644 --- a/lib/datadog_api_client/v2/models/event.rb +++ b/lib/datadog_api_client/v2/models/event.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/event_attributes.rb b/lib/datadog_api_client/v2/models/event_attributes.rb index 235cdb2f071e..2e8bb0f0f561 100644 --- a/lib/datadog_api_client/v2/models/event_attributes.rb +++ b/lib/datadog_api_client/v2/models/event_attributes.rb @@ -248,26 +248,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/event_response.rb b/lib/datadog_api_client/v2/models/event_response.rb index 6cbca2594979..9c76a9df684f 100644 --- a/lib/datadog_api_client/v2/models/event_response.rb +++ b/lib/datadog_api_client/v2/models/event_response.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/event_response_attributes.rb b/lib/datadog_api_client/v2/models/event_response_attributes.rb index 3d6d4bae4b11..5cef8ef376f1 100644 --- a/lib/datadog_api_client/v2/models/event_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/event_response_attributes.rb @@ -94,26 +94,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_compute.rb b/lib/datadog_api_client/v2/models/events_compute.rb index 353cb789e540..b2bbe669a2d3 100644 --- a/lib/datadog_api_client/v2/models/events_compute.rb +++ b/lib/datadog_api_client/v2/models/events_compute.rb @@ -101,26 +101,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_group_by.rb b/lib/datadog_api_client/v2/models/events_group_by.rb index 78cc2b35c103..da15b0e8b5cf 100644 --- a/lib/datadog_api_client/v2/models/events_group_by.rb +++ b/lib/datadog_api_client/v2/models/events_group_by.rb @@ -113,26 +113,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_group_by_sort.rb b/lib/datadog_api_client/v2/models/events_group_by_sort.rb index b06ef9885a5e..33674f2cf6be 100644 --- a/lib/datadog_api_client/v2/models/events_group_by_sort.rb +++ b/lib/datadog_api_client/v2/models/events_group_by_sort.rb @@ -110,26 +110,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_list_request.rb b/lib/datadog_api_client/v2/models/events_list_request.rb index 502ce7decb83..c31ffa8f227e 100644 --- a/lib/datadog_api_client/v2/models/events_list_request.rb +++ b/lib/datadog_api_client/v2/models/events_list_request.rb @@ -93,26 +93,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_list_response.rb b/lib/datadog_api_client/v2/models/events_list_response.rb index 1b224cfb510c..040f3ff47b69 100644 --- a/lib/datadog_api_client/v2/models/events_list_response.rb +++ b/lib/datadog_api_client/v2/models/events_list_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_list_response_links.rb b/lib/datadog_api_client/v2/models/events_list_response_links.rb index 13ff294fabfb..a021603b32d0 100644 --- a/lib/datadog_api_client/v2/models/events_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/events_list_response_links.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_query_filter.rb b/lib/datadog_api_client/v2/models/events_query_filter.rb index 46706821726a..e8b9e4d806ac 100644 --- a/lib/datadog_api_client/v2/models/events_query_filter.rb +++ b/lib/datadog_api_client/v2/models/events_query_filter.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_query_options.rb b/lib/datadog_api_client/v2/models/events_query_options.rb index d85720ab184f..e5d3f1726389 100644 --- a/lib/datadog_api_client/v2/models/events_query_options.rb +++ b/lib/datadog_api_client/v2/models/events_query_options.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_request_page.rb b/lib/datadog_api_client/v2/models/events_request_page.rb index 1b6f5ad84b39..4349dcdd5f9b 100644 --- a/lib/datadog_api_client/v2/models/events_request_page.rb +++ b/lib/datadog_api_client/v2/models/events_request_page.rb @@ -92,26 +92,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_response_metadata.rb b/lib/datadog_api_client/v2/models/events_response_metadata.rb index 4c007ca0ef8e..a41e08171692 100644 --- a/lib/datadog_api_client/v2/models/events_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/events_response_metadata.rb @@ -104,26 +104,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_response_metadata_page.rb b/lib/datadog_api_client/v2/models/events_response_metadata_page.rb index 04df9801e6ab..b70a9d9f2b10 100644 --- a/lib/datadog_api_client/v2/models/events_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/events_response_metadata_page.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_scalar_query.rb b/lib/datadog_api_client/v2/models/events_scalar_query.rb index 2888702dd55b..8e60159420b6 100644 --- a/lib/datadog_api_client/v2/models/events_scalar_query.rb +++ b/lib/datadog_api_client/v2/models/events_scalar_query.rb @@ -143,26 +143,6 @@ def data_source=(data_source) @data_source = data_source end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_search.rb b/lib/datadog_api_client/v2/models/events_search.rb index f1fbaa97ea28..b24a25ccb44b 100644 --- a/lib/datadog_api_client/v2/models/events_search.rb +++ b/lib/datadog_api_client/v2/models/events_search.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_timeseries_query.rb b/lib/datadog_api_client/v2/models/events_timeseries_query.rb index 170e84f6ac74..cc7ee20a6863 100644 --- a/lib/datadog_api_client/v2/models/events_timeseries_query.rb +++ b/lib/datadog_api_client/v2/models/events_timeseries_query.rb @@ -143,26 +143,6 @@ def data_source=(data_source) @data_source = data_source end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_warning.rb b/lib/datadog_api_client/v2/models/events_warning.rb index 3a4f81864029..e83821ad6a00 100644 --- a/lib/datadog_api_client/v2/models/events_warning.rb +++ b/lib/datadog_api_client/v2/models/events_warning.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb b/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb index 6b694ee2b605..3a3a93ffc30f 100644 --- a/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb @@ -94,26 +94,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_create_request.rb b/lib/datadog_api_client/v2/models/fastly_account_create_request.rb index 59385202ec09..98c6154ab3df 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb index 27f9da67abeb..637a26ec67e7 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb @@ -114,26 +114,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb b/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb index 8edce0b13053..e5f6d4c21cfc 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_response.rb b/lib/datadog_api_client/v2/models/fastly_account_response.rb index ebc6d0bb8866..5fe6d0edd206 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_response_data.rb b/lib/datadog_api_client/v2/models/fastly_account_response_data.rb index 60e33cb8cca7..c008de392dff 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_response_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_update_request.rb b/lib/datadog_api_client/v2/models/fastly_account_update_request.rb index c6ec1a5b9682..8f5ff98fc54f 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb index feb7122ef2f6..51b71dd5354c 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb b/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb index 2f29ab825a33..e7ae4d25eebc 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_accounts_response.rb b/lib/datadog_api_client/v2/models/fastly_accounts_response.rb index fb6021b2aede..33fe4f0f321a 100644 --- a/lib/datadog_api_client/v2/models/fastly_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_accounts_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service.rb b/lib/datadog_api_client/v2/models/fastly_service.rb index 7fccc9c232dc..8cea2018056f 100644 --- a/lib/datadog_api_client/v2/models/fastly_service.rb +++ b/lib/datadog_api_client/v2/models/fastly_service.rb @@ -94,26 +94,6 @@ def id=(id) @id = id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service_attributes.rb b/lib/datadog_api_client/v2/models/fastly_service_attributes.rb index 187e61437af3..b83c9ec7209b 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_attributes.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service_data.rb b/lib/datadog_api_client/v2/models/fastly_service_data.rb index ea5f931d7748..0348c1c0e4bb 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_data.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service_request.rb b/lib/datadog_api_client/v2/models/fastly_service_request.rb index fe41a367b87c..8ed114561393 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_request.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service_response.rb b/lib/datadog_api_client/v2/models/fastly_service_response.rb index d5b8be80e55e..58f92ca392fc 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_services_response.rb b/lib/datadog_api_client/v2/models/fastly_services_response.rb index 4d01ad2f61b8..3d5abfdf145e 100644 --- a/lib/datadog_api_client/v2/models/fastly_services_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_services_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/finding.rb b/lib/datadog_api_client/v2/models/finding.rb index 77a6175518d5..0740b8851f93 100644 --- a/lib/datadog_api_client/v2/models/finding.rb +++ b/lib/datadog_api_client/v2/models/finding.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/finding_attributes.rb b/lib/datadog_api_client/v2/models/finding_attributes.rb index 6b3e38fa137f..7da17f76558d 100644 --- a/lib/datadog_api_client/v2/models/finding_attributes.rb +++ b/lib/datadog_api_client/v2/models/finding_attributes.rb @@ -168,26 +168,6 @@ def resource_discovery_date=(resource_discovery_date) @resource_discovery_date = resource_discovery_date end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/finding_mute.rb b/lib/datadog_api_client/v2/models/finding_mute.rb index 6bfaf7c4376d..ce99eefcd1f9 100644 --- a/lib/datadog_api_client/v2/models/finding_mute.rb +++ b/lib/datadog_api_client/v2/models/finding_mute.rb @@ -105,6 +105,22 @@ def initialize(attributes = {}) self.uuid = attributes[:'uuid'] end end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/finding_rule.rb b/lib/datadog_api_client/v2/models/finding_rule.rb index 9b615dd03d7c..82a0b093b487 100644 --- a/lib/datadog_api_client/v2/models/finding_rule.rb +++ b/lib/datadog_api_client/v2/models/finding_rule.rb @@ -69,6 +69,22 @@ def initialize(attributes = {}) self.name = attributes[:'name'] end end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/formula_limit.rb b/lib/datadog_api_client/v2/models/formula_limit.rb index 314b7fc4fda5..88837e7a0422 100644 --- a/lib/datadog_api_client/v2/models/formula_limit.rb +++ b/lib/datadog_api_client/v2/models/formula_limit.rb @@ -93,26 +93,6 @@ def count=(count) @count = count end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/full_api_key.rb b/lib/datadog_api_client/v2/models/full_api_key.rb index cd25da51b863..c220bf6d941e 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb index c038b2f464d9..a69dc93fd0d8 100644 --- a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb @@ -141,26 +141,6 @@ def last4=(last4) @last4 = last4 end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/full_application_key.rb b/lib/datadog_api_client/v2/models/full_application_key.rb index 84e4615338f9..1cbf3ef127fe 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/full_application_key_attributes.rb b/lib/datadog_api_client/v2/models/full_application_key_attributes.rb index 80ddb5fd6f7d..6f37f7eee7f5 100644 --- a/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/full_application_key_attributes.rb @@ -133,26 +133,6 @@ def last4=(last4) @last4 = last4 end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb b/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb index 424257e0b1f0..fec3dd56be6b 100644 --- a/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb +++ b/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb b/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb index 8bca046b99bc..c317e9235407 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb index 899a40e10dd4..1879065807c2 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb index 4aec31aaf0a0..71e9a6524dcc 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account.rb index 16e73902bbf5..79a1a41a104e 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb index 09ff55cf1b27..e08ecf7a904d 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb @@ -135,26 +135,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb index 1f33b6c865b4..169d9a821bdf 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb index 614c11d47405..0eb3b9ea9fa8 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb index cc47a748b5a3..aae61e0deaa1 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb index 0de8c16e0819..b4be40de3390 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb index 0738a0111d4f..9001622dcc9b 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb b/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb index ae5771f5ea2e..075f27d5eadc 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_device_attributes.rb b/lib/datadog_api_client/v2/models/get_device_attributes.rb index a8c273fdc6df..a4e5dcc4321f 100644 --- a/lib/datadog_api_client/v2/models/get_device_attributes.rb +++ b/lib/datadog_api_client/v2/models/get_device_attributes.rb @@ -229,26 +229,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_device_data.rb b/lib/datadog_api_client/v2/models/get_device_data.rb index ad2e21a75292..4b5300aab99e 100644 --- a/lib/datadog_api_client/v2/models/get_device_data.rb +++ b/lib/datadog_api_client/v2/models/get_device_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_device_response.rb b/lib/datadog_api_client/v2/models/get_device_response.rb index aaf23bc83808..49cfdc04ffde 100644 --- a/lib/datadog_api_client/v2/models/get_device_response.rb +++ b/lib/datadog_api_client/v2/models/get_device_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_finding_response.rb b/lib/datadog_api_client/v2/models/get_finding_response.rb index 8b562597e9fd..cee0b7223b23 100644 --- a/lib/datadog_api_client/v2/models/get_finding_response.rb +++ b/lib/datadog_api_client/v2/models/get_finding_response.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_interfaces_data.rb b/lib/datadog_api_client/v2/models/get_interfaces_data.rb index a26bab77a5ab..4f9e809efdd6 100644 --- a/lib/datadog_api_client/v2/models/get_interfaces_data.rb +++ b/lib/datadog_api_client/v2/models/get_interfaces_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_interfaces_response.rb b/lib/datadog_api_client/v2/models/get_interfaces_response.rb index da84a5806274..fbda342cf006 100644 --- a/lib/datadog_api_client/v2/models/get_interfaces_response.rb +++ b/lib/datadog_api_client/v2/models/get_interfaces_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/group_scalar_column.rb b/lib/datadog_api_client/v2/models/group_scalar_column.rb index 3624e9eeb44b..a01a21357c40 100644 --- a/lib/datadog_api_client/v2/models/group_scalar_column.rb +++ b/lib/datadog_api_client/v2/models/group_scalar_column.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage.rb b/lib/datadog_api_client/v2/models/hourly_usage.rb index 71e7fcbfffce..d688dd9be1af 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb b/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb index 9b49bc0c1c85..1a4685eb3f72 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb @@ -130,26 +130,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb b/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb index d3e5dc0f596c..484887fbfcb4 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb @@ -82,26 +82,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb b/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb index e602e13e6e1c..d5b7d1f743b7 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb b/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb index 883089974a2d..b73c0c528dc7 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb @@ -73,26 +73,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_response.rb b/lib/datadog_api_client/v2/models/hourly_usage_response.rb index 84dbc1412fb5..b4639caf7fba 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_response.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/http_log_error.rb b/lib/datadog_api_client/v2/models/http_log_error.rb index b165533579fd..c0ddce229941 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/http_log_errors.rb b/lib/datadog_api_client/v2/models/http_log_errors.rb index a47d709b0ac8..880303b1565e 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/http_log_item.rb b/lib/datadog_api_client/v2/models/http_log_item.rb index 38e4c04a9612..32a92c27366e 100644 --- a/lib/datadog_api_client/v2/models/http_log_item.rb +++ b/lib/datadog_api_client/v2/models/http_log_item.rb @@ -125,26 +125,6 @@ def message=(message) @message = message end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/httpci_app_error.rb b/lib/datadog_api_client/v2/models/httpci_app_error.rb index d5ee23375685..8558179f4fb3 100644 --- a/lib/datadog_api_client/v2/models/httpci_app_error.rb +++ b/lib/datadog_api_client/v2/models/httpci_app_error.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/httpci_app_errors.rb b/lib/datadog_api_client/v2/models/httpci_app_errors.rb index db313b56ffde..b67ee6358e5b 100644 --- a/lib/datadog_api_client/v2/models/httpci_app_errors.rb +++ b/lib/datadog_api_client/v2/models/httpci_app_errors.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb b/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb index 2766275a9a88..e8136103cf62 100644 --- a/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb +++ b/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_data.rb b/lib/datadog_api_client/v2/models/incident_attachment_data.rb index 771dbae9acea..054315e4225f 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_data.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_data.rb @@ -143,26 +143,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb index b69df29b0d86..7585d0016f69 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb @@ -112,26 +112,6 @@ def attachment_type=(attachment_type) @attachment_type = attachment_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb index e3acd333f349..ad82450ecedd 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb @@ -103,26 +103,6 @@ def title=(title) @title = title end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb b/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb index a1f980470c0b..94afb6a9a1db 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb @@ -103,26 +103,6 @@ def attachment_type=(attachment_type) @attachment_type = attachment_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb b/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb index 7a6bb9614987..21f275e97650 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb b/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb index 1b77406e790e..983d87c3d4c9 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb b/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb index 5311d24a8578..4e79d42219f2 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb @@ -88,26 +88,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb b/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb index 406fdad425af..9d6f49f6a48f 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb @@ -97,26 +97,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb b/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb index 979d5b96ac05..967899925842 100644 --- a/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +++ b/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb @@ -103,26 +103,6 @@ def title=(title) @title = title end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachments_response.rb b/lib/datadog_api_client/v2/models/incident_attachments_response.rb index 10998f76eeda..ffe2a59f0671 100644 --- a/lib/datadog_api_client/v2/models/incident_attachments_response.rb +++ b/lib/datadog_api_client/v2/models/incident_attachments_response.rb @@ -96,26 +96,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_create_attributes.rb index a71b9c580151..bb3cfbe9e137 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -143,26 +143,6 @@ def title=(title) @title = title end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_create_data.rb b/lib/datadog_api_client/v2/models/incident_create_data.rb index b87d3daa9934..5be5f1b48b8c 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_create_relationships.rb b/lib/datadog_api_client/v2/models/incident_create_relationships.rb index 4c85d45026f0..590bc86c8db3 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -73,26 +73,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_create_request.rb b/lib/datadog_api_client/v2/models/incident_create_request.rb index 412402ae85af..afd69cd1e039 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb index 328eb8fe7c35..e56cd84c360f 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb @@ -84,26 +84,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb index c1229870cbbd..7eab371dd540 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb @@ -82,26 +82,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb index ed48d8fb95b4..a271d9defdcb 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb @@ -157,26 +157,6 @@ def status=(status) @status = status end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb index c7b308bd7838..3a7b5337a207 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb index a1d9837bacf3..ce412b9c937e 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb index b1c8ee6647f7..dc827b63e926 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb @@ -105,26 +105,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb index 0ded517d8eed..21fdfcf4a50c 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb index 3275537cbdfb..48cd1c9246c4 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb index c139ab14c439..81f53d70d97f 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb @@ -94,26 +94,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb index dcdf2d5a8891..f01c6744b087 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_relationships.rb b/lib/datadog_api_client/v2/models/incident_integration_relationships.rb index fed14643480b..a8533a8aef65 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb b/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb index 150c7d603b7f..b72e706bc09e 100644 --- a/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb +++ b/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_notification_handle.rb b/lib/datadog_api_client/v2/models/incident_notification_handle.rb index f0cffab69227..23b69053ce1d 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index 7ebcf26be734..df6ef86c8356 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -94,26 +94,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_response_attributes.rb index d4d9ceb9f3af..f701d69196f3 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -303,26 +303,6 @@ def title=(title) @title = title end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_data.rb b/lib/datadog_api_client/v2/models/incident_response_data.rb index 23af292694fc..10f249298a52 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_meta.rb b/lib/datadog_api_client/v2/models/incident_response_meta.rb index 72dd4566e8f3..91477ee8b0d5 100644 --- a/lib/datadog_api_client/v2/models/incident_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb index 8b7e724c629e..2a468658a195 100644 --- a/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_relationships.rb b/lib/datadog_api_client/v2/models/incident_response_relationships.rb index 7d4d920a5af5..0b9cbf30697b 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -136,26 +136,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response.rb b/lib/datadog_api_client/v2/models/incident_search_response.rb index efc1ec9b2fca..db0e774555a7 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response.rb @@ -103,26 +103,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb index 382ecf1f92f7..27327ca2f20a 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb @@ -129,26 +129,6 @@ def total=(total) @total = total end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_data.rb index 05c78f03dbb7..6a7211bc8ea6 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb index 73f1711b52c0..d98ff48e5c25 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb @@ -177,26 +177,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb index 2d5c4c327932..8608da941949 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb @@ -92,26 +92,6 @@ def count=(count) @count = count end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb index 033ecd274814..d2f04ade67fc 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_meta.rb b/lib/datadog_api_client/v2/models/incident_search_response_meta.rb index b6be7dd00f93..d76fdd7f0d36 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb index b6dc9dec7376..04ddc313329b 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb @@ -103,26 +103,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb index cbb63e344266..5b2fc6aa1c03 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb index 88b2be4562e4..4b8963c29698 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb @@ -114,26 +114,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb index 4a99ee5856c0..2ddc3d49911e 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb @@ -119,26 +119,6 @@ def count=(count) @count = count end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb index f99c18020114..e26b9b83c949 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb @@ -83,26 +83,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_create_data.rb b/lib/datadog_api_client/v2/models/incident_service_create_data.rb index f16977fc1be3..cf2b9af8a06f 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_data.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_create_request.rb b/lib/datadog_api_client/v2/models/incident_service_create_request.rb index b7b063e01bd0..fa2c05287982 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_relationships.rb b/lib/datadog_api_client/v2/models/incident_service_relationships.rb index f4b2e60e9b43..4426619f151a 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_response.rb b/lib/datadog_api_client/v2/models/incident_service_response.rb index 03645c4306b1..500c37458a82 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -94,26 +94,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb index a9779cce538c..953b9a8e7f40 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_response_data.rb b/lib/datadog_api_client/v2/models/incident_service_response_data.rb index 5d525d32b7c3..80d3763fabde 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response_data.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb index 868d2a468c09..58c7eaf10d2d 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb @@ -83,26 +83,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_update_data.rb b/lib/datadog_api_client/v2/models/incident_service_update_data.rb index 87c5a3d70eba..5b047abd6a11 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_data.rb @@ -110,26 +110,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_update_request.rb b/lib/datadog_api_client/v2/models/incident_service_update_request.rb index 7923f4a46823..a4c60708448c 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_services_response.rb b/lib/datadog_api_client/v2/models/incident_services_response.rb index 2c8f3b530a08..ba757fd9c446 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -105,26 +105,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb index ceedc7d328a6..5bb8e8d4276a 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb @@ -83,26 +83,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_create_data.rb b/lib/datadog_api_client/v2/models/incident_team_create_data.rb index c3b812e7e206..c87c36e127ed 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_data.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_create_request.rb b/lib/datadog_api_client/v2/models/incident_team_create_request.rb index 535d7a64f437..7e44322629ac 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_relationships.rb b/lib/datadog_api_client/v2/models/incident_team_relationships.rb index b94c2da84db3..d9b3eec371ec 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_response.rb b/lib/datadog_api_client/v2/models/incident_team_response.rb index 58b9b81f1507..cac7d8348893 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -94,26 +94,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb index 606514e7f361..d639ff6fc091 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_response_data.rb b/lib/datadog_api_client/v2/models/incident_team_response_data.rb index 1c015649bfde..5a4c8ac1fc9c 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response_data.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb index 268926f7b094..d44a6a8c2609 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb @@ -83,26 +83,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_update_data.rb b/lib/datadog_api_client/v2/models/incident_team_update_data.rb index 435c5a3a3a2b..ae58374ac538 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_data.rb @@ -110,26 +110,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_update_request.rb b/lib/datadog_api_client/v2/models/incident_team_update_request.rb index 00ef374c6d76..569bd568caf4 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_teams_response.rb b/lib/datadog_api_client/v2/models/incident_teams_response.rb index 13c027ffcb96..e4a5632e8566 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -105,26 +105,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb index a1af65674a46..d37bb8e30ceb 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb @@ -112,26 +112,6 @@ def content=(content) @content = content end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb index 0ea3f4045133..89ecda9b063b 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb b/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb index abbaab0f9d9b..6256766b481c 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb @@ -143,26 +143,6 @@ def source=(source) @source = source end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_attributes.rb b/lib/datadog_api_client/v2/models/incident_todo_attributes.rb index e822c67892b8..28b09ee04ee1 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_attributes.rb @@ -159,26 +159,6 @@ def content=(content) @content = content end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_create_data.rb b/lib/datadog_api_client/v2/models/incident_todo_create_data.rb index 31883a848c28..cbf1bc28ba51 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_create_request.rb b/lib/datadog_api_client/v2/models/incident_todo_create_request.rb index b1c36148ab77..75676318af37 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_list_response.rb b/lib/datadog_api_client/v2/models/incident_todo_list_response.rb index e7746e4baf3e..ae1b4089b686 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_list_response.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_list_response.rb @@ -105,26 +105,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb b/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb index 16697eb7ac7b..9ed715b7c105 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb b/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb index 01844afcd706..47148686ac1e 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_relationships.rb b/lib/datadog_api_client/v2/models/incident_todo_relationships.rb index cd84592387d1..8071b3a8ae99 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_response.rb b/lib/datadog_api_client/v2/models/incident_todo_response.rb index d65091af9a8b..d66231790f16 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_response.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_response.rb @@ -94,26 +94,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_response_data.rb b/lib/datadog_api_client/v2/models/incident_todo_response_data.rb index 38b94f5b9d73..1e315617b9bb 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_response_data.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_update_attributes.rb index 512ae5d94e1d..283993ca448c 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -140,26 +140,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_update_data.rb b/lib/datadog_api_client/v2/models/incident_update_data.rb index c87b3da847d2..dfe1fdb7f274 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_update_relationships.rb b/lib/datadog_api_client/v2/models/incident_update_relationships.rb index e787b83ce937..0140faf4e99a 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -91,26 +91,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_update_request.rb b/lib/datadog_api_client/v2/models/incident_update_request.rb index e8ff7c3c89d8..d0d2a3c80f3a 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index 9e7d5fe83755..8d34cfb63536 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -105,26 +105,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/intake_payload_accepted.rb b/lib/datadog_api_client/v2/models/intake_payload_accepted.rb index 62f964664f1f..6964c48f4c59 100644 --- a/lib/datadog_api_client/v2/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v2/models/intake_payload_accepted.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/interface_attributes.rb b/lib/datadog_api_client/v2/models/interface_attributes.rb index fab7b299e0f4..5461ddf9a2e9 100644 --- a/lib/datadog_api_client/v2/models/interface_attributes.rb +++ b/lib/datadog_api_client/v2/models/interface_attributes.rb @@ -110,26 +110,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb b/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb index 0c3aa6f29c16..7cf3502aac73 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_data.rb b/lib/datadog_api_client/v2/models/ip_allowlist_data.rb index a80a7924bc07..d381b4314f52 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_data.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_data.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb b/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb index d21f92889ed6..8c3a1dc6e625 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb b/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb index e9b02fe99151..bf972d372cd3 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb b/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb index e4d2e66ff17d..d2a9d6dcf1ac 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_response.rb b/lib/datadog_api_client/v2/models/ip_allowlist_response.rb index 7de1c61d5896..62545e159217 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_response.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb b/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb index a608f7090f05..1f97da214d9e 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jira_integration_metadata.rb b/lib/datadog_api_client/v2/models/jira_integration_metadata.rb index 88e802588c37..be68fcda254f 100644 --- a/lib/datadog_api_client/v2/models/jira_integration_metadata.rb +++ b/lib/datadog_api_client/v2/models/jira_integration_metadata.rb @@ -85,26 +85,6 @@ def issues=(issues) @issues = issues end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb b/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb index d5510a211185..324377db9d06 100644 --- a/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb +++ b/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb @@ -130,26 +130,6 @@ def project_key=(project_key) @project_key = project_key end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jira_issue.rb b/lib/datadog_api_client/v2/models/jira_issue.rb index 5e0cc247580c..a47a93a07565 100644 --- a/lib/datadog_api_client/v2/models/jira_issue.rb +++ b/lib/datadog_api_client/v2/models/jira_issue.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jira_issue_result.rb b/lib/datadog_api_client/v2/models/jira_issue_result.rb index 839def28f592..aa275c5d12e0 100644 --- a/lib/datadog_api_client/v2/models/jira_issue_result.rb +++ b/lib/datadog_api_client/v2/models/jira_issue_result.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jsonapi_error_item.rb b/lib/datadog_api_client/v2/models/jsonapi_error_item.rb index 20986088d5c3..1675773dcb4c 100644 --- a/lib/datadog_api_client/v2/models/jsonapi_error_item.rb +++ b/lib/datadog_api_client/v2/models/jsonapi_error_item.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jsonapi_error_response.rb b/lib/datadog_api_client/v2/models/jsonapi_error_response.rb index 6e9651aa97b0..fdf1759e4aa0 100644 --- a/lib/datadog_api_client/v2/models/jsonapi_error_response.rb +++ b/lib/datadog_api_client/v2/models/jsonapi_error_response.rb @@ -85,26 +85,6 @@ def errors=(errors) @errors = errors end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/leaked_key.rb b/lib/datadog_api_client/v2/models/leaked_key.rb index 9461782c78a1..b2e5447d6fe7 100644 --- a/lib/datadog_api_client/v2/models/leaked_key.rb +++ b/lib/datadog_api_client/v2/models/leaked_key.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/leaked_key_attributes.rb b/lib/datadog_api_client/v2/models/leaked_key_attributes.rb index 4cb28da03ac5..3c981bfb61d1 100644 --- a/lib/datadog_api_client/v2/models/leaked_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/leaked_key_attributes.rb @@ -92,26 +92,6 @@ def date=(date) @date = date end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response.rb b/lib/datadog_api_client/v2/models/list_apis_response.rb index b321e777fbce..8148868df2cd 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response_data.rb b/lib/datadog_api_client/v2/models/list_apis_response_data.rb index a8d3d3f2d92a..f82807f76d03 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_data.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb b/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb index 24499d2a8c56..983a10426a0a 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response_meta.rb b/lib/datadog_api_client/v2/models/list_apis_response_meta.rb index 9e4e2ad4f660..610d1855e545 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_meta.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb index 6181153e921e..8da2e56a7b46 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_application_keys_response.rb b/lib/datadog_api_client/v2/models/list_application_keys_response.rb index 77acf50ece87..24a5557e497d 100644 --- a/lib/datadog_api_client/v2/models/list_application_keys_response.rb +++ b/lib/datadog_api_client/v2/models/list_application_keys_response.rb @@ -87,26 +87,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_devices_response.rb b/lib/datadog_api_client/v2/models/list_devices_response.rb index 23bf93313ea3..08235e5a7207 100644 --- a/lib/datadog_api_client/v2/models/list_devices_response.rb +++ b/lib/datadog_api_client/v2/models/list_devices_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb b/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb index fd0e2a20a7e4..c6d4d6a1b3fd 100644 --- a/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb b/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb index 5cf903fe637b..7c4e7621d897 100644 --- a/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_downtimes_response.rb b/lib/datadog_api_client/v2/models/list_downtimes_response.rb index 4349eaa91620..5cdb5161ec20 100644 --- a/lib/datadog_api_client/v2/models/list_downtimes_response.rb +++ b/lib/datadog_api_client/v2/models/list_downtimes_response.rb @@ -87,26 +87,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_findings_meta.rb b/lib/datadog_api_client/v2/models/list_findings_meta.rb index 661daf438d62..e35f4fbecffe 100644 --- a/lib/datadog_api_client/v2/models/list_findings_meta.rb +++ b/lib/datadog_api_client/v2/models/list_findings_meta.rb @@ -87,6 +87,22 @@ def snapshot_timestamp=(snapshot_timestamp) end @snapshot_timestamp = snapshot_timestamp end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/list_findings_page.rb b/lib/datadog_api_client/v2/models/list_findings_page.rb index a3bb6e436273..3211670bec30 100644 --- a/lib/datadog_api_client/v2/models/list_findings_page.rb +++ b/lib/datadog_api_client/v2/models/list_findings_page.rb @@ -69,6 +69,22 @@ def initialize(attributes = {}) self.total_filtered_count = attributes[:'total_filtered_count'] end end + # Returns the object in the form of hash without additionalProperties support + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/list_findings_response.rb b/lib/datadog_api_client/v2/models/list_findings_response.rb index d2831565e361..0a76abc9943c 100644 --- a/lib/datadog_api_client/v2/models/list_findings_response.rb +++ b/lib/datadog_api_client/v2/models/list_findings_response.rb @@ -105,26 +105,6 @@ def meta=(meta) @meta = meta end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_powerpacks_response.rb b/lib/datadog_api_client/v2/models/list_powerpacks_response.rb index 0a7b578017eb..6a12142d51e9 100644 --- a/lib/datadog_api_client/v2/models/list_powerpacks_response.rb +++ b/lib/datadog_api_client/v2/models/list_powerpacks_response.rb @@ -96,26 +96,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_rules_response.rb b/lib/datadog_api_client/v2/models/list_rules_response.rb index 444146cea09c..dfaacf989867 100644 --- a/lib/datadog_api_client/v2/models/list_rules_response.rb +++ b/lib/datadog_api_client/v2/models/list_rules_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb b/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb index 3246b75c6ae0..a35222c90233 100644 --- a/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb +++ b/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_rules_response_links.rb b/lib/datadog_api_client/v2/models/list_rules_response_links.rb index 0da42eb2fc50..ef05719f3ec3 100644 --- a/lib/datadog_api_client/v2/models/list_rules_response_links.rb +++ b/lib/datadog_api_client/v2/models/list_rules_response_links.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_tags_response.rb b/lib/datadog_api_client/v2/models/list_tags_response.rb index 165b8c929bb1..40c70877e42c 100644 --- a/lib/datadog_api_client/v2/models/list_tags_response.rb +++ b/lib/datadog_api_client/v2/models/list_tags_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_tags_response_data.rb b/lib/datadog_api_client/v2/models/list_tags_response_data.rb index 5f51b443b2b4..78f4d3eb3242 100644 --- a/lib/datadog_api_client/v2/models/list_tags_response_data.rb +++ b/lib/datadog_api_client/v2/models/list_tags_response_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb b/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb index 2b8ff8d8999f..3be2bd600c28 100644 --- a/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index 3e7741e47a26..2c42f04d42e5 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index 0ead271f7344..e04e64a672f0 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -125,26 +125,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb index ed3f673acc30..d6f9baf93974 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb index ac6a355ab90d..f075a3a795fa 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb index fbda2b8ea95a..685d659a8aa1 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -106,26 +106,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb b/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb index 466c5e7fe6dc..75b138823549 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb index f3f473842866..9a412424ae4c 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb index c134501e76bf..cb1b6be83b03 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb index 28d993d807e2..cd99665833eb 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index e90c25eb8395..dce3472f7ab6 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb index 7f926792fa8a..b3683b0ff284 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -160,26 +160,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request.rb index 7593255530dc..0c0834f8efcb 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb index 4bc705f1fbc0..f29728501e9c 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb @@ -161,26 +161,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb index 20f3a0d27a9b..f6c364a95b0d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb @@ -92,26 +92,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_definition.rb index 7d6711460c78..f6161e88c2b3 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb index ef38e7dfe4ea..fccd03a84203 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb @@ -161,26 +161,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb index 4703ef0fe9fa..cef9df2f4f28 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb @@ -132,26 +132,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb index 3da43b725834..5564b325e9c7 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb @@ -132,26 +132,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb index 7aaa1c2229d5..1a2099b9f2c2 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb @@ -103,26 +103,6 @@ def tenant_id=(tenant_id) @tenant_id = tenant_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb index bb570892796c..7d09157dd39f 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb @@ -92,26 +92,6 @@ def client_email=(client_email) @client_email = client_email end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb index dc805933788d..d8a9c0cf401f 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb @@ -103,26 +103,6 @@ def role_name=(role_name) @role_name = role_name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_order.rb b/lib/datadog_api_client/v2/models/logs_archive_order.rb index 2eb86fe1382d..334ac7a8e3ec 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb index d6d8ef6c88be..a992dda80355 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb @@ -86,26 +86,6 @@ def archive_ids=(archive_ids) @archive_ids = archive_ids end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb index e29f4edce297..4e4448c6f40b 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index 3a317a1384b5..2ed3ab2354eb 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index ea4413635cc9..5b09267f7902 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -111,26 +111,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_group_by.rb b/lib/datadog_api_client/v2/models/logs_group_by.rb index 47532cf0ee8c..5fc1b8fbee66 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -130,26 +130,6 @@ def facet=(facet) @facet = facet end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb b/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb index 42f10dadb9f2..165c364bd3c8 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb @@ -126,26 +126,6 @@ def min=(min) @min = min end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_list_request.rb b/lib/datadog_api_client/v2/models/logs_list_request.rb index d4d25125a353..d3070a83990a 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -93,26 +93,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_list_request_page.rb b/lib/datadog_api_client/v2/models/logs_list_request_page.rb index f96c6646ec54..33ebb40a060a 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request_page.rb @@ -92,26 +92,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_list_response.rb b/lib/datadog_api_client/v2/models/logs_list_response.rb index 396fde6e6065..75d4cfd99162 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_list_response_links.rb b/lib/datadog_api_client/v2/models/logs_list_response_links.rb index 89426a558899..f50ad79236cf 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response_links.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_compute.rb index b67c04bc25a5..77d29617ef77 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -102,26 +102,6 @@ def aggregation_type=(aggregation_type) @aggregation_type = aggregation_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb index 7068321a7eb8..6012d33e4b5c 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb @@ -103,26 +103,6 @@ def compute=(compute) @compute = compute end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_data.rb b/lib/datadog_api_client/v2/models/logs_metric_create_data.rb index 9e48db58c5df..6e6e3c665c18 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_request.rb b/lib/datadog_api_client/v2/models/logs_metric_create_request.rb index 6fccdd1b530a..8a2b8a9720f8 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_request.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_filter.rb b/lib/datadog_api_client/v2/models/logs_metric_filter.rb index 88c624061a68..67688cb751fe 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_group_by.rb b/lib/datadog_api_client/v2/models/logs_metric_group_by.rb index 372e1963049d..cafad7b07013 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_group_by.rb @@ -92,26 +92,6 @@ def path=(path) @path = path end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response.rb b/lib/datadog_api_client/v2/models/logs_metric_response.rb index f3b8450460a6..82a588b966d2 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb index 54c7fe792326..4e18da3b14ce 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb index b43708c7cc2f..8424e5abf0c7 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb @@ -84,26 +84,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_data.rb b/lib/datadog_api_client/v2/models/logs_metric_response_data.rb index d8d948183f7e..d5ddb5bd7bea 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb b/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb index 74eeb71d1aea..168fe895a2c8 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb b/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb index 36480a12701f..9821255bf4e9 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb index 9f6c7df29c60..de408636af45 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb index 47042092173b..5df668c1b0d4 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_data.rb b/lib/datadog_api_client/v2/models/logs_metric_update_data.rb index 8691f115a47c..4d248898e5a3 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_request.rb b/lib/datadog_api_client/v2/models/logs_metric_update_request.rb index 2ec0ee5d18f6..0932b43e0942 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_request.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metrics_response.rb b/lib/datadog_api_client/v2/models/logs_metrics_response.rb index 7bb1f58fd83e..3cf54e85057c 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_query_filter.rb b/lib/datadog_api_client/v2/models/logs_query_filter.rb index 206fe3982fe1..320bfff997b9 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -103,26 +103,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_query_options.rb b/lib/datadog_api_client/v2/models/logs_query_options.rb index 31ea1a71e673..cdce0b174c1a 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_response_metadata.rb b/lib/datadog_api_client/v2/models/logs_response_metadata.rb index 47bddc2b7224..be2767a45b5d 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -104,26 +104,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb b/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb index 3eaf3a778d51..9efe66abccff 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index 9293533c7f6f..fa76bf720bf1 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index 2603080317c5..a41644c9c1b2 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_all_tags.rb b/lib/datadog_api_client/v2/models/metric_all_tags.rb index cea3b2611bbd..ef4637026c97 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb b/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb index 9e5f7824c115..8a477cbe17d4 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_all_tags_response.rb b/lib/datadog_api_client/v2/models/metric_all_tags_response.rb index b0bf6f70c583..ffcd0fd5be4e 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags_response.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb index ebbc04f67b82..d995b50165ea 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb index 77b445c39024..8be19a1a7e69 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb index b95048faef74..32bf4387786a 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb index e4f59668f390..f62c21e5f218 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb index df0a5baa95d5..6dfbd7c681f6 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb index 2860f78c97a9..d2893cb8674b 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb index 59ceadff7d4b..b76e62bb0889 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_response_data.rb b/lib/datadog_api_client/v2/models/metric_asset_response_data.rb index 9f2e48a3e72b..088380dc179e 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_response_data.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_response_data.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb index cc98efa329d7..a58bab08c01e 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb index 0f12bd4fc772..33279f8f3d3d 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb index 088778500e4b..6d4c12df5d7d 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_assets_response.rb b/lib/datadog_api_client/v2/models/metric_assets_response.rb index 197eee8c11e5..909a309b98f1 100644 --- a/lib/datadog_api_client/v2/models/metric_assets_response.rb +++ b/lib/datadog_api_client/v2/models/metric_assets_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb index 065e3857a781..6323563734d2 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb index dd87cace3cd0..54d268bf662a 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb @@ -89,26 +89,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb index 68fbdb5d9937..ead055567438 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb index 06844b0f3f90..7faacf8472d3 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb index c57429754b3b..f3cb712a876c 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb index 727a0ffa138f..24f068e1f22a 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb index 4d9d06d338f4..b43ce74237f1 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb index be008570a176..ad010e89f5c3 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb @@ -113,26 +113,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb index e5627a997666..e4381b6c1c8d 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb @@ -97,26 +97,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb index b504661b5398..c8fed2834456 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -103,26 +103,6 @@ def time=(time) @time = time end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb b/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb index a3abcde1c3df..df82a00f9df7 100644 --- a/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb b/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb index 066e0f4fab80..34adb5a0633b 100644 --- a/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb @@ -96,26 +96,6 @@ def popularity=(popularity) @popularity = popularity end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb index 7c2988a491e6..843f88dc6652 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb index da1f3622cb6c..693bd1580d60 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_estimate.rb b/lib/datadog_api_client/v2/models/metric_estimate.rb index 6fd4365cfb6a..199411c4268b 100644 --- a/lib/datadog_api_client/v2/models/metric_estimate.rb +++ b/lib/datadog_api_client/v2/models/metric_estimate.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb b/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb index 1b014794beb0..ee411935826e 100644 --- a/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_estimate_response.rb b/lib/datadog_api_client/v2/models/metric_estimate_response.rb index 48a3b5cf0c79..b44206ceca98 100644 --- a/lib/datadog_api_client/v2/models/metric_estimate_response.rb +++ b/lib/datadog_api_client/v2/models/metric_estimate_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb index 11441c2fad1d..dc109dab7508 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb index 5746d66c8d32..49838e7568a4 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_metadata.rb b/lib/datadog_api_client/v2/models/metric_metadata.rb index d441501f4745..6c351fd286c7 100644 --- a/lib/datadog_api_client/v2/models/metric_metadata.rb +++ b/lib/datadog_api_client/v2/models/metric_metadata.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb index 27af1af69127..904d9102821a 100644 --- a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb index cdc6c4c17668..ba10bd1af968 100644 --- a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_origin.rb b/lib/datadog_api_client/v2/models/metric_origin.rb index 74ed1facea51..d0b72ac9e1ce 100644 --- a/lib/datadog_api_client/v2/models/metric_origin.rb +++ b/lib/datadog_api_client/v2/models/metric_origin.rb @@ -123,26 +123,6 @@ def service=(service) @service = service end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_payload.rb b/lib/datadog_api_client/v2/models/metric_payload.rb index 9f726ab051aa..83e359d173b6 100644 --- a/lib/datadog_api_client/v2/models/metric_payload.rb +++ b/lib/datadog_api_client/v2/models/metric_payload.rb @@ -85,26 +85,6 @@ def series=(series) @series = series end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_point.rb b/lib/datadog_api_client/v2/models/metric_point.rb index 28bf2d9de1d3..da6cd844374a 100644 --- a/lib/datadog_api_client/v2/models/metric_point.rb +++ b/lib/datadog_api_client/v2/models/metric_point.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_resource.rb b/lib/datadog_api_client/v2/models/metric_resource.rb index 7d2435bc0e76..015645b88d6d 100644 --- a/lib/datadog_api_client/v2/models/metric_resource.rb +++ b/lib/datadog_api_client/v2/models/metric_resource.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_series.rb b/lib/datadog_api_client/v2/models/metric_series.rb index 3ac88a526c53..e557bc94f2d0 100644 --- a/lib/datadog_api_client/v2/models/metric_series.rb +++ b/lib/datadog_api_client/v2/models/metric_series.rb @@ -173,26 +173,6 @@ def points=(points) @points = points end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_slo_asset.rb b/lib/datadog_api_client/v2/models/metric_slo_asset.rb index 617c223ff578..1aafbc331aaf 100644 --- a/lib/datadog_api_client/v2/models/metric_slo_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_slo_asset.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb index 54db2a0c41e1..23ff44b6669e 100644 --- a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb +++ b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb index 98571d229250..31ff3d6b20df 100644 --- a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb +++ b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb b/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb index bd0f9c27a944..822204567d19 100644 --- a/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb index cff18367f3c8..ab4ae9b61f66 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb index 59154b0d5973..aa4fce31f2f7 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb @@ -141,26 +141,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb index eee27d56415d..e70aa9cf80b2 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb @@ -152,26 +152,6 @@ def tags=(tags) @tags = tags end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb index 2ffc94fff8e7..2870b9cff110 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb index aaae38173e18..1bc7a6b593bc 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb index 686b0b6701b8..caabfdb39a2b 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb index 09a40ecbce0f..c4d8224167b6 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb @@ -114,26 +114,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb index 08aacf00095d..e0f2f506ce45 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb index 2068820e2ad7..b5dff6d364a4 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_volumes_response.rb b/lib/datadog_api_client/v2/models/metric_volumes_response.rb index eaf03f10c449..da9859e67343 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb index 665a63af240e..756701d5e758 100644 --- a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb +++ b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metrics_scalar_query.rb b/lib/datadog_api_client/v2/models/metrics_scalar_query.rb index c8b52d116a3e..a4b7a6df6959 100644 --- a/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +++ b/lib/datadog_api_client/v2/models/metrics_scalar_query.rb @@ -132,26 +132,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb b/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb index 0c2212647c03..78939c22e58e 100644 --- a/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb +++ b/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb @@ -112,26 +112,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb index b908fdb03cea..8431c517fe09 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb @@ -103,26 +103,6 @@ def policy_type=(policy_type) @policy_type = policy_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb index f16bcdfef208..4bb46d8f5fa2 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb @@ -103,26 +103,6 @@ def policy_type=(policy_type) @policy_type = policy_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb index 4d44fef542e2..8abaa427aa85 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb index a2cdeaf5dedc..b0bb8d385fb6 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb index b876d4e038f9..6a6e49bd8029 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb index 6bb811b0a186..f72e85362e90 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb index 94397121a82c..13ba5ba32659 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb index 98602be75fea..bc560cb60dcd 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb index 88bc23210577..6f42e3b9ae3c 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb index 152fcef35f03..4eb56cbbcd02 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb index b2de29703b12..cf7d54279ce0 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb @@ -103,26 +103,6 @@ def tag_key=(tag_key) @tag_key = tag_key end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb index c84c0d5eca0c..2183092ac0db 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb @@ -129,26 +129,6 @@ def valid_tag_values=(valid_tag_values) @valid_tag_values = valid_tag_values end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb b/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb index e483eb8c6ba0..a6dfc343bf52 100644 --- a/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb index 718f8c40f959..6f9c97be1884 100644 --- a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb @@ -102,26 +102,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb index 8308aa2401c6..e00bd9420b10 100644 --- a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb @@ -91,26 +91,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_type.rb b/lib/datadog_api_client/v2/models/monitor_type.rb index 3c7780c52ea7..ecf255865596 100644 --- a/lib/datadog_api_client/v2/models/monitor_type.rb +++ b/lib/datadog_api_client/v2/models/monitor_type.rb @@ -177,26 +177,6 @@ def group_status=(group_status) @group_status = group_status end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb index 456caaa7f6be..44c964f50526 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb @@ -130,26 +130,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb index f09bed6c751e..85a094b8a892 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb index 69e6a794d75e..9c1c50f31aed 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb index aa08a485f88a..a032b6950a44 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb @@ -73,26 +73,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb index c8f75d96a8ef..9be6e5bed36e 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb b/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb index 54d6af14db8f..f0b66badf526 100644 --- a/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb @@ -73,26 +73,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb b/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb index e555d470c5a6..1453d11f1da8 100644 --- a/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb +++ b/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/nullable_user_relationship.rb b/lib/datadog_api_client/v2/models/nullable_user_relationship.rb index 5ff16102b043..82920ab4ac07 100644 --- a/lib/datadog_api_client/v2/models/nullable_user_relationship.rb +++ b/lib/datadog_api_client/v2/models/nullable_user_relationship.rb @@ -73,26 +73,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb b/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb index 6e81ced20d13..0f82311c2450 100644 --- a/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb +++ b/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account.rb b/lib/datadog_api_client/v2/models/okta_account.rb index 3ee96f7231c6..377895264bf7 100644 --- a/lib/datadog_api_client/v2/models/okta_account.rb +++ b/lib/datadog_api_client/v2/models/okta_account.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_attributes.rb b/lib/datadog_api_client/v2/models/okta_account_attributes.rb index b8b5891225db..290e374c0230 100644 --- a/lib/datadog_api_client/v2/models/okta_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/okta_account_attributes.rb @@ -150,26 +150,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_request.rb b/lib/datadog_api_client/v2/models/okta_account_request.rb index 0c9e11600407..a6cee0962f46 100644 --- a/lib/datadog_api_client/v2/models/okta_account_request.rb +++ b/lib/datadog_api_client/v2/models/okta_account_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_response.rb b/lib/datadog_api_client/v2/models/okta_account_response.rb index ea7c2b0409b6..f5073b953a24 100644 --- a/lib/datadog_api_client/v2/models/okta_account_response.rb +++ b/lib/datadog_api_client/v2/models/okta_account_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_response_data.rb b/lib/datadog_api_client/v2/models/okta_account_response_data.rb index d7f55c48ebc2..dd99844315f0 100644 --- a/lib/datadog_api_client/v2/models/okta_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/okta_account_response_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_update_request.rb b/lib/datadog_api_client/v2/models/okta_account_update_request.rb index 37e1da80948d..bc8ed9d146cb 100644 --- a/lib/datadog_api_client/v2/models/okta_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/okta_account_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb index 85dfa4a538b8..f72dd1b1870b 100644 --- a/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb @@ -130,26 +130,6 @@ def domain=(domain) @domain = domain end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb b/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb index 409f8f98159b..d7c5add783d8 100644 --- a/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_accounts_response.rb b/lib/datadog_api_client/v2/models/okta_accounts_response.rb index c9ab9f681f7c..df53f0d974f8 100644 --- a/lib/datadog_api_client/v2/models/okta_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/okta_accounts_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb index 1b9bb913cb01..18cef5d7089a 100644 --- a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +++ b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb index a41651f8762d..ca91f6e9523b 100644 --- a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb +++ b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb index e759b6d1afcf..e1756ff19200 100644 --- a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb +++ b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/open_api_endpoint.rb b/lib/datadog_api_client/v2/models/open_api_endpoint.rb index 39d0120a1c19..f5d0cc2c9c0e 100644 --- a/lib/datadog_api_client/v2/models/open_api_endpoint.rb +++ b/lib/datadog_api_client/v2/models/open_api_endpoint.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/open_api_file.rb b/lib/datadog_api_client/v2/models/open_api_file.rb index 78dfdeeedc98..95f980909bf1 100644 --- a/lib/datadog_api_client/v2/models/open_api_file.rb +++ b/lib/datadog_api_client/v2/models/open_api_file.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb index 57cd06ef567f..be4cf5f1ade3 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb @@ -136,26 +136,6 @@ def region=(region) @region = region end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb b/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb index 18f0a0583693..8b2921a940ee 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb b/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb index 8c7f6b2b82f4..90bf043c393a 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response.rb index 6df3198bd84b..7af4205a108b 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb index 706592cf4890..4956bb9da1cd 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb @@ -118,26 +118,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb index e65546e63f3f..ad7a8a73ad70 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb @@ -131,26 +131,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb index cbce442b7af2..683384f85f75 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb @@ -118,26 +118,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb index c1af9eedaf86..c150c475b8be 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb @@ -131,26 +131,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb index 6b03b8b1ab5b..89da4c6e9f48 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_services_response.rb b/lib/datadog_api_client/v2/models/opsgenie_services_response.rb index d0c5a8e5c7e4..2dbb4cd8d01f 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_services_response.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_services_response.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_get_response.rb b/lib/datadog_api_client/v2/models/org_config_get_response.rb index fa9bc19f3821..00c06fa1966e 100644 --- a/lib/datadog_api_client/v2/models/org_config_get_response.rb +++ b/lib/datadog_api_client/v2/models/org_config_get_response.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_list_response.rb b/lib/datadog_api_client/v2/models/org_config_list_response.rb index 2f994daeaacc..57d6ab3947c0 100644 --- a/lib/datadog_api_client/v2/models/org_config_list_response.rb +++ b/lib/datadog_api_client/v2/models/org_config_list_response.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_read.rb b/lib/datadog_api_client/v2/models/org_config_read.rb index 8e80d7083907..cc989e89f3e3 100644 --- a/lib/datadog_api_client/v2/models/org_config_read.rb +++ b/lib/datadog_api_client/v2/models/org_config_read.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_read_attributes.rb b/lib/datadog_api_client/v2/models/org_config_read_attributes.rb index 37070861fa5c..3ed43c717fc0 100644 --- a/lib/datadog_api_client/v2/models/org_config_read_attributes.rb +++ b/lib/datadog_api_client/v2/models/org_config_read_attributes.rb @@ -160,26 +160,6 @@ def value_type=(value_type) @value_type = value_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_write.rb b/lib/datadog_api_client/v2/models/org_config_write.rb index b5e09d20f816..370f05d13435 100644 --- a/lib/datadog_api_client/v2/models/org_config_write.rb +++ b/lib/datadog_api_client/v2/models/org_config_write.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_write_attributes.rb b/lib/datadog_api_client/v2/models/org_config_write_attributes.rb index acbb4c13a3dd..f9ad0d1a84bd 100644 --- a/lib/datadog_api_client/v2/models/org_config_write_attributes.rb +++ b/lib/datadog_api_client/v2/models/org_config_write_attributes.rb @@ -83,26 +83,6 @@ def value=(value) @value = value end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_write_request.rb b/lib/datadog_api_client/v2/models/org_config_write_request.rb index 4e843733dde4..03876a80a37a 100644 --- a/lib/datadog_api_client/v2/models/org_config_write_request.rb +++ b/lib/datadog_api_client/v2/models/org_config_write_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 5726ef2b9e0f..e85e368a9568 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index 5f8fb0d87b12..4d1e7e6235df 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -128,26 +128,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb b/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb index 8fdfc9f770ac..1d40f6100cce 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_request.rb b/lib/datadog_api_client/v2/models/outcomes_batch_request.rb index 802c6923e45b..2d736c2d1aa7 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_request.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb b/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb index ad01144362ac..d376f369a657 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb b/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb index c363d8f115d2..ba2ba9d9a76e 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb @@ -132,26 +132,6 @@ def state=(state) @state = state end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_response.rb b/lib/datadog_api_client/v2/models/outcomes_batch_response.rb index b6d3ac04a363..48af9b870c65 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_response.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_response.rb @@ -105,26 +105,6 @@ def meta=(meta) @meta = meta end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb b/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb index 31daf1922e3e..257a4df9f518 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb b/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb index 5ea0818992ce..616cfdc7f6e8 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response.rb b/lib/datadog_api_client/v2/models/outcomes_response.rb index 6d7ae708773d..03bb1fb0f65c 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response.rb @@ -87,26 +87,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb b/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb index f70ee26cac16..2ab6a9d4443e 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb b/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb index 39fe4e1262c5..7d24b45ab740 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb b/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb index 18a0ac71b6bc..0b74cd7d5638 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response_links.rb b/lib/datadog_api_client/v2/models/outcomes_response_links.rb index c44f6a2bd30a..66780090cea5 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_links.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_links.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index 0666d289812f..d49305f7f531 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_api_key.rb b/lib/datadog_api_client/v2/models/partial_api_key.rb index 64a7120cb52e..64b9f972923d 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb index 030f6db1b590..43f7cf3d9ee6 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb @@ -132,26 +132,6 @@ def last4=(last4) @last4 = last4 end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_application_key.rb b/lib/datadog_api_client/v2/models/partial_application_key.rb index 5cc02c460156..d55008b82bfd 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb b/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb index 32916a42dc79..70ea3ef5ae35 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb @@ -124,26 +124,6 @@ def last4=(last4) @last4 = last4 end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_application_key_response.rb b/lib/datadog_api_client/v2/models/partial_application_key_response.rb index 68548e761d47..81663dfdeceb 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key_response.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index a14c44b676c1..0d99af4b6ea3 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index a60b488c3ed1..4bf3cc5f9b4a 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -119,26 +119,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index f3fa2f918f2e..4641460c8e23 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack.rb b/lib/datadog_api_client/v2/models/powerpack.rb index 316bf373d1dd..b1c592fe1e1e 100644 --- a/lib/datadog_api_client/v2/models/powerpack.rb +++ b/lib/datadog_api_client/v2/models/powerpack.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_attributes.rb b/lib/datadog_api_client/v2/models/powerpack_attributes.rb index aa145f9742e7..9c176d51bfec 100644 --- a/lib/datadog_api_client/v2/models/powerpack_attributes.rb +++ b/lib/datadog_api_client/v2/models/powerpack_attributes.rb @@ -145,26 +145,6 @@ def tags=(tags) @tags = tags end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_data.rb b/lib/datadog_api_client/v2/models/powerpack_data.rb index 03d27c72e948..a1f04ad8955b 100644 --- a/lib/datadog_api_client/v2/models/powerpack_data.rb +++ b/lib/datadog_api_client/v2/models/powerpack_data.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_group_widget.rb b/lib/datadog_api_client/v2/models/powerpack_group_widget.rb index 218f36a8eca9..969999759a0c 100644 --- a/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +++ b/lib/datadog_api_client/v2/models/powerpack_group_widget.rb @@ -101,26 +101,6 @@ def definition=(definition) @definition = definition end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb b/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb index f795f1225504..7b961ecf6cac 100644 --- a/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb +++ b/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb @@ -143,26 +143,6 @@ def widgets=(widgets) @widgets = widgets end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb b/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb index dd7e86b1257a..4199d18180db 100644 --- a/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb +++ b/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb @@ -159,26 +159,6 @@ def y=(y) @y = y end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb b/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb index 50ab168349d6..a4502a91bb69 100644 --- a/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb +++ b/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb @@ -159,26 +159,6 @@ def y=(y) @y = y end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb b/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb index 0ec826ce6b39..fe4e910bc24c 100644 --- a/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb +++ b/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb @@ -92,26 +92,6 @@ def definition=(definition) @definition = definition end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_relationships.rb b/lib/datadog_api_client/v2/models/powerpack_relationships.rb index 04665fcce9b6..6ab4d18d1fe3 100644 --- a/lib/datadog_api_client/v2/models/powerpack_relationships.rb +++ b/lib/datadog_api_client/v2/models/powerpack_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_response.rb b/lib/datadog_api_client/v2/models/powerpack_response.rb index 507e0c0e0399..9a0393ac259b 100644 --- a/lib/datadog_api_client/v2/models/powerpack_response.rb +++ b/lib/datadog_api_client/v2/models/powerpack_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_response_links.rb b/lib/datadog_api_client/v2/models/powerpack_response_links.rb index 07f6c806eaca..a341b81f8d8c 100644 --- a/lib/datadog_api_client/v2/models/powerpack_response_links.rb +++ b/lib/datadog_api_client/v2/models/powerpack_response_links.rb @@ -110,26 +110,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_template_variable.rb b/lib/datadog_api_client/v2/models/powerpack_template_variable.rb index 935824732b85..1f37e23e5d62 100644 --- a/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +++ b/lib/datadog_api_client/v2/models/powerpack_template_variable.rb @@ -94,26 +94,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb b/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb index 47e27f93ef74..e71ba049f813 100644 --- a/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb +++ b/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb index 0776f7eb730f..d8f0179f6a8e 100644 --- a/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb @@ -136,26 +136,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summaries_meta.rb b/lib/datadog_api_client/v2/models/process_summaries_meta.rb index 0413253a71f5..8bf8509b0ba3 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb b/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb index c94a06bd2cc0..062584f489af 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb @@ -97,26 +97,6 @@ def size=(size) @size = size end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summaries_response.rb b/lib/datadog_api_client/v2/models/process_summaries_response.rb index a9fffc5346de..50139dae83b5 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index de13ceeda81c..7ce1d368da8a 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summary_attributes.rb b/lib/datadog_api_client/v2/models/process_summary_attributes.rb index bde735cf3dad..b8bc25b88ada 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -130,26 +130,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project.rb b/lib/datadog_api_client/v2/models/project.rb index fdb2575d957d..bdc1d5bf5311 100644 --- a/lib/datadog_api_client/v2/models/project.rb +++ b/lib/datadog_api_client/v2/models/project.rb @@ -132,26 +132,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_attributes.rb b/lib/datadog_api_client/v2/models/project_attributes.rb index 4434a6afb3b2..ebc01d515bf4 100644 --- a/lib/datadog_api_client/v2/models/project_attributes.rb +++ b/lib/datadog_api_client/v2/models/project_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_create.rb b/lib/datadog_api_client/v2/models/project_create.rb index f92834681004..28bb205194d5 100644 --- a/lib/datadog_api_client/v2/models/project_create.rb +++ b/lib/datadog_api_client/v2/models/project_create.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_create_attributes.rb b/lib/datadog_api_client/v2/models/project_create_attributes.rb index 3c99a7ad5dd6..ff479b85fe2b 100644 --- a/lib/datadog_api_client/v2/models/project_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/project_create_attributes.rb @@ -103,26 +103,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_create_request.rb b/lib/datadog_api_client/v2/models/project_create_request.rb index 464166815f6c..b64f539cb535 100644 --- a/lib/datadog_api_client/v2/models/project_create_request.rb +++ b/lib/datadog_api_client/v2/models/project_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_relationship.rb b/lib/datadog_api_client/v2/models/project_relationship.rb index d07d026f6e8a..9b43097b5d78 100644 --- a/lib/datadog_api_client/v2/models/project_relationship.rb +++ b/lib/datadog_api_client/v2/models/project_relationship.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_relationship_data.rb b/lib/datadog_api_client/v2/models/project_relationship_data.rb index aeaf2b3d0f9b..bafe4430efc7 100644 --- a/lib/datadog_api_client/v2/models/project_relationship_data.rb +++ b/lib/datadog_api_client/v2/models/project_relationship_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_relationships.rb b/lib/datadog_api_client/v2/models/project_relationships.rb index c6379ee7ec3d..f1f47a8d1b83 100644 --- a/lib/datadog_api_client/v2/models/project_relationships.rb +++ b/lib/datadog_api_client/v2/models/project_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_response.rb b/lib/datadog_api_client/v2/models/project_response.rb index 1ca981ed0dc7..45e5a80b4eb4 100644 --- a/lib/datadog_api_client/v2/models/project_response.rb +++ b/lib/datadog_api_client/v2/models/project_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/projected_cost.rb b/lib/datadog_api_client/v2/models/projected_cost.rb index 672045715b7e..ad02b6bb9e56 100644 --- a/lib/datadog_api_client/v2/models/projected_cost.rb +++ b/lib/datadog_api_client/v2/models/projected_cost.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/projected_cost_attributes.rb b/lib/datadog_api_client/v2/models/projected_cost_attributes.rb index 473329b8c68c..fbb74f029539 100644 --- a/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +++ b/lib/datadog_api_client/v2/models/projected_cost_attributes.rb @@ -130,26 +130,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/projected_cost_response.rb b/lib/datadog_api_client/v2/models/projected_cost_response.rb index 8a6b2c0a346f..1f521e11352d 100644 --- a/lib/datadog_api_client/v2/models/projected_cost_response.rb +++ b/lib/datadog_api_client/v2/models/projected_cost_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/projects_response.rb b/lib/datadog_api_client/v2/models/projects_response.rb index 2cd515f532f3..26b49830e1bf 100644 --- a/lib/datadog_api_client/v2/models/projects_response.rb +++ b/lib/datadog_api_client/v2/models/projects_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/query_formula.rb b/lib/datadog_api_client/v2/models/query_formula.rb index 57841f45acbc..a58006872d9c 100644 --- a/lib/datadog_api_client/v2/models/query_formula.rb +++ b/lib/datadog_api_client/v2/models/query_formula.rb @@ -93,26 +93,6 @@ def formula=(formula) @formula = formula end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb index 422cd1903485..701d86d636d0 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb index fbe5b857219e..b986b125a571 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb index c464e34ab22d..dd9e2212f5c8 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb index 9a7050f5e038..3f33deec8717 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb index b155d8223486..1b6b4019b45a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb index ddc23a971082..c22b25786e85 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb index b132646ed6aa..dc0b8e9705be 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb index 41203f1984ec..d7379a1dd408 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb index 9553b0678b04..fbba97e60224 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb index 778600b2a7ef..602b7fbeec9c 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb index 53b3d96a1ef6..521ea32ddcc9 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb index f9254ef44fdc..83778aafa1cf 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_organization.rb b/lib/datadog_api_client/v2/models/relationship_to_organization.rb index dabc03a1a8de..d3d64e0ab655 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb b/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb index 8d8ba19feec9..9f60b52effda 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb index c3e051c7ab9a..f1d608352400 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_outcome.rb b/lib/datadog_api_client/v2/models/relationship_to_outcome.rb index be3d19633193..9be1d45310c3 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_outcome.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_outcome.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb b/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb index d371dc3c76a6..039e7a07de35 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_permission.rb b/lib/datadog_api_client/v2/models/relationship_to_permission.rb index f84466c950b7..5bf3551b60df 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb b/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb index dfd2419646ef..14668cb5f0de 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb index cf50ad252a38..8cd26e60e549 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_role.rb b/lib/datadog_api_client/v2/models/relationship_to_role.rb index aacda2dec221..d4a3d84e400a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_role_data.rb b/lib/datadog_api_client/v2/models/relationship_to_role_data.rb index d708817a92a1..361ca215bc32 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_roles.rb b/lib/datadog_api_client/v2/models/relationship_to_roles.rb index 7b03468aff9f..361e99270934 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_rule.rb b/lib/datadog_api_client/v2/models/relationship_to_rule.rb index 4575177742bb..bef16b9ef197 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_rule.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_rule.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb b/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb index b468aceb663c..b69bfb606c03 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb b/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb index 555373178643..c1855f586314 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb index e533ad7516dc..2619ee73a966 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb index 42672a5a9c8a..455dd248ca4c 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_team.rb b/lib/datadog_api_client/v2/models/relationship_to_team.rb index 70cab11457da..8c16336ca623 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_team_data.rb b/lib/datadog_api_client/v2/models/relationship_to_team_data.rb index 80ad94e0575a..d30399426924 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb b/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb index 9d02fa725ffb..542baed8fcb4 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_team_links.rb b/lib/datadog_api_client/v2/models/relationship_to_team_links.rb index b66766eaf7bd..26e0c19c6035 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team_links.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user.rb b/lib/datadog_api_client/v2/models/relationship_to_user.rb index fec9bfdda5ff..ee042de3bc3f 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_data.rb index 438568ea71a2..37ae815959a7 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb index cd3be9d08337..2ab14cec4bcd 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb index 00915d027049..e51925abc6e6 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb index c6690ef0fb61..348eb87a7d17 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb index ec931318c453..944f5cfb7c5c 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb index d51707514aac..2d8c6d46278a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb index 1b159f0b682b..e6a4d5d372a1 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_users.rb b/lib/datadog_api_client/v2/models/relationship_to_users.rb index a3a159c2ad85..bec855deb11f 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb b/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb index 2cd54eb39488..bf18257d54ca 100644 --- a/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb +++ b/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/response_meta_attributes.rb b/lib/datadog_api_client/v2/models/response_meta_attributes.rb index e19de5445794..ec03890672a7 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy.rb b/lib/datadog_api_client/v2/models/restriction_policy.rb index 4766951a5204..2daef0816fbc 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb b/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb index ea0df9411c6a..09b4572829ba 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb @@ -85,26 +85,6 @@ def bindings=(bindings) @bindings = bindings end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy_binding.rb b/lib/datadog_api_client/v2/models/restriction_policy_binding.rb index 23917da85db2..3d81be28ed25 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_binding.rb @@ -108,26 +108,6 @@ def relation=(relation) @relation = relation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy_response.rb b/lib/datadog_api_client/v2/models/restriction_policy_response.rb index 8527cf7bc31e..9a44cdb59bd9 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_response.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_response.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb b/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb index ea529de2c738..41afcc72ac62 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter.rb b/lib/datadog_api_client/v2/models/retention_filter.rb index 0861510c9911..c2281000faae 100644 --- a/lib/datadog_api_client/v2/models/retention_filter.rb +++ b/lib/datadog_api_client/v2/models/retention_filter.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_all.rb b/lib/datadog_api_client/v2/models/retention_filter_all.rb index dcf538faacc8..d9067935ffc4 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_all.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_all.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb index c48aafd0946e..0bcd67508bc0 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb @@ -156,26 +156,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_attributes.rb index c35d477e49ab..73cf5ffc54e4 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_attributes.rb @@ -156,26 +156,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb index 4523a48917ea..50ce0621984e 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb @@ -164,26 +164,6 @@ def rate=(rate) @rate = rate end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_data.rb b/lib/datadog_api_client/v2/models/retention_filter_create_data.rb index 341f65606b6d..91574b160f7e 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_data.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_request.rb b/lib/datadog_api_client/v2/models/retention_filter_create_request.rb index 848aba61a317..dc9912c7488b 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_request.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_response.rb b/lib/datadog_api_client/v2/models/retention_filter_create_response.rb index 52f4e6c27df5..0ae6c452683e 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_response.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_response.rb b/lib/datadog_api_client/v2/models/retention_filter_response.rb index 41825e4a1fcb..47478da4eba6 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_response.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb index 22430337a593..1b43e25a43df 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb @@ -164,26 +164,6 @@ def rate=(rate) @rate = rate end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_update_data.rb b/lib/datadog_api_client/v2/models/retention_filter_update_data.rb index 20bd99e96080..d93ae5607876 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_update_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_update_request.rb b/lib/datadog_api_client/v2/models/retention_filter_update_request.rb index f4a80de96261..e78ebf786d6a 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_update_request.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb index 69f53722f692..368a068b15b9 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filters_response.rb b/lib/datadog_api_client/v2/models/retention_filters_response.rb index 98d8f95d0ceb..108c25e5ba2c 100644 --- a/lib/datadog_api_client/v2/models/retention_filters_response.rb +++ b/lib/datadog_api_client/v2/models/retention_filters_response.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index 8c4df78b6226..ca54aed67f32 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -110,26 +110,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index c0e29cdee010..f9bc2f0988c5 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index 89337d2f5938..5be496daeff0 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_clone_attributes.rb b/lib/datadog_api_client/v2/models/role_clone_attributes.rb index f849d1b073f4..6f88f5f7dd62 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -83,26 +83,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_clone_request.rb b/lib/datadog_api_client/v2/models/role_clone_request.rb index c9d9e47a5a19..11aa9783559d 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_attributes.rb b/lib/datadog_api_client/v2/models/role_create_attributes.rb index 13ad28649751..02814eef7bb7 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -101,26 +101,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_data.rb b/lib/datadog_api_client/v2/models/role_create_data.rb index 26f34df67ef8..d3c3454901a6 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -101,26 +101,6 @@ def attributes=(attributes) @attributes = attributes end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_request.rb b/lib/datadog_api_client/v2/models/role_create_request.rb index 75138206aaaa..b97fd5670fd4 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_response.rb b/lib/datadog_api_client/v2/models/role_create_response.rb index 8e3e024bb548..4a79ab0dcd57 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_response_data.rb b/lib/datadog_api_client/v2/models/role_create_response_data.rb index 4bd6abb0a421..ff1c254e7017 100644 --- a/lib/datadog_api_client/v2/models/role_create_response_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_response_data.rb @@ -110,26 +110,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index 1091fac689c1..a4b1f53a6b51 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index 17eb79d8b58f..7f6a127d5db7 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_response_relationships.rb b/lib/datadog_api_client/v2/models/role_response_relationships.rb index e023d5b0ddd7..b38e2b230039 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_attributes.rb b/lib/datadog_api_client/v2/models/role_update_attributes.rb index 98223dbbb795..f9bd9b738249 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -110,26 +110,6 @@ def user_count=(user_count) @user_count = user_count end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_data.rb b/lib/datadog_api_client/v2/models/role_update_data.rb index 51b54e728d73..e27ba341ec99 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -132,26 +132,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_request.rb b/lib/datadog_api_client/v2/models/role_update_request.rb index cb04be8f5708..7b87a24f3e19 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_response.rb b/lib/datadog_api_client/v2/models/role_update_response.rb index d7f9bb7769bf..bbf7f3299ab3 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_response_data.rb b/lib/datadog_api_client/v2/models/role_update_response_data.rb index 544e72297b8a..3361672e80bc 100644 --- a/lib/datadog_api_client/v2/models/role_update_response_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_response_data.rb @@ -110,26 +110,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index 91ba466815ae..d2908efab7c3 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rule_attributes.rb b/lib/datadog_api_client/v2/models/rule_attributes.rb index a518c9c22db4..e75891feb5aa 100644 --- a/lib/datadog_api_client/v2/models/rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/rule_attributes.rb @@ -137,26 +137,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb b/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb index 161fd9b0a134..c53bd8a2aba1 100644 --- a/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb +++ b/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb index 10dad6422c92..3e863c1c6487 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_aggregate_request.rb b/lib/datadog_api_client/v2/models/rum_aggregate_request.rb index 6fb4a567573a..2a48a88ea4cd 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregate_request.rb @@ -106,26 +106,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb b/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb index 7f81121f435f..ecb220b8244a 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb b/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb index 85ab5e0f0210..b61e43a3e786 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb b/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb index 7b99e54b060c..5170356d5e70 100644 --- a/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application.rb b/lib/datadog_api_client/v2/models/rum_application.rb index 7a314a50c8e7..c0846832d166 100644 --- a/lib/datadog_api_client/v2/models/rum_application.rb +++ b/lib/datadog_api_client/v2/models/rum_application.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_attributes.rb index 04c1477e2dc1..a02065268e72 100644 --- a/lib/datadog_api_client/v2/models/rum_application_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_attributes.rb @@ -265,26 +265,6 @@ def updated_by_handle=(updated_by_handle) @updated_by_handle = updated_by_handle end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_create.rb b/lib/datadog_api_client/v2/models/rum_application_create.rb index 68f20a9839d3..8e181c757c7e 100644 --- a/lib/datadog_api_client/v2/models/rum_application_create.rb +++ b/lib/datadog_api_client/v2/models/rum_application_create.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb index d3a496f36057..5d3c9a919bce 100644 --- a/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb @@ -92,26 +92,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_create_request.rb b/lib/datadog_api_client/v2/models/rum_application_create_request.rb index ad7a55bdd6d1..7c176377d187 100644 --- a/lib/datadog_api_client/v2/models/rum_application_create_request.rb +++ b/lib/datadog_api_client/v2/models/rum_application_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_list.rb b/lib/datadog_api_client/v2/models/rum_application_list.rb index 6e65862cfeb2..487cc7d50012 100644 --- a/lib/datadog_api_client/v2/models/rum_application_list.rb +++ b/lib/datadog_api_client/v2/models/rum_application_list.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb index 5eae39c30461..07c7f7c7e739 100644 --- a/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb @@ -245,26 +245,6 @@ def updated_by_handle=(updated_by_handle) @updated_by_handle = updated_by_handle end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_response.rb b/lib/datadog_api_client/v2/models/rum_application_response.rb index 34388b21ad84..c3a69aca5ee3 100644 --- a/lib/datadog_api_client/v2/models/rum_application_response.rb +++ b/lib/datadog_api_client/v2/models/rum_application_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_update.rb b/lib/datadog_api_client/v2/models/rum_application_update.rb index 01ae304d87b4..e6634c12ca32 100644 --- a/lib/datadog_api_client/v2/models/rum_application_update.rb +++ b/lib/datadog_api_client/v2/models/rum_application_update.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb index ef20a63bc912..4218ae40d92d 100644 --- a/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_update_request.rb b/lib/datadog_api_client/v2/models/rum_application_update_request.rb index 5be324550c9b..d02cc51143fa 100644 --- a/lib/datadog_api_client/v2/models/rum_application_update_request.rb +++ b/lib/datadog_api_client/v2/models/rum_application_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_applications_response.rb b/lib/datadog_api_client/v2/models/rum_applications_response.rb index ef9cbbdeb566..ddb445ebbcb8 100644 --- a/lib/datadog_api_client/v2/models/rum_applications_response.rb +++ b/lib/datadog_api_client/v2/models/rum_applications_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_bucket_response.rb b/lib/datadog_api_client/v2/models/rum_bucket_response.rb index 791864998712..b32c28e72bf8 100644 --- a/lib/datadog_api_client/v2/models/rum_bucket_response.rb +++ b/lib/datadog_api_client/v2/models/rum_bucket_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_compute.rb b/lib/datadog_api_client/v2/models/rum_compute.rb index 1971e409cb88..294565e1eece 100644 --- a/lib/datadog_api_client/v2/models/rum_compute.rb +++ b/lib/datadog_api_client/v2/models/rum_compute.rb @@ -111,26 +111,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_event.rb b/lib/datadog_api_client/v2/models/rum_event.rb index 7329eb406f1b..db93fe9a623a 100644 --- a/lib/datadog_api_client/v2/models/rum_event.rb +++ b/lib/datadog_api_client/v2/models/rum_event.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_event_attributes.rb b/lib/datadog_api_client/v2/models/rum_event_attributes.rb index 02e4f022da0e..3f5990c28554 100644 --- a/lib/datadog_api_client/v2/models/rum_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_event_attributes.rb @@ -96,26 +96,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_events_response.rb b/lib/datadog_api_client/v2/models/rum_events_response.rb index 215f6b81e309..c3a40c0ffd4e 100644 --- a/lib/datadog_api_client/v2/models/rum_events_response.rb +++ b/lib/datadog_api_client/v2/models/rum_events_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_group_by.rb b/lib/datadog_api_client/v2/models/rum_group_by.rb index 08b65ee88692..670fc4c2a401 100644 --- a/lib/datadog_api_client/v2/models/rum_group_by.rb +++ b/lib/datadog_api_client/v2/models/rum_group_by.rb @@ -129,26 +129,6 @@ def facet=(facet) @facet = facet end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb b/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb index 0cb875d5e49c..0d511e4d02fd 100644 --- a/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb @@ -126,26 +126,6 @@ def min=(min) @min = min end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_query_filter.rb b/lib/datadog_api_client/v2/models/rum_query_filter.rb index 1e369efa8e6a..8564970b2bbc 100644 --- a/lib/datadog_api_client/v2/models/rum_query_filter.rb +++ b/lib/datadog_api_client/v2/models/rum_query_filter.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_query_options.rb b/lib/datadog_api_client/v2/models/rum_query_options.rb index b6abb6c26941..29c7a3d3f505 100644 --- a/lib/datadog_api_client/v2/models/rum_query_options.rb +++ b/lib/datadog_api_client/v2/models/rum_query_options.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_query_page_options.rb b/lib/datadog_api_client/v2/models/rum_query_page_options.rb index 6c92017a274f..387fa4de9a64 100644 --- a/lib/datadog_api_client/v2/models/rum_query_page_options.rb +++ b/lib/datadog_api_client/v2/models/rum_query_page_options.rb @@ -92,26 +92,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_response_links.rb b/lib/datadog_api_client/v2/models/rum_response_links.rb index f478702c05ea..1081e8bd5f86 100644 --- a/lib/datadog_api_client/v2/models/rum_response_links.rb +++ b/lib/datadog_api_client/v2/models/rum_response_links.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_response_metadata.rb b/lib/datadog_api_client/v2/models/rum_response_metadata.rb index f132ca797e55..9619549261f3 100644 --- a/lib/datadog_api_client/v2/models/rum_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/rum_response_metadata.rb @@ -104,26 +104,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_response_page.rb b/lib/datadog_api_client/v2/models/rum_response_page.rb index f218617b167e..d7ccf70fcbac 100644 --- a/lib/datadog_api_client/v2/models/rum_response_page.rb +++ b/lib/datadog_api_client/v2/models/rum_response_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_search_events_request.rb b/lib/datadog_api_client/v2/models/rum_search_events_request.rb index 916dc7c7e123..34a173d1b5f7 100644 --- a/lib/datadog_api_client/v2/models/rum_search_events_request.rb +++ b/lib/datadog_api_client/v2/models/rum_search_events_request.rb @@ -93,26 +93,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_warning.rb b/lib/datadog_api_client/v2/models/rum_warning.rb index 93483b3f37d5..87dd315627dd 100644 --- a/lib/datadog_api_client/v2/models/rum_warning.rb +++ b/lib/datadog_api_client/v2/models/rum_warning.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb b/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb index 6303a63f72a4..4c8830b38bfd 100644 --- a/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb +++ b/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb b/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb index 266d4a66ad95..90c53f840e96 100644 --- a/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb +++ b/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb b/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb index 873a7debc74a..f135c099a414 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb b/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb index b6893b8c9e68..effcbb42b5ca 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_request.rb b/lib/datadog_api_client/v2/models/scalar_formula_request.rb index 6d218654f918..3bdfcd5607ec 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_request.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_request.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb b/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb index a7b9d7362f9b..35ce39128bf1 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb @@ -136,26 +136,6 @@ def to=(to) @to = to end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb b/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb index b261aec2eadf..44b957702615 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_meta.rb b/lib/datadog_api_client/v2/models/scalar_meta.rb index 87fa6073d5cc..b9cfc19a654c 100644 --- a/lib/datadog_api_client/v2/models/scalar_meta.rb +++ b/lib/datadog_api_client/v2/models/scalar_meta.rb @@ -78,26 +78,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_response.rb b/lib/datadog_api_client/v2/models/scalar_response.rb index bc5774383f3e..c99a3c4dcad6 100644 --- a/lib/datadog_api_client/v2/models/scalar_response.rb +++ b/lib/datadog_api_client/v2/models/scalar_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index 8bded6c2c26b..4dc86a32acb6 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_attributes.rb index 651e5a4fe497..2007a5795e10 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -139,26 +139,6 @@ def version=(version) @version = version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb index dd776256dde4..02547d1b52d9 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb @@ -165,26 +165,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_create_data.rb b/lib/datadog_api_client/v2/models/security_filter_create_data.rb index 50c4119f38a5..fc6a70022572 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_data.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_create_request.rb b/lib/datadog_api_client/v2/models/security_filter_create_request.rb index 3bf509101f8f..0f21b0ebef42 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_request.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb index f434df72cee0..f2768a7be858 100644 --- a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb @@ -103,26 +103,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb index 5ff70889dc17..d2bfc6d64851 100644 --- a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_meta.rb b/lib/datadog_api_client/v2/models/security_filter_meta.rb index db08a97ded94..1cfe16e1cd85 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_response.rb b/lib/datadog_api_client/v2/models/security_filter_response.rb index 0665aa4bf44c..baa9d565e9ac 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb index ad4aa4f93f59..d09d867f6224 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb @@ -130,26 +130,6 @@ def version=(version) @version = version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_update_data.rb b/lib/datadog_api_client/v2/models/security_filter_update_data.rb index 4e432931fbcb..895d8bfac472 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_update_request.rb b/lib/datadog_api_client/v2/models/security_filter_update_request.rb index a4cdf354fd2b..c223beaebe6b 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filters_response.rb b/lib/datadog_api_client/v2/models/security_filters_response.rb index 99b298c6f6e6..39d501e68699 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb index 1c7c372ad4ab..372d4fb73644 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb index 11c072dcaeaa..3b903f0ecf4f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb index d2e76ca2a393..3b86ae2b8381 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb @@ -95,26 +95,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb index f79eb84989d5..a4dc320eefb0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb @@ -113,26 +113,6 @@ def status=(status) @status = status end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb index 2155e271daec..1d6a6450290f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb index 0e34ef33f38b..19eee13e4f66 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb index 0cfd69c28e7c..69a0fec3f5d8 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb @@ -93,26 +93,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb index cc566c33f703..bfa0a479c868 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb @@ -153,26 +153,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb index 9438c011df77..88e812a88d11 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb @@ -101,26 +101,6 @@ def index=(index) @index = index end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb index 08882dc98ac2..9d67484848eb 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb index 1818c0d17061..ed8694151804 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb index 141174781415..9602d3c366e3 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb @@ -69,26 +69,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb index 0797b7466071..d68d7a3c4f70 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb @@ -96,26 +96,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb index 00f141cf8e0c..b66c4c8cc836 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb @@ -192,26 +192,6 @@ def version=(version) @version = version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb index e2dbb9ddff9a..516d676ef3b2 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -84,26 +84,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb index fa8c3a27d2bf..db9fe6225ecf 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb @@ -92,26 +92,6 @@ def assignee=(assignee) @assignee = assignee end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb index d2f78a55ee5e..07316809c102 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb @@ -83,26 +83,6 @@ def attributes=(attributes) @attributes = attributes end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb index 106492836d6e..cebd657c8eeb 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb index be0ea4213f8f..20f76346922b 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb @@ -95,26 +95,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb index 0acfec801e23..611cbaf938fa 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb @@ -94,26 +94,6 @@ def incident_ids=(incident_ids) @incident_ids = incident_ids end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb index 8fa4f3bda1a8..4d10fcd131f4 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb @@ -83,26 +83,6 @@ def attributes=(attributes) @attributes = attributes end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb index cddacf7e1d87..740247708d3a 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb index c8e30e93e0a3..e88f9515e081 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb index 1baff08c3519..fa4165aa54ec 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb index cc04385fe110..1907aa5ddc13 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb @@ -92,26 +92,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb index 6d72f00996c9..5b1ba011d7d6 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb index d182ceda8194..de7b21391398 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb @@ -227,26 +227,6 @@ def queries=(queries) @queries = queries end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb index 5c637281f164..75c81d1a850d 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb @@ -227,26 +227,6 @@ def queries=(queries) @queries = queries end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb index 2e3521f3c809..2dd505cbff1e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb @@ -143,26 +143,6 @@ def rule_id=(rule_id) @rule_id = rule_id end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb index 69c62470592e..d5bb2f67bc9b 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb @@ -226,26 +226,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb index 137dbe361678..7055a61869dd 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb @@ -163,26 +163,6 @@ def correlated_query_index=(correlated_query_index) @correlated_query_index = correlated_query_index end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb index 904798e34daa..ab8fde427250 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb @@ -110,26 +110,6 @@ def state=(state) @state = state end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb index 2f64fc2341c1..85230501d592 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb @@ -101,26 +101,6 @@ def attributes=(attributes) @attributes = attributes end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb index 5a75e981fc6f..b6a0c7601dad 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb index 14908422f19e..a2a6f5600269 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb @@ -201,26 +201,6 @@ def state_update_timestamp=(state_update_timestamp) @state_update_timestamp = state_update_timestamp end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb index 656b331fbcfb..4a58db65d889 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb index 68fc34c55957..3d39e3681bae 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb index 288a440bd5cc..fe1b74b17da7 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb @@ -86,26 +86,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb index e4c93664687e..c00b3c90f758 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb index 5bced72987aa..cb375d394012 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb index 6303459cc260..7c90c615df2e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb index 5798c5ff87f4..45af4dffc68a 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb @@ -238,26 +238,6 @@ def queries=(queries) @queries = queries end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb index f5d38deb0460..3cdff60034ea 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb @@ -238,26 +238,6 @@ def queries=(queries) @queries = queries end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb index 6a3a79b2b355..99b5415ad125 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb @@ -135,26 +135,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb index b83d203e192d..418b9ceefc15 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb @@ -257,26 +257,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb index 3d8420242ce1..d8db73d119a0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb @@ -238,26 +238,6 @@ def queries=(queries) @queries = queries end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb index 77cce9903688..cadbadd492bb 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb index 3b33b0f2fd1f..8d335c72e00d 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb @@ -182,26 +182,6 @@ def version=(version) @version = version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb index a5f8430ede56..93264174ba22 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb @@ -159,26 +159,6 @@ def rule_query=(rule_query) @rule_query = rule_query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb index 4431910474fe..d6b3522ac4bf 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb index a92f181cb371..22e640f92e42 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb index 7a8fcf2e3254..615ad695b838 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb index 17243b502d7e..eac8dfde06d0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb @@ -154,26 +154,6 @@ def version=(version) @version = version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb index 6a17dc448979..353a2564b910 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb index 006bb3be7920..a372a7b267b1 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb index c4a5b413f762..1fe9c561ba5f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb index dea2b8432fae..a89581d34571 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb index 29b497cc5e66..2234f7bef95b 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb @@ -94,26 +94,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb index c48eb4289b53..7f31acab756f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb @@ -112,26 +112,6 @@ def status=(status) @status = status end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb b/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb index 62e3da8de684..7c167a31e2ba 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb @@ -127,26 +127,6 @@ def uuid=(uuid) @uuid = uuid end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_user.rb b/lib/datadog_api_client/v2/models/security_monitoring_user.rb index e3b9ae49bfaa..26d194e8b82f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_user.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_user.rb @@ -82,26 +82,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb index 7336db7a0d47..48ac4053c911 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb @@ -103,26 +103,6 @@ def meta=(meta) @meta = meta end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb index fdf7f25e782b..40a85dab83c1 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb index 0b4fcc0fc2b4..44963ad4f42f 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb index 10c965b51893..f5a0165deea8 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb index f1a2ab99ff55..782977925b17 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb index f24fdbf6e3c9..0b6492f34da1 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb index 169ced859746..15ec769b6ba6 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb index 3b852679a062..97e39e67a9ed 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb index 85f8918da707..8887916874bc 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb index 7e4ebf2e7ac6..ee346a1f7657 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb index 648940e094a0..a45db8986190 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb @@ -103,26 +103,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb index d065c3c93447..b0810ebb0080 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb index 9706cbb7ea93..ca9cd8a0bb88 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb index bf0663badc99..1eb7632987d6 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb index dfd590802a02..d0163b194465 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb @@ -83,26 +83,6 @@ def meta=(meta) @meta = meta end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb index ae41e5e24e1c..762b6e318c0a 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb index b75f64efc8e2..d9d64fc24635 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb index 485c3e03a77b..3447f900944b 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb index 4bd85c15e828..b73834712e66 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb index a8ef4ba3182a..9a37b2d936dd 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb index bf6cad7fa870..1742a0cf3385 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb index 0ea70688c409..bbd4c89bf4e2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb index ef2ef874fbb9..36bab583aab6 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb @@ -103,26 +103,6 @@ def meta=(meta) @meta = meta end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb index 83316c067d42..febb85ce84f2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb index 2f17967f9b02..ce72fa4fb4d5 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb @@ -118,26 +118,6 @@ def keywords=(keywords) @keywords = keywords end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb index a4d52e965d1f..327925d3e0db 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb @@ -128,26 +128,6 @@ def version=(version) @version = version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb index df4f93f50d50..bf7ece0c5d20 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb @@ -83,26 +83,6 @@ def version=(version) @version = version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb index d07c35e4e586..9167a4d578fd 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb index 413d2cb6a6d2..0169c76cb1e3 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb index 3c6d35515fae..e60ec75971fe 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb index daa2ab5c5bc2..c0af282e0b24 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb @@ -178,26 +178,6 @@ def priority=(priority) @priority = priority end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb index 17d1a764b027..b8bd954bb77b 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb index c03636a8e000..216cb1ee96a2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb @@ -103,26 +103,6 @@ def meta=(meta) @meta = meta end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb index 822d120b2dd3..892514c80a8c 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb index c806a8227473..18db83c27a89 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb @@ -83,26 +83,6 @@ def meta=(meta) @meta = meta end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb index 2388d3fe80a9..43fc17482ded 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb index 38b8e9640c6a..c6e0a1918761 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb index 93b3457cb7bc..7d558faff688 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb index db589f559d22..f23c8da67e34 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb index a81b8a4834fd..39e77a4149b2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb index 763cd309bcc5..4e88772597a4 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb @@ -103,26 +103,6 @@ def meta=(meta) @meta = meta end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb index db6a2dce542c..3d4784aa2716 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb index 2e90772f4a3a..8963f2c265a2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb index 3c2c805b66fc..0925e16d54af 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb @@ -136,26 +136,6 @@ def priority=(priority) @priority = priority end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb index c7d20c16d8df..c04b915e57a5 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb index b86e70c0325b..99869358b71c 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb index 9c42b2894f79..1b90935159fb 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb index a8cdc559de9e..5d077ab9145d 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb @@ -107,26 +107,6 @@ def number_of_chars=(number_of_chars) @number_of_chars = number_of_chars end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_account_create_attributes.rb b/lib/datadog_api_client/v2/models/service_account_create_attributes.rb index 04af35e547f0..2a2d5bc85d9a 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_attributes.rb @@ -121,26 +121,6 @@ def service_account=(service_account) @service_account = service_account end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_account_create_data.rb b/lib/datadog_api_client/v2/models/service_account_create_data.rb index 2d71f08dfbb2..99a68c4f5c7c 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_data.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_data.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_account_create_request.rb b/lib/datadog_api_client/v2/models/service_account_create_request.rb index 10598811e01e..807cf015734a 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_create_response.rb b/lib/datadog_api_client/v2/models/service_definition_create_response.rb index a06d601dbef6..a2ba2f8ad7c6 100644 --- a/lib/datadog_api_client/v2/models/service_definition_create_response.rb +++ b/lib/datadog_api_client/v2/models/service_definition_create_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_data.rb b/lib/datadog_api_client/v2/models/service_definition_data.rb index f084099216ef..aa90340e0d99 100644 --- a/lib/datadog_api_client/v2/models/service_definition_data.rb +++ b/lib/datadog_api_client/v2/models/service_definition_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb b/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb index 324f3c2f555f..017cbc41fdfe 100644 --- a/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_get_response.rb b/lib/datadog_api_client/v2/models/service_definition_get_response.rb index 4730ce5b48ef..bb770f0e32b0 100644 --- a/lib/datadog_api_client/v2/models/service_definition_get_response.rb +++ b/lib/datadog_api_client/v2/models/service_definition_get_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_meta.rb b/lib/datadog_api_client/v2/models/service_definition_meta.rb index 4883ad96b5e4..912f73269370 100644 --- a/lib/datadog_api_client/v2/models/service_definition_meta.rb +++ b/lib/datadog_api_client/v2/models/service_definition_meta.rb @@ -121,26 +121,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb b/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb index 935476d52cd6..1d4042582961 100644 --- a/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb +++ b/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1.rb b/lib/datadog_api_client/v2/models/service_definition_v1.rb index 13cbf877f2f5..14fbe0720f37 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1.rb @@ -164,26 +164,6 @@ def schema_version=(schema_version) @schema_version = schema_version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb b/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb index c32276fbdc1d..4e839b6e7f4c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_info.rb b/lib/datadog_api_client/v2/models/service_definition_v1_info.rb index e01bfc316894..54feed1fb1e2 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_info.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_info.rb @@ -110,26 +110,6 @@ def dd_service=(dd_service) @dd_service = dd_service end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb index ef8135a2b5b5..538fe026b599 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_org.rb b/lib/datadog_api_client/v2/models/service_definition_v1_org.rb index ac28a480a749..9de96c028d99 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_org.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_org.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb b/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb index 2f19c1227ecb..0ef305459c81 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb @@ -123,26 +123,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2.rb b/lib/datadog_api_client/v2/models/service_definition_v2.rb index 00b6a757179c..51da7cdf25f6 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2.rb @@ -194,26 +194,6 @@ def schema_version=(schema_version) @schema_version = schema_version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb b/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb index 0c6301871b81..c49c1855b063 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb @@ -112,26 +112,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb index 7b30bb7e3282..836a3d59d0b8 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb @@ -199,26 +199,6 @@ def schema_version=(schema_version) @schema_version = schema_version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb index b67cd0185b77..a6f602148bdf 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb index f9a8bcbc6f2c..f78ee81e6cdf 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb index f11229c13ee6..33be060f70fb 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb @@ -132,26 +132,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb index 9ceb76f556f4..eeb0ce0fb30f 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb index c1dfe45f8a6c..4594ce6d4476 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb @@ -92,26 +92,6 @@ def service_url=(service_url) @service_url = service_url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb index 5373e2b7b5f9..6f6365425f1d 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb index a9fcba7a0cb1..a79d449c3ad0 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb index 3a808ec66897..f155719f5e29 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb @@ -230,26 +230,6 @@ def schema_version=(schema_version) @schema_version = schema_version end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb index a91cfe863940..df4c95a20ac2 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb index 812eaa1ab22a..06f124d774ef 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb index 144c829b00a2..426b87b69d29 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb @@ -132,26 +132,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb index b08c2b57007f..1aefa46de775 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb @@ -92,26 +92,6 @@ def service_url=(service_url) @service_url = service_url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb index 4e0d4a94b5dd..5befe2c7bdf5 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_email.rb b/lib/datadog_api_client/v2/models/service_definition_v2_email.rb index eabadf3d6b74..fbeae8e48877 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_email.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_email.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb index e36d66280c43..b46f5afb4077 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_link.rb b/lib/datadog_api_client/v2/models/service_definition_v2_link.rb index 9ac4f14086ba..1ee83eddffbd 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_link.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_link.rb @@ -123,26 +123,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb b/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb index 9cdda8c3630c..2f53e01a7951 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb b/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb index 193c10ec34ce..9115d2fae184 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb @@ -92,26 +92,6 @@ def service_url=(service_url) @service_url = service_url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb b/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb index 308f46431f4c..2771be4264e0 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb @@ -112,26 +112,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb b/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb index 544f59402d9b..0705cc0b811e 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definitions_list_response.rb b/lib/datadog_api_client/v2/models/service_definitions_list_response.rb index 465e5092d435..7185aa20b2d8 100644 --- a/lib/datadog_api_client/v2/models/service_definitions_list_response.rb +++ b/lib/datadog_api_client/v2/models/service_definitions_list_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_now_ticket.rb b/lib/datadog_api_client/v2/models/service_now_ticket.rb index 43a48349f859..a8d252bcd150 100644 --- a/lib/datadog_api_client/v2/models/service_now_ticket.rb +++ b/lib/datadog_api_client/v2/models/service_now_ticket.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_now_ticket_result.rb b/lib/datadog_api_client/v2/models/service_now_ticket_result.rb index 1b0503f7687c..4d89e5f17559 100644 --- a/lib/datadog_api_client/v2/models/service_now_ticket_result.rb +++ b/lib/datadog_api_client/v2/models/service_now_ticket_result.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slack_integration_metadata.rb b/lib/datadog_api_client/v2/models/slack_integration_metadata.rb index 02877873af92..b6ef92a028b7 100644 --- a/lib/datadog_api_client/v2/models/slack_integration_metadata.rb +++ b/lib/datadog_api_client/v2/models/slack_integration_metadata.rb @@ -85,26 +85,6 @@ def channels=(channels) @channels = channels end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb b/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb index 8f85970f61c7..0e91b2d1c096 100644 --- a/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb +++ b/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb @@ -132,26 +132,6 @@ def redirect_url=(redirect_url) @redirect_url = redirect_url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_create_request.rb b/lib/datadog_api_client/v2/models/slo_report_create_request.rb index 061d105453d1..85afdb810443 100644 --- a/lib/datadog_api_client/v2/models/slo_report_create_request.rb +++ b/lib/datadog_api_client/v2/models/slo_report_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb b/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb index 891cac21793d..66c56621bcc1 100644 --- a/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb @@ -141,26 +141,6 @@ def to_ts=(to_ts) @to_ts = to_ts end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb b/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb index 20018059e8cd..dcba13dd1d20 100644 --- a/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb @@ -83,26 +83,6 @@ def attributes=(attributes) @attributes = attributes end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_post_response.rb b/lib/datadog_api_client/v2/models/slo_report_post_response.rb index f5e5a1381545..2146c0504078 100644 --- a/lib/datadog_api_client/v2/models/slo_report_post_response.rb +++ b/lib/datadog_api_client/v2/models/slo_report_post_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb b/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb index 3606c3a983db..bfbddeb3abf3 100644 --- a/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +++ b/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb b/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb index 094196042c7c..6f6a3b353941 100644 --- a/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +++ b/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb b/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb index b82df4d0ccf0..2839d041fe08 100644 --- a/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb b/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb index bf556b62b850..568f22f422b5 100644 --- a/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +++ b/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/span.rb b/lib/datadog_api_client/v2/models/span.rb index cabcadfd4af9..b677b8b48c27 100644 --- a/lib/datadog_api_client/v2/models/span.rb +++ b/lib/datadog_api_client/v2/models/span.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb b/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb index 4126c23b3b96..1a997567c5de 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb index 3d82be50b8bc..987492751650 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb index e931308bebc7..bd093f44d653 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_data.rb b/lib/datadog_api_client/v2/models/spans_aggregate_data.rb index 67fb9451f377..9dac7928340a 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_data.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_request.rb b/lib/datadog_api_client/v2/models/spans_aggregate_request.rb index 145a0c944194..d5aefb1541c1 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb b/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb index e88d07e66ab3..c4a4213f55d9 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb @@ -97,26 +97,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_response.rb b/lib/datadog_api_client/v2/models/spans_aggregate_response.rb index a86d8a8de453..50d2e12c1283 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb b/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb index ec23c01e36c6..b6139e475ced 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb @@ -95,26 +95,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb b/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb index 203f73a2bb5b..71c8cf249f2f 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_attributes.rb b/lib/datadog_api_client/v2/models/spans_attributes.rb index e0d32b8548ea..0dd7b4d5269c 100644 --- a/lib/datadog_api_client/v2/models/spans_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_attributes.rb @@ -213,26 +213,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_compute.rb b/lib/datadog_api_client/v2/models/spans_compute.rb index 080097c19f84..6991434c5b2e 100644 --- a/lib/datadog_api_client/v2/models/spans_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_compute.rb @@ -111,26 +111,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_filter.rb b/lib/datadog_api_client/v2/models/spans_filter.rb index 1dda6e9e23c2..a2a554e6e105 100644 --- a/lib/datadog_api_client/v2/models/spans_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_filter.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_filter_create.rb b/lib/datadog_api_client/v2/models/spans_filter_create.rb index 99e3fd636f04..151c3ac462fa 100644 --- a/lib/datadog_api_client/v2/models/spans_filter_create.rb +++ b/lib/datadog_api_client/v2/models/spans_filter_create.rb @@ -83,26 +83,6 @@ def query=(query) @query = query end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_group_by.rb b/lib/datadog_api_client/v2/models/spans_group_by.rb index c59d0c716ad7..0f116eece558 100644 --- a/lib/datadog_api_client/v2/models/spans_group_by.rb +++ b/lib/datadog_api_client/v2/models/spans_group_by.rb @@ -129,26 +129,6 @@ def facet=(facet) @facet = facet end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb b/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb index b127b4ccfdc1..5312395703f6 100644 --- a/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb @@ -126,26 +126,6 @@ def min=(min) @min = min end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_request.rb b/lib/datadog_api_client/v2/models/spans_list_request.rb index 25d9835ddcbc..8f0f3b890cb4 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb b/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb index 4d40785c143c..e4e0ffa1e307 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb @@ -93,26 +93,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_request_data.rb b/lib/datadog_api_client/v2/models/spans_list_request_data.rb index 3b7aeb4e4efe..d6470c658abe 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request_data.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_request_page.rb b/lib/datadog_api_client/v2/models/spans_list_request_page.rb index 34663d15be6d..0bf227c2afb9 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request_page.rb @@ -92,26 +92,6 @@ def limit=(limit) @limit = limit end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_response.rb b/lib/datadog_api_client/v2/models/spans_list_response.rb index 4e1c1a095748..810dca8df657 100644 --- a/lib/datadog_api_client/v2/models/spans_list_response.rb +++ b/lib/datadog_api_client/v2/models/spans_list_response.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_response_links.rb b/lib/datadog_api_client/v2/models/spans_list_response_links.rb index 43d910386f7c..5ca72f6f41dd 100644 --- a/lib/datadog_api_client/v2/models/spans_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/spans_list_response_links.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb b/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb index c799a21bc0ea..8a4cc2835315 100644 --- a/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb @@ -104,26 +104,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_compute.rb b/lib/datadog_api_client/v2/models/spans_metric_compute.rb index c6ef1aef3d11..618472fd2e03 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_compute.rb @@ -102,26 +102,6 @@ def aggregation_type=(aggregation_type) @aggregation_type = aggregation_type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb b/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb index 8125d129a04e..2e676fa05d86 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb @@ -103,26 +103,6 @@ def compute=(compute) @compute = compute end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_create_data.rb b/lib/datadog_api_client/v2/models/spans_metric_create_data.rb index 5cfb6ed71155..c230499442d3 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_create_data.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_create_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_create_request.rb b/lib/datadog_api_client/v2/models/spans_metric_create_request.rb index 241238825236..c5c558b89a11 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_create_request.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_filter.rb b/lib/datadog_api_client/v2/models/spans_metric_filter.rb index 10689fbcea6a..7dcb165d010d 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_filter.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_group_by.rb b/lib/datadog_api_client/v2/models/spans_metric_group_by.rb index 1f66e33249be..1f75557adf0c 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_group_by.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_group_by.rb @@ -92,26 +92,6 @@ def path=(path) @path = path end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response.rb b/lib/datadog_api_client/v2/models/spans_metric_response.rb index 9e0017f0dc87..511184cb8cea 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb b/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb index 8a6f1eb2ab01..15be1f0aaaed 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb b/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb index dae2e559e488..a538023045fd 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb @@ -84,26 +84,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_data.rb b/lib/datadog_api_client/v2/models/spans_metric_response_data.rb index febffe5d8fa2..7ba51c607947 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_data.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_data.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb b/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb index 1b9699bfa452..06f22faed283 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb b/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb index cdd7f71982cf..dd47b99a652b 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb b/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb index 923b85e95558..33f6a6732d11 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb @@ -85,26 +85,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb b/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb index b4e05371dd03..009ee277e901 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_data.rb b/lib/datadog_api_client/v2/models/spans_metric_update_data.rb index 0ec2abbf03d3..aa19a7d87fa8 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_data.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_request.rb b/lib/datadog_api_client/v2/models/spans_metric_update_request.rb index 338ff5dd6402..82923b15b5c6 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_request.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metrics_response.rb b/lib/datadog_api_client/v2/models/spans_metrics_response.rb index 07d056573e3d..0f9904809463 100644 --- a/lib/datadog_api_client/v2/models/spans_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/spans_metrics_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_query_filter.rb b/lib/datadog_api_client/v2/models/spans_query_filter.rb index 69f736b85798..74731b825a71 100644 --- a/lib/datadog_api_client/v2/models/spans_query_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_query_filter.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_query_options.rb b/lib/datadog_api_client/v2/models/spans_query_options.rb index 634efa14cd98..0c92eb4122ab 100644 --- a/lib/datadog_api_client/v2/models/spans_query_options.rb +++ b/lib/datadog_api_client/v2/models/spans_query_options.rb @@ -75,26 +75,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb b/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb index a0bf243e62a4..76d40e9306c7 100644 --- a/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb @@ -66,26 +66,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_warning.rb b/lib/datadog_api_client/v2/models/spans_warning.rb index ebc08de2b7ad..01dc299f3f67 100644 --- a/lib/datadog_api_client/v2/models/spans_warning.rb +++ b/lib/datadog_api_client/v2/models/spans_warning.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team.rb b/lib/datadog_api_client/v2/models/team.rb index ee4fbfd93847..7fafe9166c93 100644 --- a/lib/datadog_api_client/v2/models/team.rb +++ b/lib/datadog_api_client/v2/models/team.rb @@ -132,26 +132,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_attributes.rb b/lib/datadog_api_client/v2/models/team_attributes.rb index df66d4cb6e2e..d6df30ad25d4 100644 --- a/lib/datadog_api_client/v2/models/team_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_attributes.rb @@ -249,26 +249,6 @@ def user_count=(user_count) @user_count = user_count end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_create.rb b/lib/datadog_api_client/v2/models/team_create.rb index 4850da551abe..860d5604a38d 100644 --- a/lib/datadog_api_client/v2/models/team_create.rb +++ b/lib/datadog_api_client/v2/models/team_create.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_create_attributes.rb b/lib/datadog_api_client/v2/models/team_create_attributes.rb index eef50aa2f117..a432a00fbb4d 100644 --- a/lib/datadog_api_client/v2/models/team_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_create_attributes.rb @@ -169,26 +169,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_create_relationships.rb b/lib/datadog_api_client/v2/models/team_create_relationships.rb index 5a8fceb1ee2f..5edc6eec695b 100644 --- a/lib/datadog_api_client/v2/models/team_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/team_create_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_create_request.rb b/lib/datadog_api_client/v2/models/team_create_request.rb index 8f3f64841549..cba3bc06e70b 100644 --- a/lib/datadog_api_client/v2/models/team_create_request.rb +++ b/lib/datadog_api_client/v2/models/team_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link.rb b/lib/datadog_api_client/v2/models/team_link.rb index 354b57ae00bd..2654c944c927 100644 --- a/lib/datadog_api_client/v2/models/team_link.rb +++ b/lib/datadog_api_client/v2/models/team_link.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link_attributes.rb b/lib/datadog_api_client/v2/models/team_link_attributes.rb index 54133b6163fb..8aab72c600f7 100644 --- a/lib/datadog_api_client/v2/models/team_link_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_link_attributes.rb @@ -136,26 +136,6 @@ def url=(url) @url = url end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link_create.rb b/lib/datadog_api_client/v2/models/team_link_create.rb index c78c86a985d6..6a3861438c18 100644 --- a/lib/datadog_api_client/v2/models/team_link_create.rb +++ b/lib/datadog_api_client/v2/models/team_link_create.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link_create_request.rb b/lib/datadog_api_client/v2/models/team_link_create_request.rb index ccbb4a91e3a7..e126ab9e982f 100644 --- a/lib/datadog_api_client/v2/models/team_link_create_request.rb +++ b/lib/datadog_api_client/v2/models/team_link_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link_response.rb b/lib/datadog_api_client/v2/models/team_link_response.rb index 73f448f2ccfb..0d22b7421bb3 100644 --- a/lib/datadog_api_client/v2/models/team_link_response.rb +++ b/lib/datadog_api_client/v2/models/team_link_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_links_response.rb b/lib/datadog_api_client/v2/models/team_links_response.rb index d28d2b3f68d3..173f47a8af56 100644 --- a/lib/datadog_api_client/v2/models/team_links_response.rb +++ b/lib/datadog_api_client/v2/models/team_links_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting.rb b/lib/datadog_api_client/v2/models/team_permission_setting.rb index 27fa3b9568d8..2381efd54a1c 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb b/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb index 59292c7d23a3..60042c9001dc 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb @@ -103,26 +103,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_response.rb b/lib/datadog_api_client/v2/models/team_permission_setting_response.rb index 45a3fd7fb700..0813430529a8 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_response.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_update.rb b/lib/datadog_api_client/v2/models/team_permission_setting_update.rb index b3a4c28b5261..5f11f971b1ad 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_update.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_update.rb @@ -92,26 +92,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb b/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb index 3a6e0f02288f..8f7c2117f156 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb b/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb index 650c13465fd3..9e258254885d 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_settings_response.rb b/lib/datadog_api_client/v2/models/team_permission_settings_response.rb index 474145882c88..8fc2ab370cdd 100644 --- a/lib/datadog_api_client/v2/models/team_permission_settings_response.rb +++ b/lib/datadog_api_client/v2/models/team_permission_settings_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_relationships.rb b/lib/datadog_api_client/v2/models/team_relationships.rb index bcd521b1916e..69d6f2fc924f 100644 --- a/lib/datadog_api_client/v2/models/team_relationships.rb +++ b/lib/datadog_api_client/v2/models/team_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_relationships_links.rb b/lib/datadog_api_client/v2/models/team_relationships_links.rb index a3898b6219e6..3bf58d2ef56b 100644 --- a/lib/datadog_api_client/v2/models/team_relationships_links.rb +++ b/lib/datadog_api_client/v2/models/team_relationships_links.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_response.rb b/lib/datadog_api_client/v2/models/team_response.rb index cc100360ade7..e706754a527a 100644 --- a/lib/datadog_api_client/v2/models/team_response.rb +++ b/lib/datadog_api_client/v2/models/team_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_update.rb b/lib/datadog_api_client/v2/models/team_update.rb index 25d56989c757..9433cd7f9432 100644 --- a/lib/datadog_api_client/v2/models/team_update.rb +++ b/lib/datadog_api_client/v2/models/team_update.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_update_attributes.rb b/lib/datadog_api_client/v2/models/team_update_attributes.rb index ff188cc581ad..e2ce84cd8934 100644 --- a/lib/datadog_api_client/v2/models/team_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_update_attributes.rb @@ -193,26 +193,6 @@ def name=(name) @name = name end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_update_relationships.rb b/lib/datadog_api_client/v2/models/team_update_relationships.rb index 74c6e29fff9c..853e72ab7168 100644 --- a/lib/datadog_api_client/v2/models/team_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/team_update_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_update_request.rb b/lib/datadog_api_client/v2/models/team_update_request.rb index 5769778f2af1..3d26c4c9015a 100644 --- a/lib/datadog_api_client/v2/models/team_update_request.rb +++ b/lib/datadog_api_client/v2/models/team_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/teams_response.rb b/lib/datadog_api_client/v2/models/teams_response.rb index 4637c2ac8bfd..d7fa0aee529e 100644 --- a/lib/datadog_api_client/v2/models/teams_response.rb +++ b/lib/datadog_api_client/v2/models/teams_response.rb @@ -96,26 +96,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/teams_response_links.rb b/lib/datadog_api_client/v2/models/teams_response_links.rb index d6971279fe85..abfb341096d4 100644 --- a/lib/datadog_api_client/v2/models/teams_response_links.rb +++ b/lib/datadog_api_client/v2/models/teams_response_links.rb @@ -110,26 +110,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/teams_response_meta.rb b/lib/datadog_api_client/v2/models/teams_response_meta.rb index d0df35cf4663..7b332b25c44a 100644 --- a/lib/datadog_api_client/v2/models/teams_response_meta.rb +++ b/lib/datadog_api_client/v2/models/teams_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb index d169f3dd87dd..ecc8737a1e51 100644 --- a/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb @@ -128,26 +128,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb b/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb index 15f6c2d157fa..0353d90c38c5 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb b/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb index fc593b0ea1a9..3ef283f827a4 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_request.rb b/lib/datadog_api_client/v2/models/timeseries_formula_request.rb index d2cc1099759d..f885559b4b6e 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_request.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_request.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb b/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb index e7aae8a68e2c..d3bcac05a688 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb @@ -148,26 +148,6 @@ def to=(to) @to = to end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_response.rb b/lib/datadog_api_client/v2/models/timeseries_response.rb index 1608be3a93f9..0763fc7641f8 100644 --- a/lib/datadog_api_client/v2/models/timeseries_response.rb +++ b/lib/datadog_api_client/v2/models/timeseries_response.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb b/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb index f94629c3924e..a2063a2c7cd6 100644 --- a/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb @@ -89,26 +89,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_response_series.rb b/lib/datadog_api_client/v2/models/timeseries_response_series.rb index 2d4e27c32ff2..9aceba1bb410 100644 --- a/lib/datadog_api_client/v2/models/timeseries_response_series.rb +++ b/lib/datadog_api_client/v2/models/timeseries_response_series.rb @@ -116,26 +116,6 @@ def query_index=(query_index) @query_index = query_index end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/unit.rb b/lib/datadog_api_client/v2/models/unit.rb index 6fd70417303d..565e6136ae0b 100644 --- a/lib/datadog_api_client/v2/models/unit.rb +++ b/lib/datadog_api_client/v2/models/unit.rb @@ -101,26 +101,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_open_api_response.rb b/lib/datadog_api_client/v2/models/update_open_api_response.rb index 4fdbd9cf62d6..1155c6794540 100644 --- a/lib/datadog_api_client/v2/models/update_open_api_response.rb +++ b/lib/datadog_api_client/v2/models/update_open_api_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb b/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb index ab4aee9e5a6a..ab1b9eece27b 100644 --- a/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_open_api_response_data.rb b/lib/datadog_api_client/v2/models/update_open_api_response_data.rb index f1b577e82717..cac9765cc59e 100644 --- a/lib/datadog_api_client/v2/models/update_open_api_response_data.rb +++ b/lib/datadog_api_client/v2/models/update_open_api_response_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_rule_request.rb b/lib/datadog_api_client/v2/models/update_rule_request.rb index 3710a4709c95..230a6fb34f37 100644 --- a/lib/datadog_api_client/v2/models/update_rule_request.rb +++ b/lib/datadog_api_client/v2/models/update_rule_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_rule_request_data.rb b/lib/datadog_api_client/v2/models/update_rule_request_data.rb index 871c17d4b4dc..c790a3a081de 100644 --- a/lib/datadog_api_client/v2/models/update_rule_request_data.rb +++ b/lib/datadog_api_client/v2/models/update_rule_request_data.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_rule_response.rb b/lib/datadog_api_client/v2/models/update_rule_response.rb index 19d4dcaeba1c..291ae12204d7 100644 --- a/lib/datadog_api_client/v2/models/update_rule_response.rb +++ b/lib/datadog_api_client/v2/models/update_rule_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_rule_response_data.rb b/lib/datadog_api_client/v2/models/update_rule_response_data.rb index bac908be502d..9549bc69bae9 100644 --- a/lib/datadog_api_client/v2/models/update_rule_response_data.rb +++ b/lib/datadog_api_client/v2/models/update_rule_response_data.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb b/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb index a590953f4b4e..01d7c2bf6b56 100644 --- a/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb +++ b/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_attributes_object.rb b/lib/datadog_api_client/v2/models/usage_attributes_object.rb index ffd8644c4e96..d6639e7b8c33 100644 --- a/lib/datadog_api_client/v2/models/usage_attributes_object.rb +++ b/lib/datadog_api_client/v2/models/usage_attributes_object.rb @@ -112,26 +112,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_data_object.rb b/lib/datadog_api_client/v2/models/usage_data_object.rb index 0aab723fc922..979f6eefd336 100644 --- a/lib/datadog_api_client/v2/models/usage_data_object.rb +++ b/lib/datadog_api_client/v2/models/usage_data_object.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb b/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb index 84960bdb2747..84bda383cff6 100644 --- a/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb +++ b/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb b/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb index 260323100be3..2efe9ec08597 100644 --- a/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb +++ b/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_time_series_object.rb b/lib/datadog_api_client/v2/models/usage_time_series_object.rb index 7f123cf073de..f2bad8bda47d 100644 --- a/lib/datadog_api_client/v2/models/usage_time_series_object.rb +++ b/lib/datadog_api_client/v2/models/usage_time_series_object.rb @@ -82,26 +82,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 57cf97829f91..648d42d0f790 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index 91d8aa455c80..ca8e4ba649ce 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -173,26 +173,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_create_attributes.rb b/lib/datadog_api_client/v2/models/user_create_attributes.rb index cafc4cfd157f..e726b7422ba2 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -101,26 +101,6 @@ def email=(email) @email = email end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_create_data.rb b/lib/datadog_api_client/v2/models/user_create_data.rb index 1405f7caaf47..c04d233b2acf 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_create_request.rb b/lib/datadog_api_client/v2/models/user_create_request.rb index 29507599b0c3..984161b0789f 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_data.rb b/lib/datadog_api_client/v2/models/user_invitation_data.rb index 27859d19db8e..758eb2d9f26f 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb b/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb index b87669c46036..5c98659e82d8 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb index 26af6f9c6f59..f862440429fc 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -83,26 +83,6 @@ def user=(user) @user = user end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_response.rb b/lib/datadog_api_client/v2/models/user_invitation_response.rb index 7fef94878fcf..e82ff014ee12 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_response_data.rb b/lib/datadog_api_client/v2/models/user_invitation_response_data.rb index c50ed06b362c..a86a7b23fad6 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response_data.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitations_request.rb b/lib/datadog_api_client/v2/models/user_invitations_request.rb index f755d91d5bc0..89e63bc2ce45 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitations_response.rb b/lib/datadog_api_client/v2/models/user_invitations_response.rb index 47c1cceb2f2b..6184f06fa72a 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -67,26 +67,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_relationship_data.rb b/lib/datadog_api_client/v2/models/user_relationship_data.rb index 5b12437600f8..9c91bcf60a3e 100644 --- a/lib/datadog_api_client/v2/models/user_relationship_data.rb +++ b/lib/datadog_api_client/v2/models/user_relationship_data.rb @@ -103,26 +103,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index 2950c9e65bb0..472f6605f69d 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index 1b78dd68ad6b..2eed391830e1 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_response_relationships.rb b/lib/datadog_api_client/v2/models/user_response_relationships.rb index d8f4e91f6eda..b253157fb08e 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -92,26 +92,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team.rb b/lib/datadog_api_client/v2/models/user_team.rb index 962bfe24746f..a271799a56d7 100644 --- a/lib/datadog_api_client/v2/models/user_team.rb +++ b/lib/datadog_api_client/v2/models/user_team.rb @@ -121,26 +121,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_attributes.rb b/lib/datadog_api_client/v2/models/user_team_attributes.rb index a7ffec1bd835..03d67d0cf5bf 100644 --- a/lib/datadog_api_client/v2/models/user_team_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_team_attributes.rb @@ -94,26 +94,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_create.rb b/lib/datadog_api_client/v2/models/user_team_create.rb index 2fe95f61e066..60a76d158776 100644 --- a/lib/datadog_api_client/v2/models/user_team_create.rb +++ b/lib/datadog_api_client/v2/models/user_team_create.rb @@ -101,26 +101,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_permission.rb b/lib/datadog_api_client/v2/models/user_team_permission.rb index 7660fce9739c..e8afd073d96d 100644 --- a/lib/datadog_api_client/v2/models/user_team_permission.rb +++ b/lib/datadog_api_client/v2/models/user_team_permission.rb @@ -112,26 +112,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb b/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb index 968d897bdce5..fd805976dc5f 100644 --- a/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_relationships.rb b/lib/datadog_api_client/v2/models/user_team_relationships.rb index a525edfdff45..df824d011047 100644 --- a/lib/datadog_api_client/v2/models/user_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_team_relationships.rb @@ -74,26 +74,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_request.rb b/lib/datadog_api_client/v2/models/user_team_request.rb index e8e512616fcc..563957da01aa 100644 --- a/lib/datadog_api_client/v2/models/user_team_request.rb +++ b/lib/datadog_api_client/v2/models/user_team_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_response.rb b/lib/datadog_api_client/v2/models/user_team_response.rb index 21e33e7053f9..811e9fa8a696 100644 --- a/lib/datadog_api_client/v2/models/user_team_response.rb +++ b/lib/datadog_api_client/v2/models/user_team_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_update.rb b/lib/datadog_api_client/v2/models/user_team_update.rb index bfdff8f07829..66fd739cc463 100644 --- a/lib/datadog_api_client/v2/models/user_team_update.rb +++ b/lib/datadog_api_client/v2/models/user_team_update.rb @@ -92,26 +92,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_update_request.rb b/lib/datadog_api_client/v2/models/user_team_update_request.rb index f13ccb41ad42..ac48aa7c779a 100644 --- a/lib/datadog_api_client/v2/models/user_team_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_team_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_teams_response.rb b/lib/datadog_api_client/v2/models/user_teams_response.rb index 2e0d377121cc..705b226bc4f5 100644 --- a/lib/datadog_api_client/v2/models/user_teams_response.rb +++ b/lib/datadog_api_client/v2/models/user_teams_response.rb @@ -96,26 +96,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_update_attributes.rb b/lib/datadog_api_client/v2/models/user_update_attributes.rb index b1680102e00a..5702b940caf0 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -83,26 +83,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_update_data.rb b/lib/datadog_api_client/v2/models/user_update_data.rb index 44dd7992737d..8ea1d1f0a2c1 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -123,26 +123,6 @@ def type=(type) @type = type end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_update_request.rb b/lib/datadog_api_client/v2/models/user_update_request.rb index 3041665e48b7..82bb3cf5b74a 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -83,26 +83,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/users_relationship.rb b/lib/datadog_api_client/v2/models/users_relationship.rb index cadff8079b12..293447b57fb5 100644 --- a/lib/datadog_api_client/v2/models/users_relationship.rb +++ b/lib/datadog_api_client/v2/models/users_relationship.rb @@ -85,26 +85,6 @@ def data=(data) @data = data end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index 8f07c4f366e4..06f6dbaadc1a 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -87,26 +87,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb index 6f4f75633a5e..7cfb369bd43f 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb index 208a8b2ddd96..a8c6d9671352 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb index 6754c213474a..8a0073a18a5b 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb index 2fc0ffdb64de..74d71425f37c 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb b/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb index 90c62aa8e9c0..baba41d8f676 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb b/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb index 068f01c6d868..da52912152e6 100644 --- a/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb +++ b/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb @@ -76,26 +76,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb index c87b95937492..15d00c3cc5e2 100644 --- a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb +++ b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb index e8c8407c75ad..1b8261e7b3e5 100644 --- a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb index bc20541c8452..8d6f1d23f9b7 100644 --- a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb +++ b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb index c659bc1418bc..5f6588ecd8ee 100644 --- a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb +++ b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb b/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb index 03fca32146da..deb6f5ded287 100644 --- a/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb +++ b/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb index 81006e7e2814..a7f0a78f7f35 100644 --- a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb +++ b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb index 512e22305e25..eb4abdd09170 100644 --- a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb @@ -65,26 +65,6 @@ def initialize(attributes = {}) end end - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private From eee549c7cad0491ede54af49efa4f9893b547ad6 Mon Sep 17 00:00:00 2001 From: Anika Maskara Date: Tue, 20 Aug 2024 10:29:20 -0400 Subject: [PATCH 07/11] Revert "regenerated" This reverts commit ee22b04d973e8368a34c001aa15d62c2fe4d96b7. --- lib/datadog_api_client/v1/model_base.rb | 7 ++----- .../models/add_signal_to_incident_request.rb | 20 +++++++++++++++++++ .../models/alert_graph_widget_definition.rb | 20 +++++++++++++++++++ .../models/alert_value_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/api_error_response.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/api_key.rb | 20 +++++++++++++++++++ .../v1/models/api_key_list_response.rb | 20 +++++++++++++++++++ .../v1/models/api_key_response.rb | 20 +++++++++++++++++++ .../v1/models/apm_stats_query_column_type.rb | 20 +++++++++++++++++++ .../v1/models/apm_stats_query_definition.rb | 20 +++++++++++++++++++ .../v1/models/application_key.rb | 20 +++++++++++++++++++ .../models/application_key_list_response.rb | 20 +++++++++++++++++++ .../v1/models/application_key_response.rb | 20 +++++++++++++++++++ .../authentication_validation_response.rb | 20 +++++++++++++++++++ .../v1/models/aws_account.rb | 20 +++++++++++++++++++ .../models/aws_account_and_lambda_request.rb | 20 +++++++++++++++++++ .../v1/models/aws_account_create_response.rb | 20 +++++++++++++++++++ .../v1/models/aws_account_delete_request.rb | 20 +++++++++++++++++++ .../v1/models/aws_account_list_response.rb | 20 +++++++++++++++++++ .../aws_event_bridge_account_configuration.rb | 20 +++++++++++++++++++ .../models/aws_event_bridge_create_request.rb | 20 +++++++++++++++++++ .../aws_event_bridge_create_response.rb | 20 +++++++++++++++++++ .../models/aws_event_bridge_delete_request.rb | 20 +++++++++++++++++++ .../aws_event_bridge_delete_response.rb | 20 +++++++++++++++++++ .../models/aws_event_bridge_list_response.rb | 20 +++++++++++++++++++ .../v1/models/aws_event_bridge_source.rb | 20 +++++++++++++++++++ .../v1/models/aws_logs_async_error.rb | 20 +++++++++++++++++++ .../v1/models/aws_logs_async_response.rb | 20 +++++++++++++++++++ .../v1/models/aws_logs_lambda.rb | 20 +++++++++++++++++++ .../v1/models/aws_logs_list_response.rb | 20 +++++++++++++++++++ .../models/aws_logs_list_services_response.rb | 20 +++++++++++++++++++ .../v1/models/aws_logs_services_request.rb | 20 +++++++++++++++++++ .../v1/models/aws_tag_filter.rb | 20 +++++++++++++++++++ .../models/aws_tag_filter_create_request.rb | 20 +++++++++++++++++++ .../models/aws_tag_filter_delete_request.rb | 20 +++++++++++++++++++ .../v1/models/aws_tag_filter_list_response.rb | 20 +++++++++++++++++++ .../v1/models/azure_account.rb | 20 +++++++++++++++++++ .../v1/models/azure_account_metrics_config.rb | 20 +++++++++++++++++++ .../cancel_downtimes_by_scope_request.rb | 20 +++++++++++++++++++ .../v1/models/canceled_downtimes_ids.rb | 20 +++++++++++++++++++ .../v1/models/change_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/change_widget_request.rb | 20 +++++++++++++++++++ .../check_can_delete_monitor_response.rb | 20 +++++++++++++++++++ .../check_can_delete_monitor_response_data.rb | 20 +++++++++++++++++++ .../models/check_can_delete_slo_response.rb | 20 +++++++++++++++++++ .../check_can_delete_slo_response_data.rb | 20 +++++++++++++++++++ .../models/check_status_widget_definition.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/creator.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/dashboard.rb | 20 +++++++++++++++++++ .../v1/models/dashboard_bulk_action_data.rb | 20 +++++++++++++++++++ .../models/dashboard_bulk_delete_request.rb | 20 +++++++++++++++++++ .../v1/models/dashboard_delete_response.rb | 20 +++++++++++++++++++ .../v1/models/dashboard_global_time.rb | 20 +++++++++++++++++++ .../v1/models/dashboard_list.rb | 20 +++++++++++++++++++ .../models/dashboard_list_delete_response.rb | 20 +++++++++++++++++++ .../v1/models/dashboard_list_list_response.rb | 20 +++++++++++++++++++ .../v1/models/dashboard_restore_request.rb | 20 +++++++++++++++++++ .../v1/models/dashboard_summary.rb | 20 +++++++++++++++++++ .../v1/models/dashboard_summary_definition.rb | 20 +++++++++++++++++++ .../v1/models/dashboard_template_variable.rb | 20 +++++++++++++++++++ .../dashboard_template_variable_preset.rb | 20 +++++++++++++++++++ ...ashboard_template_variable_preset_value.rb | 20 +++++++++++++++++++ .../delete_shared_dashboard_response.rb | 20 +++++++++++++++++++ .../v1/models/deleted_monitor.rb | 20 +++++++++++++++++++ .../v1/models/distribution_points_payload.rb | 20 +++++++++++++++++++ .../v1/models/distribution_points_series.rb | 20 +++++++++++++++++++ .../models/distribution_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/distribution_widget_request.rb | 20 +++++++++++++++++++ .../v1/models/distribution_widget_x_axis.rb | 20 +++++++++++++++++++ .../v1/models/distribution_widget_y_axis.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/downtime.rb | 20 +++++++++++++++++++ .../v1/models/downtime_child.rb | 20 +++++++++++++++++++ .../v1/models/downtime_recurrence.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/event.rb | 20 +++++++++++++++++++ .../v1/models/event_create_request.rb | 20 +++++++++++++++++++ .../v1/models/event_create_response.rb | 20 +++++++++++++++++++ .../v1/models/event_list_response.rb | 20 +++++++++++++++++++ .../v1/models/event_query_definition.rb | 20 +++++++++++++++++++ .../v1/models/event_response.rb | 20 +++++++++++++++++++ .../models/event_stream_widget_definition.rb | 20 +++++++++++++++++++ .../event_timeline_widget_definition.rb | 20 +++++++++++++++++++ ...n_apm_dependency_stats_query_definition.rb | 20 +++++++++++++++++++ ...ion_apm_resource_stats_query_definition.rb | 20 +++++++++++++++++++ ...nd_function_cloud_cost_query_definition.rb | 20 +++++++++++++++++++ ...ula_and_function_event_query_definition.rb | 20 +++++++++++++++++++ ...function_event_query_definition_compute.rb | 20 +++++++++++++++++++ ..._function_event_query_definition_search.rb | 20 +++++++++++++++++++ ...rmula_and_function_event_query_group_by.rb | 20 +++++++++++++++++++ ..._and_function_event_query_group_by_sort.rb | 20 +++++++++++++++++++ ...la_and_function_metric_query_definition.rb | 20 +++++++++++++++++++ ...a_and_function_process_query_definition.rb | 20 +++++++++++++++++++ ...rmula_and_function_slo_query_definition.rb | 20 +++++++++++++++++++ .../v1/models/free_text_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/funnel_query.rb | 20 +++++++++++++++++++ .../v1/models/funnel_step.rb | 20 +++++++++++++++++++ .../v1/models/funnel_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/funnel_widget_request.rb | 20 +++++++++++++++++++ .../v1/models/gcp_account.rb | 20 +++++++++++++++++++ .../v1/models/geomap_widget_definition.rb | 20 +++++++++++++++++++ .../models/geomap_widget_definition_style.rb | 20 +++++++++++++++++++ .../models/geomap_widget_definition_view.rb | 20 +++++++++++++++++++ .../v1/models/geomap_widget_request.rb | 20 +++++++++++++++++++ .../v1/models/graph_snapshot.rb | 20 +++++++++++++++++++ .../v1/models/group_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/heat_map_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/heat_map_widget_request.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/host.rb | 20 +++++++++++++++++++ .../v1/models/host_list_response.rb | 20 +++++++++++++++++++ .../v1/models/host_map_request.rb | 20 +++++++++++++++++++ .../v1/models/host_map_widget_definition.rb | 20 +++++++++++++++++++ .../host_map_widget_definition_requests.rb | 20 +++++++++++++++++++ .../host_map_widget_definition_style.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/host_meta.rb | 20 +++++++++++++++++++ .../v1/models/host_meta_install_method.rb | 20 +++++++++++++++++++ .../v1/models/host_metrics.rb | 20 +++++++++++++++++++ .../v1/models/host_mute_response.rb | 20 +++++++++++++++++++ .../v1/models/host_mute_settings.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/host_tags.rb | 20 +++++++++++++++++++ .../v1/models/host_totals.rb | 20 +++++++++++++++++++ .../models/hourly_usage_attribution_body.rb | 20 +++++++++++++++++++ .../hourly_usage_attribution_metadata.rb | 20 +++++++++++++++++++ .../hourly_usage_attribution_pagination.rb | 20 +++++++++++++++++++ .../hourly_usage_attribution_response.rb | 20 +++++++++++++++++++ .../v1/models/http_log_error.rb | 20 +++++++++++++++++++ .../v1/models/http_log_item.rb | 20 +++++++++++++++++++ .../v1/models/i_frame_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/idp_form_data.rb | 20 +++++++++++++++++++ .../v1/models/idp_response.rb | 20 +++++++++++++++++++ .../v1/models/image_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/intake_payload_accepted.rb | 20 +++++++++++++++++++ .../v1/models/ip_prefixes_agents.rb | 20 +++++++++++++++++++ .../v1/models/ip_prefixes_api.rb | 20 +++++++++++++++++++ .../v1/models/ip_prefixes_apm.rb | 20 +++++++++++++++++++ .../v1/models/ip_prefixes_global.rb | 20 +++++++++++++++++++ .../v1/models/ip_prefixes_logs.rb | 20 +++++++++++++++++++ .../v1/models/ip_prefixes_orchestrator.rb | 20 +++++++++++++++++++ .../v1/models/ip_prefixes_process.rb | 20 +++++++++++++++++++ .../ip_prefixes_remote_configuration.rb | 20 +++++++++++++++++++ .../v1/models/ip_prefixes_synthetics.rb | 20 +++++++++++++++++++ ...p_prefixes_synthetics_private_locations.rb | 20 +++++++++++++++++++ .../v1/models/ip_prefixes_webhooks.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/ip_ranges.rb | 20 +++++++++++++++++++ .../v1/models/list_stream_column.rb | 20 +++++++++++++++++++ .../v1/models/list_stream_compute_items.rb | 20 +++++++++++++++++++ .../v1/models/list_stream_group_by_items.rb | 20 +++++++++++++++++++ .../v1/models/list_stream_query.rb | 20 +++++++++++++++++++ .../models/list_stream_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/list_stream_widget_request.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/log.rb | 20 +++++++++++++++++++ .../v1/models/log_content.rb | 20 +++++++++++++++++++ .../v1/models/log_query_definition.rb | 20 +++++++++++++++++++ .../models/log_query_definition_group_by.rb | 20 +++++++++++++++++++ .../log_query_definition_group_by_sort.rb | 20 +++++++++++++++++++ .../v1/models/log_query_definition_search.rb | 20 +++++++++++++++++++ .../v1/models/log_stream_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/logs_api_error.rb | 20 +++++++++++++++++++ .../v1/models/logs_api_error_response.rb | 20 +++++++++++++++++++ .../v1/models/logs_arithmetic_processor.rb | 20 +++++++++++++++++++ .../v1/models/logs_attribute_remapper.rb | 20 +++++++++++++++++++ .../v1/models/logs_by_retention.rb | 20 +++++++++++++++++++ .../models/logs_by_retention_monthly_usage.rb | 20 +++++++++++++++++++ .../v1/models/logs_by_retention_org_usage.rb | 20 +++++++++++++++++++ .../v1/models/logs_by_retention_orgs.rb | 20 +++++++++++++++++++ .../v1/models/logs_category_processor.rb | 20 +++++++++++++++++++ .../logs_category_processor_category.rb | 20 +++++++++++++++++++ .../v1/models/logs_daily_limit_reset.rb | 20 +++++++++++++++++++ .../v1/models/logs_date_remapper.rb | 20 +++++++++++++++++++ .../v1/models/logs_exclusion.rb | 20 +++++++++++++++++++ .../v1/models/logs_exclusion_filter.rb | 20 +++++++++++++++++++ .../v1/models/logs_filter.rb | 20 +++++++++++++++++++ .../v1/models/logs_geo_ip_parser.rb | 20 +++++++++++++++++++ .../v1/models/logs_grok_parser.rb | 20 +++++++++++++++++++ .../v1/models/logs_grok_parser_rules.rb | 20 +++++++++++++++++++ .../v1/models/logs_index.rb | 20 +++++++++++++++++++ .../v1/models/logs_index_list_response.rb | 20 +++++++++++++++++++ .../v1/models/logs_index_update_request.rb | 20 +++++++++++++++++++ .../v1/models/logs_indexes_order.rb | 20 +++++++++++++++++++ .../v1/models/logs_list_request.rb | 20 +++++++++++++++++++ .../v1/models/logs_list_request_time.rb | 20 +++++++++++++++++++ .../v1/models/logs_list_response.rb | 20 +++++++++++++++++++ .../v1/models/logs_lookup_processor.rb | 20 +++++++++++++++++++ .../v1/models/logs_message_remapper.rb | 20 +++++++++++++++++++ .../v1/models/logs_pipeline.rb | 20 +++++++++++++++++++ .../v1/models/logs_pipeline_processor.rb | 20 +++++++++++++++++++ .../v1/models/logs_pipelines_order.rb | 20 +++++++++++++++++++ .../v1/models/logs_query_compute.rb | 20 +++++++++++++++++++ .../v1/models/logs_retention_agg_sum_usage.rb | 20 +++++++++++++++++++ .../v1/models/logs_retention_sum_usage.rb | 20 +++++++++++++++++++ .../v1/models/logs_service_remapper.rb | 20 +++++++++++++++++++ .../v1/models/logs_status_remapper.rb | 20 +++++++++++++++++++ .../models/logs_string_builder_processor.rb | 20 +++++++++++++++++++ .../v1/models/logs_trace_remapper.rb | 20 +++++++++++++++++++ .../v1/models/logs_url_parser.rb | 20 +++++++++++++++++++ .../v1/models/logs_user_agent_parser.rb | 20 +++++++++++++++++++ .../v1/models/matching_downtime.rb | 20 +++++++++++++++++++ .../v1/models/metric_metadata.rb | 20 +++++++++++++++++++ .../v1/models/metric_search_response.rb | 20 +++++++++++++++++++ .../models/metric_search_response_results.rb | 20 +++++++++++++++++++ .../v1/models/metrics_list_response.rb | 20 +++++++++++++++++++ .../v1/models/metrics_payload.rb | 20 +++++++++++++++++++ .../v1/models/metrics_query_metadata.rb | 20 +++++++++++++++++++ .../v1/models/metrics_query_response.rb | 20 +++++++++++++++++++ .../v1/models/metrics_query_unit.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/monitor.rb | 20 +++++++++++++++++++ ...ula_and_function_event_query_definition.rb | 20 +++++++++++++++++++ ...function_event_query_definition_compute.rb | 20 +++++++++++++++++++ ..._function_event_query_definition_search.rb | 20 +++++++++++++++++++ ...rmula_and_function_event_query_group_by.rb | 20 +++++++++++++++++++ ..._and_function_event_query_group_by_sort.rb | 20 +++++++++++++++++++ .../models/monitor_group_search_response.rb | 20 +++++++++++++++++++ .../monitor_group_search_response_counts.rb | 20 +++++++++++++++++++ .../v1/models/monitor_group_search_result.rb | 20 +++++++++++++++++++ .../v1/models/monitor_options.rb | 20 +++++++++++++++++++ .../v1/models/monitor_options_aggregation.rb | 20 +++++++++++++++++++ .../models/monitor_options_custom_schedule.rb | 20 +++++++++++++++++++ ...itor_options_custom_schedule_recurrence.rb | 20 +++++++++++++++++++ .../monitor_options_scheduling_options.rb | 20 +++++++++++++++++++ ...ns_scheduling_options_evaluation_window.rb | 20 +++++++++++++++++++ .../v1/models/monitor_search_count_item.rb | 20 +++++++++++++++++++ .../v1/models/monitor_search_response.rb | 20 +++++++++++++++++++ .../models/monitor_search_response_counts.rb | 20 +++++++++++++++++++ .../monitor_search_response_metadata.rb | 20 +++++++++++++++++++ .../v1/models/monitor_search_result.rb | 20 +++++++++++++++++++ .../monitor_search_result_notification.rb | 20 +++++++++++++++++++ .../v1/models/monitor_state.rb | 20 +++++++++++++++++++ .../v1/models/monitor_state_group.rb | 20 +++++++++++++++++++ .../monitor_summary_widget_definition.rb | 20 +++++++++++++++++++ .../monitor_threshold_window_options.rb | 20 +++++++++++++++++++ .../v1/models/monitor_thresholds.rb | 20 +++++++++++++++++++ .../v1/models/monitor_update_request.rb | 20 +++++++++++++++++++ .../models/monthly_usage_attribution_body.rb | 20 +++++++++++++++++++ .../monthly_usage_attribution_metadata.rb | 20 +++++++++++++++++++ .../monthly_usage_attribution_pagination.rb | 20 +++++++++++++++++++ .../monthly_usage_attribution_response.rb | 20 +++++++++++++++++++ .../monthly_usage_attribution_values.rb | 20 +++++++++++++++++++ .../v1/models/note_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/notebook_absolute_time.rb | 20 +++++++++++++++++++ .../v1/models/notebook_author.rb | 20 +++++++++++++++++++ .../v1/models/notebook_cell_create_request.rb | 16 --------------- .../v1/models/notebook_cell_response.rb | 20 +++++++++++++++++++ .../v1/models/notebook_cell_update_request.rb | 20 +++++++++++++++++++ .../v1/models/notebook_create_data.rb | 20 +++++++++++++++++++ .../models/notebook_create_data_attributes.rb | 20 +++++++++++++++++++ .../v1/models/notebook_create_request.rb | 20 +++++++++++++++++++ .../notebook_distribution_cell_attributes.rb | 20 +++++++++++++++++++ .../notebook_heat_map_cell_attributes.rb | 20 +++++++++++++++++++ .../notebook_log_stream_cell_attributes.rb | 20 +++++++++++++++++++ .../notebook_markdown_cell_attributes.rb | 20 +++++++++++++++++++ .../notebook_markdown_cell_definition.rb | 20 +++++++++++++++++++ .../v1/models/notebook_metadata.rb | 20 +++++++++++++++++++ .../v1/models/notebook_relative_time.rb | 20 +++++++++++++++++++ .../v1/models/notebook_response.rb | 20 +++++++++++++++++++ .../v1/models/notebook_response_data.rb | 20 +++++++++++++++++++ .../notebook_response_data_attributes.rb | 20 +++++++++++++++++++ .../v1/models/notebook_split_by.rb | 20 +++++++++++++++++++ .../notebook_timeseries_cell_attributes.rb | 20 +++++++++++++++++++ .../notebook_toplist_cell_attributes.rb | 20 +++++++++++++++++++ .../v1/models/notebook_update_data.rb | 20 +++++++++++++++++++ .../models/notebook_update_data_attributes.rb | 20 +++++++++++++++++++ .../v1/models/notebook_update_request.rb | 20 +++++++++++++++++++ .../v1/models/notebooks_response.rb | 20 +++++++++++++++++++ .../v1/models/notebooks_response_data.rb | 20 +++++++++++++++++++ .../notebooks_response_data_attributes.rb | 20 +++++++++++++++++++ .../v1/models/notebooks_response_meta.rb | 20 +++++++++++++++++++ .../v1/models/notebooks_response_page.rb | 20 +++++++++++++++++++ .../v1/models/org_downgraded_response.rb | 20 +++++++++++++++++++ .../v1/models/organization.rb | 20 +++++++++++++++++++ .../v1/models/organization_billing.rb | 20 +++++++++++++++++++ .../v1/models/organization_create_body.rb | 20 +++++++++++++++++++ .../v1/models/organization_create_response.rb | 20 +++++++++++++++++++ .../v1/models/organization_list_response.rb | 20 +++++++++++++++++++ .../v1/models/organization_response.rb | 20 +++++++++++++++++++ .../v1/models/organization_settings.rb | 20 +++++++++++++++++++ .../v1/models/organization_settings_saml.rb | 20 +++++++++++++++++++ ..._settings_saml_autocreate_users_domains.rb | 20 +++++++++++++++++++ ...ation_settings_saml_idp_initiated_login.rb | 20 +++++++++++++++++++ .../organization_settings_saml_strict_mode.rb | 20 +++++++++++++++++++ .../v1/models/organization_subscription.rb | 20 +++++++++++++++++++ .../v1/models/pager_duty_service.rb | 20 +++++++++++++++++++ .../v1/models/pager_duty_service_key.rb | 20 +++++++++++++++++++ .../v1/models/pager_duty_service_name.rb | 20 +++++++++++++++++++ .../v1/models/pagination.rb | 20 +++++++++++++++++++ .../powerpack_template_variable_contents.rb | 20 +++++++++++++++++++ .../v1/models/powerpack_template_variables.rb | 20 +++++++++++++++++++ .../v1/models/powerpack_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/process_query_definition.rb | 20 +++++++++++++++++++ .../models/query_value_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/query_value_widget_request.rb | 20 +++++++++++++++++++ .../reference_table_logs_lookup_processor.rb | 20 +++++++++++++++++++ .../v1/models/response_meta_attributes.rb | 20 +++++++++++++++++++ .../models/run_workflow_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/run_workflow_widget_input.rb | 20 +++++++++++++++++++ .../v1/models/scatter_plot_request.rb | 20 +++++++++++++++++++ .../models/scatter_plot_widget_definition.rb | 20 +++++++++++++++++++ ...scatter_plot_widget_definition_requests.rb | 20 +++++++++++++++++++ .../v1/models/scatterplot_table_request.rb | 20 +++++++++++++++++++ .../v1/models/scatterplot_widget_formula.rb | 20 +++++++++++++++++++ .../models/search_service_level_objective.rb | 20 +++++++++++++++++++ ...arch_service_level_objective_attributes.rb | 20 +++++++++++++++++++ .../search_service_level_objective_data.rb | 20 +++++++++++++++++++ .../v1/models/search_slo_query.rb | 20 +++++++++++++++++++ .../v1/models/search_slo_response.rb | 20 +++++++++++++++++++ .../v1/models/search_slo_response_data.rb | 20 +++++++++++++++++++ .../search_slo_response_data_attributes.rb | 20 +++++++++++++++++++ ...rch_slo_response_data_attributes_facets.rb | 20 +++++++++++++++++++ ...ponse_data_attributes_facets_object_int.rb | 20 +++++++++++++++++++ ...se_data_attributes_facets_object_string.rb | 20 +++++++++++++++++++ .../v1/models/search_slo_response_links.rb | 20 +++++++++++++++++++ .../v1/models/search_slo_response_meta.rb | 20 +++++++++++++++++++ .../models/search_slo_response_meta_page.rb | 20 +++++++++++++++++++ .../v1/models/search_slo_threshold.rb | 20 +++++++++++++++++++ .../selectable_template_variable_items.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/series.rb | 20 +++++++++++++++++++ .../v1/models/service_check.rb | 20 +++++++++++++++++++ .../v1/models/service_level_objective.rb | 20 +++++++++++++++++++ .../models/service_level_objective_query.rb | 20 +++++++++++++++++++ .../models/service_level_objective_request.rb | 20 +++++++++++++++++++ .../models/service_map_widget_definition.rb | 20 +++++++++++++++++++ .../service_summary_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/shared_dashboard.rb | 20 +++++++++++++++++++ .../v1/models/shared_dashboard_author.rb | 20 +++++++++++++++++++ .../v1/models/shared_dashboard_invites.rb | 20 +++++++++++++++++++ .../shared_dashboard_invites_data_object.rb | 20 +++++++++++++++++++ ...ashboard_invites_data_object_attributes.rb | 20 +++++++++++++++++++ .../models/shared_dashboard_invites_meta.rb | 20 +++++++++++++++++++ .../shared_dashboard_invites_meta_page.rb | 20 +++++++++++++++++++ .../models/shared_dashboard_update_request.rb | 20 +++++++++++++++++++ ...ed_dashboard_update_request_global_time.rb | 20 +++++++++++++++++++ .../models/signal_assignee_update_request.rb | 20 +++++++++++++++++++ .../v1/models/signal_state_update_request.rb | 20 +++++++++++++++++++ .../v1/models/slack_integration_channel.rb | 20 +++++++++++++++++++ .../slack_integration_channel_display.rb | 20 +++++++++++++++++++ .../v1/models/slo_bulk_delete_error.rb | 20 +++++++++++++++++++ .../v1/models/slo_bulk_delete_response.rb | 20 +++++++++++++++++++ .../models/slo_bulk_delete_response_data.rb | 20 +++++++++++++++++++ .../v1/models/slo_correction.rb | 20 +++++++++++++++++++ .../v1/models/slo_correction_create_data.rb | 20 +++++++++++++++++++ .../models/slo_correction_create_request.rb | 20 +++++++++++++++++++ ...lo_correction_create_request_attributes.rb | 20 +++++++++++++++++++ .../v1/models/slo_correction_list_response.rb | 20 +++++++++++++++++++ .../v1/models/slo_correction_response.rb | 20 +++++++++++++++++++ .../slo_correction_response_attributes.rb | 20 +++++++++++++++++++ ...correction_response_attributes_modifier.rb | 20 +++++++++++++++++++ .../v1/models/slo_correction_update_data.rb | 20 +++++++++++++++++++ .../models/slo_correction_update_request.rb | 20 +++++++++++++++++++ ...lo_correction_update_request_attributes.rb | 20 +++++++++++++++++++ .../v1/models/slo_creator.rb | 20 +++++++++++++++++++ .../v1/models/slo_delete_response.rb | 20 +++++++++++++++++++ .../v1/models/slo_formula.rb | 20 +++++++++++++++++++ .../v1/models/slo_history_metrics.rb | 20 +++++++++++++++++++ .../v1/models/slo_history_metrics_series.rb | 20 +++++++++++++++++++ .../slo_history_metrics_series_metadata.rb | 20 +++++++++++++++++++ ...lo_history_metrics_series_metadata_unit.rb | 20 +++++++++++++++++++ .../v1/models/slo_history_monitor.rb | 20 +++++++++++++++++++ .../v1/models/slo_history_response.rb | 20 +++++++++++++++++++ .../v1/models/slo_history_response_data.rb | 20 +++++++++++++++++++ .../v1/models/slo_history_response_error.rb | 20 +++++++++++++++++++ .../slo_history_response_error_with_type.rb | 20 +++++++++++++++++++ .../v1/models/slo_history_sli_data.rb | 20 +++++++++++++++++++ .../v1/models/slo_list_response.rb | 20 +++++++++++++++++++ .../v1/models/slo_list_response_metadata.rb | 20 +++++++++++++++++++ .../models/slo_list_response_metadata_page.rb | 20 +++++++++++++++++++ .../v1/models/slo_list_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/slo_list_widget_query.rb | 20 +++++++++++++++++++ .../v1/models/slo_list_widget_request.rb | 20 +++++++++++++++++++ .../v1/models/slo_overall_statuses.rb | 20 +++++++++++++++++++ .../models/slo_raw_error_budget_remaining.rb | 20 +++++++++++++++++++ .../v1/models/slo_response.rb | 20 +++++++++++++++++++ .../v1/models/slo_response_data.rb | 20 +++++++++++++++++++ .../v1/models/slo_status.rb | 20 +++++++++++++++++++ .../v1/models/slo_threshold.rb | 20 +++++++++++++++++++ .../v1/models/slo_time_slice_condition.rb | 20 +++++++++++++++++++ .../v1/models/slo_time_slice_query.rb | 20 +++++++++++++++++++ .../v1/models/slo_time_slice_spec.rb | 16 --------------- .../v1/models/slo_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/split_config.rb | 20 +++++++++++++++++++ .../v1/models/split_config_sort_compute.rb | 20 +++++++++++++++++++ .../v1/models/split_dimension.rb | 20 +++++++++++++++++++ .../models/split_graph_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/split_sort.rb | 20 +++++++++++++++++++ .../v1/models/split_vector_entry_item.rb | 20 +++++++++++++++++++ .../successful_signal_update_response.rb | 20 +++++++++++++++++++ .../v1/models/sunburst_widget_definition.rb | 20 +++++++++++++++++++ ...sunburst_widget_legend_inline_automatic.rb | 20 +++++++++++++++++++ .../v1/models/sunburst_widget_legend_table.rb | 20 +++++++++++++++++++ .../v1/models/sunburst_widget_request.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_api_test.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_api_test_config.rb | 20 +++++++++++++++++++ .../models/synthetics_api_test_result_data.rb | 20 +++++++++++++++++++ .../synthetics_api_test_result_failure.rb | 20 +++++++++++++++++++ .../models/synthetics_api_test_result_full.rb | 20 +++++++++++++++++++ .../synthetics_api_test_result_full_check.rb | 20 +++++++++++++++++++ .../synthetics_api_test_result_short.rb | 20 +++++++++++++++++++ ...synthetics_api_test_result_short_result.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_api_test_step.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_api_wait_step.rb | 20 +++++++++++++++++++ .../synthetics_assertion_body_hash_target.rb | 20 +++++++++++++++++++ .../synthetics_assertion_json_path_target.rb | 20 +++++++++++++++++++ ...etics_assertion_json_path_target_target.rb | 20 +++++++++++++++++++ ...synthetics_assertion_json_schema_target.rb | 20 +++++++++++++++++++ ...ics_assertion_json_schema_target_target.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_assertion_target.rb | 20 +++++++++++++++++++ .../synthetics_assertion_x_path_target.rb | 20 +++++++++++++++++++ ...nthetics_assertion_x_path_target_target.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_basic_auth_digest.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_basic_auth_ntlm.rb | 20 +++++++++++++++++++ .../synthetics_basic_auth_oauth_client.rb | 20 +++++++++++++++++++ .../models/synthetics_basic_auth_oauth_rop.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_basic_auth_sigv4.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_basic_auth_web.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_batch_details.rb | 20 +++++++++++++++++++ .../models/synthetics_batch_details_data.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_batch_result.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_browser_error.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_browser_test.rb | 20 +++++++++++++++++++ .../models/synthetics_browser_test_config.rb | 20 +++++++++++++++++++ .../synthetics_browser_test_result_data.rb | 20 +++++++++++++++++++ .../synthetics_browser_test_result_failure.rb | 20 +++++++++++++++++++ .../synthetics_browser_test_result_full.rb | 20 +++++++++++++++++++ ...nthetics_browser_test_result_full_check.rb | 20 +++++++++++++++++++ .../synthetics_browser_test_result_short.rb | 20 +++++++++++++++++++ ...hetics_browser_test_result_short_result.rb | 20 +++++++++++++++++++ .../synthetics_browser_test_rum_settings.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_browser_variable.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_ci_batch_metadata.rb | 20 +++++++++++++++++++ .../models/synthetics_ci_batch_metadata_ci.rb | 20 +++++++++++++++++++ .../synthetics_ci_batch_metadata_git.rb | 20 +++++++++++++++++++ .../synthetics_ci_batch_metadata_pipeline.rb | 20 +++++++++++++++++++ .../synthetics_ci_batch_metadata_provider.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_ci_test.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_ci_test_body.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_config_variable.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_core_web_vitals.rb | 20 +++++++++++++++++++ .../models/synthetics_delete_tests_payload.rb | 20 +++++++++++++++++++ .../synthetics_delete_tests_response.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_deleted_test.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_device.rb | 20 +++++++++++++++++++ ...cs_get_api_test_latest_results_response.rb | 20 +++++++++++++++++++ ...et_browser_test_latest_results_response.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_global_variable.rb | 20 +++++++++++++++++++ .../synthetics_global_variable_attributes.rb | 20 +++++++++++++++++++ .../synthetics_global_variable_options.rb | 20 +++++++++++++++++++ ...tics_global_variable_parse_test_options.rb | 20 +++++++++++++++++++ .../synthetics_global_variable_request.rb | 20 +++++++++++++++++++ ...thetics_global_variable_totp_parameters.rb | 20 +++++++++++++++++++ .../synthetics_global_variable_value.rb | 20 +++++++++++++++++++ ...nthetics_list_global_variables_response.rb | 20 +++++++++++++++++++ .../models/synthetics_list_tests_response.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_location.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_locations.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_parsing_options.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_patch_test_body.rb | 20 +++++++++++++++++++ .../models/synthetics_patch_test_operation.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_private_location.rb | 20 +++++++++++++++++++ ...tics_private_location_creation_response.rb | 20 +++++++++++++++++++ ...ion_creation_response_result_encryption.rb | 20 +++++++++++++++++++ .../synthetics_private_location_metadata.rb | 20 +++++++++++++++++++ .../synthetics_private_location_secrets.rb | 20 +++++++++++++++++++ ...private_location_secrets_authentication.rb | 20 +++++++++++++++++++ ...vate_location_secrets_config_decryption.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_ssl_certificate.rb | 20 +++++++++++++++++++ .../synthetics_ssl_certificate_issuer.rb | 20 +++++++++++++++++++ .../synthetics_ssl_certificate_subject.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_step.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_step_detail.rb | 20 +++++++++++++++++++ .../models/synthetics_step_detail_warning.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_test_ci_options.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_test_config.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_test_details.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_test_options.rb | 20 +++++++++++++++++++ ...synthetics_test_options_monitor_options.rb | 20 +++++++++++++++++++ .../models/synthetics_test_options_retry.rb | 20 +++++++++++++++++++ .../synthetics_test_options_scheduling.rb | 20 +++++++++++++++++++ ...etics_test_options_scheduling_timeframe.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_test_request.rb | 20 +++++++++++++++++++ .../synthetics_test_request_body_file.rb | 20 +++++++++++++++++++ .../synthetics_test_request_certificate.rb | 20 +++++++++++++++++++ ...ynthetics_test_request_certificate_item.rb | 20 +++++++++++++++++++ .../models/synthetics_test_request_proxy.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_timing.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_trigger_body.rb | 20 +++++++++++++++++++ .../synthetics_trigger_ci_test_location.rb | 20 +++++++++++++++++++ .../synthetics_trigger_ci_test_run_result.rb | 20 +++++++++++++++++++ .../synthetics_trigger_ci_tests_response.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_trigger_test.rb | 20 +++++++++++++++++++ ...hetics_update_test_pause_status_payload.rb | 20 +++++++++++++++++++ .../v1/models/synthetics_variable_parser.rb | 20 +++++++++++++++++++ .../v1/models/table_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/table_widget_request.rb | 20 +++++++++++++++++++ .../v1/models/tag_to_hosts.rb | 20 +++++++++++++++++++ .../v1/models/timeseries_background.rb | 20 +++++++++++++++++++ .../v1/models/timeseries_widget_definition.rb | 20 +++++++++++++++++++ .../timeseries_widget_expression_alias.rb | 20 +++++++++++++++++++ .../v1/models/timeseries_widget_request.rb | 20 +++++++++++++++++++ .../v1/models/toplist_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/toplist_widget_flat.rb | 20 +++++++++++++++++++ .../v1/models/toplist_widget_request.rb | 20 +++++++++++++++++++ .../v1/models/toplist_widget_stacked.rb | 20 +++++++++++++++++++ .../v1/models/toplist_widget_style.rb | 20 +++++++++++++++++++ .../models/topology_map_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/topology_query.rb | 20 +++++++++++++++++++ .../v1/models/topology_request.rb | 20 +++++++++++++++++++ .../v1/models/tree_map_widget_definition.rb | 20 +++++++++++++++++++ .../v1/models/tree_map_widget_request.rb | 20 +++++++++++++++++++ .../v1/models/usage_analyzed_logs_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_analyzed_logs_response.rb | 20 +++++++++++++++++++ .../usage_attribution_aggregates_body.rb | 20 +++++++++++++++++++ .../v1/models/usage_audit_logs_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_audit_logs_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_billable_summary_body.rb | 20 +++++++++++++++++++ .../v1/models/usage_billable_summary_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_billable_summary_keys.rb | 20 +++++++++++++++++++ .../models/usage_billable_summary_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_ci_visibility_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_ci_visibility_response.rb | 20 +++++++++++++++++++ ..._cloud_security_posture_management_hour.rb | 20 +++++++++++++++++++ ...ud_security_posture_management_response.rb | 20 +++++++++++++++++++ .../models/usage_custom_reports_attributes.rb | 20 +++++++++++++++++++ .../v1/models/usage_custom_reports_data.rb | 20 +++++++++++++++++++ .../v1/models/usage_custom_reports_meta.rb | 20 +++++++++++++++++++ .../v1/models/usage_custom_reports_page.rb | 20 +++++++++++++++++++ .../models/usage_custom_reports_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_cws_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_cws_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_dbm_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_dbm_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_fargate_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_fargate_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_host_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_hosts_response.rb | 20 +++++++++++++++++++ .../models/usage_incident_management_hour.rb | 20 +++++++++++++++++++ .../usage_incident_management_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_indexed_spans_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_indexed_spans_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_ingested_spans_hour.rb | 20 +++++++++++++++++++ .../models/usage_ingested_spans_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_iot_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_iot_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_lambda_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_lambda_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_logs_by_index_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_logs_by_index_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_logs_by_retention_hour.rb | 20 +++++++++++++++++++ .../usage_logs_by_retention_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_logs_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_logs_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_network_flows_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_network_flows_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_network_hosts_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_network_hosts_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_online_archive_hour.rb | 20 +++++++++++++++++++ .../models/usage_online_archive_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_profiling_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_profiling_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_rum_sessions_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_rum_sessions_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_rum_units_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_rum_units_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_sds_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_sds_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_snmp_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_snmp_response.rb | 20 +++++++++++++++++++ ...age_specified_custom_reports_attributes.rb | 20 +++++++++++++++++++ .../usage_specified_custom_reports_data.rb | 20 +++++++++++++++++++ .../usage_specified_custom_reports_meta.rb | 20 +++++++++++++++++++ .../usage_specified_custom_reports_page.rb | 20 +++++++++++++++++++ ...usage_specified_custom_reports_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_summary_date.rb | 20 +++++++++++++++++++ .../v1/models/usage_summary_date_org.rb | 20 +++++++++++++++++++ .../v1/models/usage_summary_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_synthetics_api_hour.rb | 20 +++++++++++++++++++ .../models/usage_synthetics_api_response.rb | 20 +++++++++++++++++++ .../models/usage_synthetics_browser_hour.rb | 20 +++++++++++++++++++ .../usage_synthetics_browser_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_synthetics_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_synthetics_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_timeseries_hour.rb | 20 +++++++++++++++++++ .../v1/models/usage_timeseries_response.rb | 20 +++++++++++++++++++ .../v1/models/usage_top_avg_metrics_hour.rb | 20 +++++++++++++++++++ .../models/usage_top_avg_metrics_metadata.rb | 20 +++++++++++++++++++ .../usage_top_avg_metrics_pagination.rb | 20 +++++++++++++++++++ .../models/usage_top_avg_metrics_response.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/user.rb | 20 +++++++++++++++++++ .../v1/models/user_disable_response.rb | 20 +++++++++++++++++++ .../v1/models/user_list_response.rb | 20 +++++++++++++++++++ .../v1/models/user_response.rb | 20 +++++++++++++++++++ .../v1/models/webhooks_integration.rb | 20 +++++++++++++++++++ .../webhooks_integration_custom_variable.rb | 20 +++++++++++++++++++ ...ks_integration_custom_variable_response.rb | 20 +++++++++++++++++++ ...egration_custom_variable_update_request.rb | 20 +++++++++++++++++++ .../webhooks_integration_update_request.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v1/models/widget.rb | 20 +++++++++++++++++++ .../v1/models/widget_axis.rb | 20 +++++++++++++++++++ .../v1/models/widget_conditional_format.rb | 20 +++++++++++++++++++ .../v1/models/widget_custom_link.rb | 20 +++++++++++++++++++ .../v1/models/widget_event.rb | 20 +++++++++++++++++++ .../v1/models/widget_field_sort.rb | 20 +++++++++++++++++++ .../v1/models/widget_formula.rb | 20 +++++++++++++++++++ .../v1/models/widget_formula_limit.rb | 20 +++++++++++++++++++ .../v1/models/widget_formula_sort.rb | 20 +++++++++++++++++++ .../v1/models/widget_formula_style.rb | 20 +++++++++++++++++++ .../v1/models/widget_group_sort.rb | 20 +++++++++++++++++++ .../v1/models/widget_layout.rb | 20 +++++++++++++++++++ .../v1/models/widget_marker.rb | 20 +++++++++++++++++++ .../v1/models/widget_request_style.rb | 20 +++++++++++++++++++ .../v1/models/widget_sort_by.rb | 20 +++++++++++++++++++ .../v1/models/widget_style.rb | 20 +++++++++++++++++++ .../v1/models/widget_time.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/model_base.rb | 7 ++----- .../active_billing_dimensions_attributes.rb | 20 +++++++++++++++++++ .../models/active_billing_dimensions_body.rb | 20 +++++++++++++++++++ .../active_billing_dimensions_response.rb | 20 +++++++++++++++++++ .../v2/models/api_error_response.rb | 20 +++++++++++++++++++ .../v2/models/api_key_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/api_key_create_data.rb | 20 +++++++++++++++++++ .../v2/models/api_key_create_request.rb | 20 +++++++++++++++++++ .../v2/models/api_key_relationships.rb | 20 +++++++++++++++++++ .../v2/models/api_key_response.rb | 20 +++++++++++++++++++ .../v2/models/api_key_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/api_key_update_data.rb | 20 +++++++++++++++++++ .../v2/models/api_key_update_request.rb | 20 +++++++++++++++++++ .../v2/models/api_keys_response.rb | 20 +++++++++++++++++++ .../v2/models/api_keys_response_meta.rb | 20 +++++++++++++++++++ .../v2/models/api_keys_response_meta_page.rb | 20 +++++++++++++++++++ .../application_key_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/application_key_create_data.rb | 20 +++++++++++++++++++ .../models/application_key_create_request.rb | 20 +++++++++++++++++++ .../models/application_key_relationships.rb | 20 +++++++++++++++++++ .../v2/models/application_key_response.rb | 20 +++++++++++++++++++ .../models/application_key_response_meta.rb | 20 +++++++++++++++++++ .../application_key_response_meta_page.rb | 20 +++++++++++++++++++ .../application_key_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/application_key_update_data.rb | 20 +++++++++++++++++++ .../models/application_key_update_request.rb | 20 +++++++++++++++++++ .../v2/models/audit_logs_event.rb | 20 +++++++++++++++++++ .../v2/models/audit_logs_event_attributes.rb | 20 +++++++++++++++++++ .../v2/models/audit_logs_events_response.rb | 20 +++++++++++++++++++ .../v2/models/audit_logs_query_filter.rb | 20 +++++++++++++++++++ .../v2/models/audit_logs_query_options.rb | 20 +++++++++++++++++++ .../models/audit_logs_query_page_options.rb | 20 +++++++++++++++++++ .../v2/models/audit_logs_response_links.rb | 20 +++++++++++++++++++ .../v2/models/audit_logs_response_metadata.rb | 20 +++++++++++++++++++ .../v2/models/audit_logs_response_page.rb | 20 +++++++++++++++++++ .../audit_logs_search_events_request.rb | 20 +++++++++++++++++++ .../v2/models/audit_logs_warning.rb | 20 +++++++++++++++++++ .../v2/models/authn_mapping.rb | 20 +++++++++++++++++++ .../v2/models/authn_mapping_attributes.rb | 20 +++++++++++++++++++ .../models/authn_mapping_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/authn_mapping_create_data.rb | 20 +++++++++++++++++++ .../v2/models/authn_mapping_create_request.rb | 20 +++++++++++++++++++ .../authn_mapping_relationship_to_role.rb | 20 +++++++++++++++++++ .../authn_mapping_relationship_to_team.rb | 20 +++++++++++++++++++ .../v2/models/authn_mapping_relationships.rb | 20 +++++++++++++++++++ .../v2/models/authn_mapping_response.rb | 20 +++++++++++++++++++ .../v2/models/authn_mapping_team.rb | 20 +++++++++++++++++++ .../models/authn_mapping_team_attributes.rb | 20 +++++++++++++++++++ .../models/authn_mapping_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/authn_mapping_update_data.rb | 20 +++++++++++++++++++ .../v2/models/authn_mapping_update_request.rb | 20 +++++++++++++++++++ .../v2/models/authn_mappings_response.rb | 20 +++++++++++++++++++ .../v2/models/aws_cur_config.rb | 20 +++++++++++++++++++ .../v2/models/aws_cur_config_attributes.rb | 20 +++++++++++++++++++ .../v2/models/aws_cur_config_patch_data.rb | 20 +++++++++++++++++++ .../v2/models/aws_cur_config_patch_request.rb | 20 +++++++++++++++++++ ...aws_cur_config_patch_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/aws_cur_config_post_data.rb | 20 +++++++++++++++++++ .../v2/models/aws_cur_config_post_request.rb | 20 +++++++++++++++++++ .../aws_cur_config_post_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/aws_cur_config_response.rb | 20 +++++++++++++++++++ .../v2/models/aws_cur_configs_response.rb | 20 +++++++++++++++++++ .../v2/models/aws_related_account.rb | 20 +++++++++++++++++++ .../models/aws_related_account_attributes.rb | 20 +++++++++++++++++++ .../models/aws_related_accounts_response.rb | 20 +++++++++++++++++++ .../v2/models/azure_uc_config.rb | 20 +++++++++++++++++++ .../v2/models/azure_uc_config_pair.rb | 20 +++++++++++++++++++ .../models/azure_uc_config_pair_attributes.rb | 20 +++++++++++++++++++ .../models/azure_uc_config_pairs_response.rb | 20 +++++++++++++++++++ .../v2/models/azure_uc_config_patch_data.rb | 20 +++++++++++++++++++ .../models/azure_uc_config_patch_request.rb | 20 +++++++++++++++++++ ...zure_uc_config_patch_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/azure_uc_config_post_data.rb | 20 +++++++++++++++++++ .../v2/models/azure_uc_config_post_request.rb | 20 +++++++++++++++++++ ...azure_uc_config_post_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/azure_uc_configs_response.rb | 20 +++++++++++++++++++ .../v2/models/bill_config.rb | 20 +++++++++++++++++++ .../v2/models/bulk_mute_findings_request.rb | 20 +++++++++++++++++++ .../bulk_mute_findings_request_attributes.rb | 16 --------------- .../models/bulk_mute_findings_request_data.rb | 20 +++++++++++++++++++ .../models/bulk_mute_findings_request_meta.rb | 20 +++++++++++++++++++ ...ulk_mute_findings_request_meta_findings.rb | 20 +++++++++++++++++++ .../bulk_mute_findings_request_properties.rb | 16 --------------- .../v2/models/bulk_mute_findings_response.rb | 20 +++++++++++++++++++ .../bulk_mute_findings_response_data.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/case.rb | 20 +++++++++++++++++++ .../v2/models/case_assign.rb | 20 +++++++++++++++++++ .../v2/models/case_assign_attributes.rb | 20 +++++++++++++++++++ .../v2/models/case_assign_request.rb | 20 +++++++++++++++++++ .../v2/models/case_attributes.rb | 20 +++++++++++++++++++ .../v2/models/case_create.rb | 20 +++++++++++++++++++ .../v2/models/case_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/case_create_relationships.rb | 20 +++++++++++++++++++ .../v2/models/case_create_request.rb | 20 +++++++++++++++++++ .../v2/models/case_empty.rb | 20 +++++++++++++++++++ .../v2/models/case_empty_request.rb | 20 +++++++++++++++++++ .../v2/models/case_relationships.rb | 20 +++++++++++++++++++ .../v2/models/case_response.rb | 20 +++++++++++++++++++ .../v2/models/case_update_priority.rb | 20 +++++++++++++++++++ .../models/case_update_priority_attributes.rb | 20 +++++++++++++++++++ .../v2/models/case_update_priority_request.rb | 20 +++++++++++++++++++ .../v2/models/case_update_status.rb | 20 +++++++++++++++++++ .../models/case_update_status_attributes.rb | 20 +++++++++++++++++++ .../v2/models/case_update_status_request.rb | 20 +++++++++++++++++++ .../v2/models/cases_response.rb | 20 +++++++++++++++++++ .../v2/models/cases_response_meta.rb | 20 +++++++++++++++++++ .../models/cases_response_meta_pagination.rb | 20 +++++++++++++++++++ .../v2/models/chargeback_breakdown.rb | 20 +++++++++++++++++++ ...aggregate_bucket_value_timeseries_point.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_aggregate_sort.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_ci_error.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_compute.rb | 20 +++++++++++++++++++ .../ci_app_create_pipeline_event_request.rb | 20 +++++++++++++++++++ ...reate_pipeline_event_request_attributes.rb | 20 +++++++++++++++++++ ..._app_create_pipeline_event_request_data.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_event_attributes.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_git_info.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_group_by_histogram.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_host_info.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_pipeline_event.rb | 20 +++++++++++++++++++ .../ci_app_pipeline_event_attributes.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_pipeline_event_job.rb | 20 +++++++++++++++++++ .../ci_app_pipeline_event_parent_pipeline.rb | 20 +++++++++++++++++++ .../models/ci_app_pipeline_event_pipeline.rb | 20 +++++++++++++++++++ ...ci_app_pipeline_event_previous_pipeline.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_pipeline_event_stage.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_pipeline_event_step.rb | 20 +++++++++++++++++++ .../models/ci_app_pipeline_events_request.rb | 20 +++++++++++++++++++ .../models/ci_app_pipeline_events_response.rb | 20 +++++++++++++++++++ .../ci_app_pipelines_aggregate_request.rb | 20 +++++++++++++++++++ ..._pipelines_aggregation_buckets_response.rb | 20 +++++++++++++++++++ ..._pipelines_analytics_aggregate_response.rb | 20 +++++++++++++++++++ .../ci_app_pipelines_bucket_response.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_pipelines_group_by.rb | 20 +++++++++++++++++++ .../models/ci_app_pipelines_query_filter.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_query_options.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_query_page_options.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_response_links.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_response_metadata.rb | 20 +++++++++++++++++++ ...i_app_response_metadata_with_pagination.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_response_page.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_test_event.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_test_events_request.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_test_events_response.rb | 20 +++++++++++++++++++ .../models/ci_app_tests_aggregate_request.rb | 20 +++++++++++++++++++ ..._app_tests_aggregation_buckets_response.rb | 20 +++++++++++++++++++ ..._app_tests_analytics_aggregate_response.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_tests_bucket_response.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_tests_group_by.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_tests_query_filter.rb | 20 +++++++++++++++++++ .../v2/models/ci_app_warning.rb | 20 +++++++++++++++++++ ...d_configuration_compliance_rule_options.rb | 20 +++++++++++++++++++ .../models/cloud_configuration_rego_rule.rb | 20 +++++++++++++++++++ .../cloud_configuration_rule_case_create.rb | 20 +++++++++++++++++++ ...guration_rule_compliance_signal_options.rb | 20 +++++++++++++++++++ ...cloud_configuration_rule_create_payload.rb | 20 +++++++++++++++++++ .../cloud_configuration_rule_options.rb | 20 +++++++++++++++++++ .../cloud_configuration_rule_payload.rb | 20 +++++++++++++++++++ .../v2/models/cloud_cost_activity.rb | 20 +++++++++++++++++++ .../models/cloud_cost_activity_attributes.rb | 20 +++++++++++++++++++ .../v2/models/cloud_cost_activity_response.rb | 20 +++++++++++++++++++ ...oud_workload_security_agent_rule_action.rb | 20 +++++++++++++++++++ ...workload_security_agent_rule_attributes.rb | 20 +++++++++++++++++++ ...d_security_agent_rule_create_attributes.rb | 20 +++++++++++++++++++ ...orkload_security_agent_rule_create_data.rb | 20 +++++++++++++++++++ ...load_security_agent_rule_create_request.rb | 20 +++++++++++++++++++ ..._security_agent_rule_creator_attributes.rb | 20 +++++++++++++++++++ ...cloud_workload_security_agent_rule_data.rb | 20 +++++++++++++++++++ ...cloud_workload_security_agent_rule_kill.rb | 20 +++++++++++++++++++ ...d_workload_security_agent_rule_response.rb | 20 +++++++++++++++++++ ...d_security_agent_rule_update_attributes.rb | 20 +++++++++++++++++++ ...orkload_security_agent_rule_update_data.rb | 20 +++++++++++++++++++ ...load_security_agent_rule_update_request.rb | 20 +++++++++++++++++++ ..._security_agent_rule_updater_attributes.rb | 20 +++++++++++++++++++ ...load_security_agent_rules_list_response.rb | 20 +++++++++++++++++++ .../cloudflare_account_create_request.rb | 20 +++++++++++++++++++ ...flare_account_create_request_attributes.rb | 20 +++++++++++++++++++ .../cloudflare_account_create_request_data.rb | 20 +++++++++++++++++++ .../v2/models/cloudflare_account_response.rb | 20 +++++++++++++++++++ .../cloudflare_account_response_attributes.rb | 20 +++++++++++++++++++ .../cloudflare_account_response_data.rb | 20 +++++++++++++++++++ .../cloudflare_account_update_request.rb | 20 +++++++++++++++++++ ...flare_account_update_request_attributes.rb | 20 +++++++++++++++++++ .../cloudflare_account_update_request_data.rb | 20 +++++++++++++++++++ .../v2/models/cloudflare_accounts_response.rb | 20 +++++++++++++++++++ .../confluent_account_create_request.rb | 20 +++++++++++++++++++ ...luent_account_create_request_attributes.rb | 20 +++++++++++++++++++ .../confluent_account_create_request_data.rb | 20 +++++++++++++++++++ .../confluent_account_resource_attributes.rb | 20 +++++++++++++++++++ .../v2/models/confluent_account_response.rb | 20 +++++++++++++++++++ .../confluent_account_response_attributes.rb | 20 +++++++++++++++++++ .../models/confluent_account_response_data.rb | 20 +++++++++++++++++++ .../confluent_account_update_request.rb | 20 +++++++++++++++++++ ...luent_account_update_request_attributes.rb | 20 +++++++++++++++++++ .../confluent_account_update_request_data.rb | 20 +++++++++++++++++++ .../v2/models/confluent_accounts_response.rb | 20 +++++++++++++++++++ .../v2/models/confluent_resource_request.rb | 20 +++++++++++++++++++ .../confluent_resource_request_attributes.rb | 20 +++++++++++++++++++ .../models/confluent_resource_request_data.rb | 20 +++++++++++++++++++ .../v2/models/confluent_resource_response.rb | 20 +++++++++++++++++++ .../confluent_resource_response_attributes.rb | 20 +++++++++++++++++++ .../confluent_resource_response_data.rb | 20 +++++++++++++++++++ .../v2/models/confluent_resources_response.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/container.rb | 20 +++++++++++++++++++ .../v2/models/container_attributes.rb | 20 +++++++++++++++++++ .../v2/models/container_group.rb | 20 +++++++++++++++++++ .../v2/models/container_group_attributes.rb | 20 +++++++++++++++++++ .../models/container_group_relationships.rb | 20 +++++++++++++++++++ .../container_group_relationships_link.rb | 20 +++++++++++++++++++ .../container_group_relationships_links.rb | 20 +++++++++++++++++++ .../v2/models/container_image.rb | 20 +++++++++++++++++++ .../v2/models/container_image_attributes.rb | 20 +++++++++++++++++++ .../v2/models/container_image_flavor.rb | 20 +++++++++++++++++++ .../v2/models/container_image_group.rb | 20 +++++++++++++++++++ .../container_image_group_attributes.rb | 20 +++++++++++++++++++ ...r_image_group_images_relationships_link.rb | 20 +++++++++++++++++++ .../container_image_group_relationships.rb | 20 +++++++++++++++++++ ...ntainer_image_group_relationships_links.rb | 20 +++++++++++++++++++ .../v2/models/container_image_meta.rb | 20 +++++++++++++++++++ .../v2/models/container_image_meta_page.rb | 20 +++++++++++++++++++ .../models/container_image_vulnerabilities.rb | 20 +++++++++++++++++++ .../v2/models/container_images_response.rb | 20 +++++++++++++++++++ .../models/container_images_response_links.rb | 20 +++++++++++++++++++ .../v2/models/container_meta.rb | 20 +++++++++++++++++++ .../v2/models/container_meta_page.rb | 20 +++++++++++++++++++ .../v2/models/containers_response.rb | 20 +++++++++++++++++++ .../v2/models/containers_response_links.rb | 20 +++++++++++++++++++ .../cost_attribution_aggregates_body.rb | 20 +++++++++++++++++++ .../v2/models/cost_by_org.rb | 20 +++++++++++++++++++ .../v2/models/cost_by_org_attributes.rb | 20 +++++++++++++++++++ .../v2/models/cost_by_org_response.rb | 20 +++++++++++++++++++ .../v2/models/create_open_api_response.rb | 20 +++++++++++++++++++ .../create_open_api_response_attributes.rb | 20 +++++++++++++++++++ .../models/create_open_api_response_data.rb | 20 +++++++++++++++++++ .../v2/models/create_rule_request.rb | 20 +++++++++++++++++++ .../v2/models/create_rule_request_data.rb | 20 +++++++++++++++++++ .../v2/models/create_rule_response.rb | 20 +++++++++++++++++++ .../v2/models/create_rule_response_data.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/creator.rb | 20 +++++++++++++++++++ .../models/custom_cost_get_response_meta.rb | 20 +++++++++++++++++++ .../models/custom_cost_list_response_meta.rb | 20 +++++++++++++++++++ .../custom_cost_upload_response_meta.rb | 20 +++++++++++++++++++ .../models/custom_costs_file_get_response.rb | 20 +++++++++++++++++++ .../v2/models/custom_costs_file_line_item.rb | 20 +++++++++++++++++++ .../models/custom_costs_file_list_response.rb | 20 +++++++++++++++++++ .../v2/models/custom_costs_file_metadata.rb | 20 +++++++++++++++++++ .../custom_costs_file_metadata_high_level.rb | 20 +++++++++++++++++++ ...custom_costs_file_metadata_with_content.rb | 20 +++++++++++++++++++ ...s_file_metadata_with_content_high_level.rb | 20 +++++++++++++++++++ .../custom_costs_file_upload_response.rb | 20 +++++++++++++++++++ .../custom_costs_file_usage_charge_period.rb | 20 +++++++++++++++++++ .../v2/models/custom_costs_user.rb | 20 +++++++++++++++++++ .../custom_destination_create_request.rb | 20 +++++++++++++++++++ ...m_destination_create_request_attributes.rb | 20 +++++++++++++++++++ ...m_destination_create_request_definition.rb | 20 +++++++++++++++++++ ...tination_elasticsearch_destination_auth.rb | 20 +++++++++++++++++++ ...ation_forward_destination_elasticsearch.rb | 20 +++++++++++++++++++ ...om_destination_forward_destination_http.rb | 20 +++++++++++++++++++ ..._destination_forward_destination_splunk.rb | 20 +++++++++++++++++++ ...destination_http_destination_auth_basic.rb | 20 +++++++++++++++++++ ...ion_http_destination_auth_custom_header.rb | 20 +++++++++++++++++++ .../v2/models/custom_destination_response.rb | 20 +++++++++++++++++++ .../custom_destination_response_attributes.rb | 20 +++++++++++++++++++ .../custom_destination_response_definition.rb | 20 +++++++++++++++++++ ...ponse_forward_destination_elasticsearch.rb | 20 +++++++++++++++++++ ...ation_response_forward_destination_http.rb | 20 +++++++++++++++++++ ...ion_response_forward_destination_splunk.rb | 20 +++++++++++++++++++ ...on_response_http_destination_auth_basic.rb | 20 +++++++++++++++++++ ...nse_http_destination_auth_custom_header.rb | 20 +++++++++++++++++++ .../custom_destination_update_request.rb | 20 +++++++++++++++++++ ...m_destination_update_request_attributes.rb | 20 +++++++++++++++++++ ...m_destination_update_request_definition.rb | 20 +++++++++++++++++++ .../v2/models/custom_destinations_response.rb | 20 +++++++++++++++++++ .../dashboard_list_add_items_request.rb | 20 +++++++++++++++++++ .../dashboard_list_add_items_response.rb | 20 +++++++++++++++++++ .../dashboard_list_delete_items_request.rb | 20 +++++++++++++++++++ .../dashboard_list_delete_items_response.rb | 20 +++++++++++++++++++ .../v2/models/dashboard_list_item.rb | 20 +++++++++++++++++++ .../v2/models/dashboard_list_item_request.rb | 20 +++++++++++++++++++ .../v2/models/dashboard_list_item_response.rb | 20 +++++++++++++++++++ .../v2/models/dashboard_list_items.rb | 20 +++++++++++++++++++ .../dashboard_list_update_items_request.rb | 20 +++++++++++++++++++ .../dashboard_list_update_items_response.rb | 20 +++++++++++++++++++ .../v2/models/data_scalar_column.rb | 20 +++++++++++++++++++ .../v2/models/detailed_finding.rb | 20 +++++++++++++++++++ .../v2/models/detailed_finding_attributes.rb | 20 +++++++++++++++++++ .../v2/models/device_attributes.rb | 20 +++++++++++++++++++ .../device_attributes_interface_statuses.rb | 20 +++++++++++++++++++ .../v2/models/devices_list_data.rb | 20 +++++++++++++++++++ .../v2/models/dora_deployment_request.rb | 20 +++++++++++++++++++ .../dora_deployment_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/dora_deployment_request_data.rb | 20 +++++++++++++++++++ .../v2/models/dora_deployment_response.rb | 20 +++++++++++++++++++ .../models/dora_deployment_response_data.rb | 20 +++++++++++++++++++ .../v2/models/dora_git_info.rb | 20 +++++++++++++++++++ .../v2/models/dora_incident_request.rb | 20 +++++++++++++++++++ .../dora_incident_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/dora_incident_request_data.rb | 20 +++++++++++++++++++ .../v2/models/dora_incident_response.rb | 20 +++++++++++++++++++ .../v2/models/dora_incident_response_data.rb | 20 +++++++++++++++++++ .../v2/models/downtime_create_request.rb | 20 +++++++++++++++++++ .../downtime_create_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/downtime_create_request_data.rb | 20 +++++++++++++++++++ .../v2/models/downtime_meta.rb | 20 +++++++++++++++++++ .../v2/models/downtime_meta_page.rb | 20 +++++++++++++++++++ .../models/downtime_monitor_identifier_id.rb | 20 +++++++++++++++++++ .../downtime_monitor_identifier_tags.rb | 20 +++++++++++++++++++ .../downtime_monitor_included_attributes.rb | 20 +++++++++++++++++++ .../models/downtime_monitor_included_item.rb | 20 +++++++++++++++++++ .../v2/models/downtime_relationships.rb | 20 +++++++++++++++++++ .../downtime_relationships_created_by.rb | 20 +++++++++++++++++++ .../downtime_relationships_created_by_data.rb | 20 +++++++++++++++++++ .../models/downtime_relationships_monitor.rb | 20 +++++++++++++++++++ .../downtime_relationships_monitor_data.rb | 20 +++++++++++++++++++ .../v2/models/downtime_response.rb | 20 +++++++++++++++++++ .../v2/models/downtime_response_attributes.rb | 20 +++++++++++++++++++ .../v2/models/downtime_response_data.rb | 20 +++++++++++++++++++ ...time_schedule_current_downtime_response.rb | 20 +++++++++++++++++++ ...schedule_one_time_create_update_request.rb | 16 --------------- .../downtime_schedule_one_time_response.rb | 20 +++++++++++++++++++ ...hedule_recurrence_create_update_request.rb | 20 +++++++++++++++++++ .../downtime_schedule_recurrence_response.rb | 20 +++++++++++++++++++ ...ime_schedule_recurrences_create_request.rb | 20 +++++++++++++++++++ .../downtime_schedule_recurrences_response.rb | 20 +++++++++++++++++++ ...ime_schedule_recurrences_update_request.rb | 16 --------------- .../v2/models/downtime_update_request.rb | 20 +++++++++++++++++++ .../downtime_update_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/downtime_update_request_data.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/event.rb | 20 +++++++++++++++++++ .../v2/models/event_attributes.rb | 20 +++++++++++++++++++ .../v2/models/event_response.rb | 20 +++++++++++++++++++ .../v2/models/event_response_attributes.rb | 20 +++++++++++++++++++ .../v2/models/events_compute.rb | 20 +++++++++++++++++++ .../v2/models/events_group_by.rb | 20 +++++++++++++++++++ .../v2/models/events_group_by_sort.rb | 20 +++++++++++++++++++ .../v2/models/events_list_request.rb | 20 +++++++++++++++++++ .../v2/models/events_list_response.rb | 20 +++++++++++++++++++ .../v2/models/events_list_response_links.rb | 20 +++++++++++++++++++ .../v2/models/events_query_filter.rb | 20 +++++++++++++++++++ .../v2/models/events_query_options.rb | 20 +++++++++++++++++++ .../v2/models/events_request_page.rb | 20 +++++++++++++++++++ .../v2/models/events_response_metadata.rb | 20 +++++++++++++++++++ .../models/events_response_metadata_page.rb | 20 +++++++++++++++++++ .../v2/models/events_scalar_query.rb | 20 +++++++++++++++++++ .../v2/models/events_search.rb | 20 +++++++++++++++++++ .../v2/models/events_timeseries_query.rb | 20 +++++++++++++++++++ .../v2/models/events_warning.rb | 20 +++++++++++++++++++ .../fastly_accoun_response_attributes.rb | 20 +++++++++++++++++++ .../models/fastly_account_create_request.rb | 20 +++++++++++++++++++ ...astly_account_create_request_attributes.rb | 20 +++++++++++++++++++ .../fastly_account_create_request_data.rb | 20 +++++++++++++++++++ .../v2/models/fastly_account_response.rb | 20 +++++++++++++++++++ .../v2/models/fastly_account_response_data.rb | 20 +++++++++++++++++++ .../models/fastly_account_update_request.rb | 20 +++++++++++++++++++ ...astly_account_update_request_attributes.rb | 20 +++++++++++++++++++ .../fastly_account_update_request_data.rb | 20 +++++++++++++++++++ .../v2/models/fastly_accounts_response.rb | 20 +++++++++++++++++++ .../v2/models/fastly_service.rb | 20 +++++++++++++++++++ .../v2/models/fastly_service_attributes.rb | 20 +++++++++++++++++++ .../v2/models/fastly_service_data.rb | 20 +++++++++++++++++++ .../v2/models/fastly_service_request.rb | 20 +++++++++++++++++++ .../v2/models/fastly_service_response.rb | 20 +++++++++++++++++++ .../v2/models/fastly_services_response.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/finding.rb | 20 +++++++++++++++++++ .../v2/models/finding_attributes.rb | 20 +++++++++++++++++++ .../v2/models/finding_mute.rb | 16 --------------- .../v2/models/finding_rule.rb | 16 --------------- .../v2/models/formula_limit.rb | 20 +++++++++++++++++++ .../v2/models/full_api_key.rb | 20 +++++++++++++++++++ .../v2/models/full_api_key_attributes.rb | 20 +++++++++++++++++++ .../v2/models/full_application_key.rb | 20 +++++++++++++++++++ .../models/full_application_key_attributes.rb | 20 +++++++++++++++++++ .../v2/models/gcp_service_account_meta.rb | 20 +++++++++++++++++++ .../v2/models/gcpsts_delegate_account.rb | 20 +++++++++++++++++++ .../gcpsts_delegate_account_attributes.rb | 20 +++++++++++++++++++ .../gcpsts_delegate_account_response.rb | 20 +++++++++++++++++++ .../v2/models/gcpsts_service_account.rb | 20 +++++++++++++++++++ .../gcpsts_service_account_attributes.rb | 20 +++++++++++++++++++ .../gcpsts_service_account_create_request.rb | 20 +++++++++++++++++++ .../v2/models/gcpsts_service_account_data.rb | 20 +++++++++++++++++++ .../models/gcpsts_service_account_response.rb | 20 +++++++++++++++++++ .../gcpsts_service_account_update_request.rb | 20 +++++++++++++++++++ ...sts_service_account_update_request_data.rb | 20 +++++++++++++++++++ .../gcpsts_service_accounts_response.rb | 20 +++++++++++++++++++ .../v2/models/get_device_attributes.rb | 20 +++++++++++++++++++ .../v2/models/get_device_data.rb | 20 +++++++++++++++++++ .../v2/models/get_device_response.rb | 20 +++++++++++++++++++ .../v2/models/get_finding_response.rb | 20 +++++++++++++++++++ .../v2/models/get_interfaces_data.rb | 20 +++++++++++++++++++ .../v2/models/get_interfaces_response.rb | 20 +++++++++++++++++++ .../v2/models/group_scalar_column.rb | 20 +++++++++++++++++++ .../v2/models/hourly_usage.rb | 20 +++++++++++++++++++ .../v2/models/hourly_usage_attributes.rb | 20 +++++++++++++++++++ .../v2/models/hourly_usage_measurement.rb | 20 +++++++++++++++++++ .../v2/models/hourly_usage_metadata.rb | 20 +++++++++++++++++++ .../v2/models/hourly_usage_pagination.rb | 20 +++++++++++++++++++ .../v2/models/hourly_usage_response.rb | 20 +++++++++++++++++++ .../v2/models/http_log_error.rb | 20 +++++++++++++++++++ .../v2/models/http_log_errors.rb | 20 +++++++++++++++++++ .../v2/models/http_log_item.rb | 20 +++++++++++++++++++ .../v2/models/httpci_app_error.rb | 20 +++++++++++++++++++ .../v2/models/httpci_app_errors.rb | 20 +++++++++++++++++++ .../v2/models/idp_metadata_form_data.rb | 20 +++++++++++++++++++ .../v2/models/incident_attachment_data.rb | 20 +++++++++++++++++++ .../incident_attachment_link_attributes.rb | 20 +++++++++++++++++++ ...hment_link_attributes_attachment_object.rb | 20 +++++++++++++++++++ ...cident_attachment_postmortem_attributes.rb | 20 +++++++++++++++++++ .../incident_attachment_relationships.rb | 20 +++++++++++++++++++ .../models/incident_attachment_update_data.rb | 20 +++++++++++++++++++ .../incident_attachment_update_request.rb | 20 +++++++++++++++++++ .../incident_attachment_update_response.rb | 20 +++++++++++++++++++ ...postmortem_attributes_attachment_object.rb | 20 +++++++++++++++++++ .../models/incident_attachments_response.rb | 20 +++++++++++++++++++ .../v2/models/incident_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/incident_create_data.rb | 20 +++++++++++++++++++ .../models/incident_create_relationships.rb | 20 +++++++++++++++++++ .../v2/models/incident_create_request.rb | 20 +++++++++++++++++++ ...ncident_field_attributes_multiple_value.rb | 20 +++++++++++++++++++ .../incident_field_attributes_single_value.rb | 20 +++++++++++++++++++ ...ncident_integration_metadata_attributes.rb | 20 +++++++++++++++++++ ...cident_integration_metadata_create_data.rb | 20 +++++++++++++++++++ ...ent_integration_metadata_create_request.rb | 20 +++++++++++++++++++ ...dent_integration_metadata_list_response.rb | 20 +++++++++++++++++++ ...ncident_integration_metadata_patch_data.rb | 20 +++++++++++++++++++ ...dent_integration_metadata_patch_request.rb | 20 +++++++++++++++++++ .../incident_integration_metadata_response.rb | 20 +++++++++++++++++++ ...dent_integration_metadata_response_data.rb | 20 +++++++++++++++++++ .../incident_integration_relationships.rb | 20 +++++++++++++++++++ .../v2/models/incident_non_datadog_creator.rb | 20 +++++++++++++++++++ .../v2/models/incident_notification_handle.rb | 20 +++++++++++++++++++ .../v2/models/incident_response.rb | 20 +++++++++++++++++++ .../v2/models/incident_response_attributes.rb | 20 +++++++++++++++++++ .../v2/models/incident_response_data.rb | 20 +++++++++++++++++++ .../v2/models/incident_response_meta.rb | 20 +++++++++++++++++++ .../incident_response_meta_pagination.rb | 20 +++++++++++++++++++ .../models/incident_response_relationships.rb | 20 +++++++++++++++++++ .../v2/models/incident_search_response.rb | 20 +++++++++++++++++++ .../incident_search_response_attributes.rb | 20 +++++++++++++++++++ .../models/incident_search_response_data.rb | 20 +++++++++++++++++++ .../incident_search_response_facets_data.rb | 20 +++++++++++++++++++ ...cident_search_response_field_facet_data.rb | 20 +++++++++++++++++++ ...incident_search_response_incidents_data.rb | 20 +++++++++++++++++++ .../models/incident_search_response_meta.rb | 20 +++++++++++++++++++ ...dent_search_response_numeric_facet_data.rb | 20 +++++++++++++++++++ ..._response_numeric_facet_data_aggregates.rb | 20 +++++++++++++++++++ ...arch_response_property_field_facet_data.rb | 20 +++++++++++++++++++ ...ncident_search_response_user_facet_data.rb | 20 +++++++++++++++++++ .../incident_service_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/incident_service_create_data.rb | 20 +++++++++++++++++++ .../models/incident_service_create_request.rb | 20 +++++++++++++++++++ .../models/incident_service_relationships.rb | 20 +++++++++++++++++++ .../v2/models/incident_service_response.rb | 20 +++++++++++++++++++ .../incident_service_response_attributes.rb | 20 +++++++++++++++++++ .../models/incident_service_response_data.rb | 20 +++++++++++++++++++ .../incident_service_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/incident_service_update_data.rb | 20 +++++++++++++++++++ .../models/incident_service_update_request.rb | 20 +++++++++++++++++++ .../v2/models/incident_services_response.rb | 20 +++++++++++++++++++ .../models/incident_team_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/incident_team_create_data.rb | 20 +++++++++++++++++++ .../v2/models/incident_team_create_request.rb | 20 +++++++++++++++++++ .../v2/models/incident_team_relationships.rb | 20 +++++++++++++++++++ .../v2/models/incident_team_response.rb | 20 +++++++++++++++++++ .../incident_team_response_attributes.rb | 20 +++++++++++++++++++ .../v2/models/incident_team_response_data.rb | 20 +++++++++++++++++++ .../models/incident_team_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/incident_team_update_data.rb | 20 +++++++++++++++++++ .../v2/models/incident_team_update_request.rb | 20 +++++++++++++++++++ .../v2/models/incident_teams_response.rb | 20 +++++++++++++++++++ ...imeline_cell_markdown_create_attributes.rb | 20 +++++++++++++++++++ ...cell_markdown_create_attributes_content.rb | 20 +++++++++++++++++++ .../incident_todo_anonymous_assignee.rb | 20 +++++++++++++++++++ .../v2/models/incident_todo_attributes.rb | 20 +++++++++++++++++++ .../v2/models/incident_todo_create_data.rb | 20 +++++++++++++++++++ .../v2/models/incident_todo_create_request.rb | 20 +++++++++++++++++++ .../v2/models/incident_todo_list_response.rb | 20 +++++++++++++++++++ .../v2/models/incident_todo_patch_data.rb | 20 +++++++++++++++++++ .../v2/models/incident_todo_patch_request.rb | 20 +++++++++++++++++++ .../v2/models/incident_todo_relationships.rb | 20 +++++++++++++++++++ .../v2/models/incident_todo_response.rb | 20 +++++++++++++++++++ .../v2/models/incident_todo_response_data.rb | 20 +++++++++++++++++++ .../v2/models/incident_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/incident_update_data.rb | 20 +++++++++++++++++++ .../models/incident_update_relationships.rb | 20 +++++++++++++++++++ .../v2/models/incident_update_request.rb | 20 +++++++++++++++++++ .../v2/models/incidents_response.rb | 20 +++++++++++++++++++ .../v2/models/intake_payload_accepted.rb | 20 +++++++++++++++++++ .../v2/models/interface_attributes.rb | 20 +++++++++++++++++++ .../v2/models/ip_allowlist_attributes.rb | 20 +++++++++++++++++++ .../v2/models/ip_allowlist_data.rb | 20 +++++++++++++++++++ .../v2/models/ip_allowlist_entry.rb | 20 +++++++++++++++++++ .../models/ip_allowlist_entry_attributes.rb | 20 +++++++++++++++++++ .../v2/models/ip_allowlist_entry_data.rb | 20 +++++++++++++++++++ .../v2/models/ip_allowlist_response.rb | 20 +++++++++++++++++++ .../v2/models/ip_allowlist_update_request.rb | 20 +++++++++++++++++++ .../v2/models/jira_integration_metadata.rb | 20 +++++++++++++++++++ .../jira_integration_metadata_issues_item.rb | 20 +++++++++++++++++++ .../v2/models/jira_issue.rb | 20 +++++++++++++++++++ .../v2/models/jira_issue_result.rb | 20 +++++++++++++++++++ .../v2/models/jsonapi_error_item.rb | 20 +++++++++++++++++++ .../v2/models/jsonapi_error_response.rb | 20 +++++++++++++++++++ .../v2/models/leaked_key.rb | 20 +++++++++++++++++++ .../v2/models/leaked_key_attributes.rb | 20 +++++++++++++++++++ .../v2/models/list_apis_response.rb | 20 +++++++++++++++++++ .../v2/models/list_apis_response_data.rb | 20 +++++++++++++++++++ .../list_apis_response_data_attributes.rb | 20 +++++++++++++++++++ .../v2/models/list_apis_response_meta.rb | 20 +++++++++++++++++++ .../list_apis_response_meta_pagination.rb | 20 +++++++++++++++++++ .../models/list_application_keys_response.rb | 20 +++++++++++++++++++ .../v2/models/list_devices_response.rb | 20 +++++++++++++++++++ .../models/list_devices_response_metadata.rb | 20 +++++++++++++++++++ .../list_devices_response_metadata_page.rb | 20 +++++++++++++++++++ .../v2/models/list_downtimes_response.rb | 20 +++++++++++++++++++ .../v2/models/list_findings_meta.rb | 16 --------------- .../v2/models/list_findings_page.rb | 16 --------------- .../v2/models/list_findings_response.rb | 20 +++++++++++++++++++ .../v2/models/list_powerpacks_response.rb | 20 +++++++++++++++++++ .../v2/models/list_rules_response.rb | 20 +++++++++++++++++++ .../models/list_rules_response_data_item.rb | 20 +++++++++++++++++++ .../v2/models/list_rules_response_links.rb | 20 +++++++++++++++++++ .../v2/models/list_tags_response.rb | 20 +++++++++++++++++++ .../v2/models/list_tags_response_data.rb | 20 +++++++++++++++++++ .../list_tags_response_data_attributes.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/log.rb | 20 +++++++++++++++++++ .../v2/models/log_attributes.rb | 20 +++++++++++++++++++ .../v2/models/logs_aggregate_bucket.rb | 20 +++++++++++++++++++ ...aggregate_bucket_value_timeseries_point.rb | 20 +++++++++++++++++++ .../v2/models/logs_aggregate_request.rb | 20 +++++++++++++++++++ .../v2/models/logs_aggregate_request_page.rb | 20 +++++++++++++++++++ .../v2/models/logs_aggregate_response.rb | 20 +++++++++++++++++++ .../v2/models/logs_aggregate_response_data.rb | 20 +++++++++++++++++++ .../v2/models/logs_aggregate_sort.rb | 20 +++++++++++++++++++ .../v2/models/logs_archive.rb | 20 +++++++++++++++++++ .../v2/models/logs_archive_attributes.rb | 20 +++++++++++++++++++ .../v2/models/logs_archive_create_request.rb | 20 +++++++++++++++++++ .../logs_archive_create_request_attributes.rb | 20 +++++++++++++++++++ .../logs_archive_create_request_definition.rb | 20 +++++++++++++++++++ .../v2/models/logs_archive_definition.rb | 20 +++++++++++++++++++ .../models/logs_archive_destination_azure.rb | 20 +++++++++++++++++++ .../v2/models/logs_archive_destination_gcs.rb | 20 +++++++++++++++++++ .../v2/models/logs_archive_destination_s3.rb | 20 +++++++++++++++++++ .../models/logs_archive_integration_azure.rb | 20 +++++++++++++++++++ .../v2/models/logs_archive_integration_gcs.rb | 20 +++++++++++++++++++ .../v2/models/logs_archive_integration_s3.rb | 20 +++++++++++++++++++ .../v2/models/logs_archive_order.rb | 20 +++++++++++++++++++ .../models/logs_archive_order_attributes.rb | 20 +++++++++++++++++++ .../models/logs_archive_order_definition.rb | 20 +++++++++++++++++++ .../v2/models/logs_archives.rb | 20 +++++++++++++++++++ .../v2/models/logs_compute.rb | 20 +++++++++++++++++++ .../v2/models/logs_group_by.rb | 20 +++++++++++++++++++ .../v2/models/logs_group_by_histogram.rb | 20 +++++++++++++++++++ .../v2/models/logs_list_request.rb | 20 +++++++++++++++++++ .../v2/models/logs_list_request_page.rb | 20 +++++++++++++++++++ .../v2/models/logs_list_response.rb | 20 +++++++++++++++++++ .../v2/models/logs_list_response_links.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_compute.rb | 20 +++++++++++++++++++ .../models/logs_metric_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_create_data.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_create_request.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_filter.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_group_by.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_response.rb | 20 +++++++++++++++++++ .../models/logs_metric_response_attributes.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_response_compute.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_response_data.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_response_filter.rb | 20 +++++++++++++++++++ .../models/logs_metric_response_group_by.rb | 20 +++++++++++++++++++ .../models/logs_metric_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_update_compute.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_update_data.rb | 20 +++++++++++++++++++ .../v2/models/logs_metric_update_request.rb | 20 +++++++++++++++++++ .../v2/models/logs_metrics_response.rb | 20 +++++++++++++++++++ .../v2/models/logs_query_filter.rb | 20 +++++++++++++++++++ .../v2/models/logs_query_options.rb | 20 +++++++++++++++++++ .../v2/models/logs_response_metadata.rb | 20 +++++++++++++++++++ .../v2/models/logs_response_metadata_page.rb | 20 +++++++++++++++++++ .../v2/models/logs_warning.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/metric.rb | 20 +++++++++++++++++++ .../v2/models/metric_all_tags.rb | 20 +++++++++++++++++++ .../v2/models/metric_all_tags_attributes.rb | 20 +++++++++++++++++++ .../v2/models/metric_all_tags_response.rb | 20 +++++++++++++++++++ .../v2/models/metric_asset_attributes.rb | 20 +++++++++++++++++++ .../metric_asset_dashboard_relationship.rb | 20 +++++++++++++++++++ .../metric_asset_dashboard_relationships.rb | 20 +++++++++++++++++++ .../metric_asset_monitor_relationship.rb | 20 +++++++++++++++++++ .../metric_asset_monitor_relationships.rb | 20 +++++++++++++++++++ .../metric_asset_notebook_relationship.rb | 20 +++++++++++++++++++ .../metric_asset_notebook_relationships.rb | 20 +++++++++++++++++++ .../v2/models/metric_asset_response_data.rb | 20 +++++++++++++++++++ .../metric_asset_response_relationships.rb | 20 +++++++++++++++++++ .../models/metric_asset_slo_relationship.rb | 20 +++++++++++++++++++ .../models/metric_asset_slo_relationships.rb | 20 +++++++++++++++++++ .../v2/models/metric_assets_response.rb | 20 +++++++++++++++++++ .../models/metric_bulk_tag_config_create.rb | 20 +++++++++++++++++++ ...etric_bulk_tag_config_create_attributes.rb | 20 +++++++++++++++++++ .../metric_bulk_tag_config_create_request.rb | 20 +++++++++++++++++++ .../models/metric_bulk_tag_config_delete.rb | 20 +++++++++++++++++++ ...etric_bulk_tag_config_delete_attributes.rb | 20 +++++++++++++++++++ .../metric_bulk_tag_config_delete_request.rb | 20 +++++++++++++++++++ .../models/metric_bulk_tag_config_response.rb | 20 +++++++++++++++++++ .../models/metric_bulk_tag_config_status.rb | 20 +++++++++++++++++++ ...etric_bulk_tag_config_status_attributes.rb | 20 +++++++++++++++++++ .../v2/models/metric_custom_aggregation.rb | 20 +++++++++++++++++++ .../v2/models/metric_dashboard_asset.rb | 20 +++++++++++++++++++ .../v2/models/metric_dashboard_attributes.rb | 20 +++++++++++++++++++ .../v2/models/metric_distinct_volume.rb | 20 +++++++++++++++++++ .../metric_distinct_volume_attributes.rb | 20 +++++++++++++++++++ .../v2/models/metric_estimate.rb | 20 +++++++++++++++++++ .../v2/models/metric_estimate_attributes.rb | 20 +++++++++++++++++++ .../v2/models/metric_estimate_response.rb | 20 +++++++++++++++++++ .../models/metric_ingested_indexed_volume.rb | 20 +++++++++++++++++++ ...tric_ingested_indexed_volume_attributes.rb | 20 +++++++++++++++++++ .../v2/models/metric_metadata.rb | 20 +++++++++++++++++++ .../v2/models/metric_monitor_asset.rb | 20 +++++++++++++++++++ .../v2/models/metric_notebook_asset.rb | 20 +++++++++++++++++++ .../v2/models/metric_origin.rb | 20 +++++++++++++++++++ .../v2/models/metric_payload.rb | 20 +++++++++++++++++++ .../v2/models/metric_point.rb | 20 +++++++++++++++++++ .../v2/models/metric_resource.rb | 20 +++++++++++++++++++ .../v2/models/metric_series.rb | 20 +++++++++++++++++++ .../v2/models/metric_slo_asset.rb | 20 +++++++++++++++++++ .../metric_suggested_tags_and_aggregations.rb | 20 +++++++++++++++++++ ...uggested_tags_and_aggregations_response.rb | 20 +++++++++++++++++++ .../metric_suggested_tags_attributes.rb | 20 +++++++++++++++++++ .../v2/models/metric_tag_configuration.rb | 20 +++++++++++++++++++ .../metric_tag_configuration_attributes.rb | 20 +++++++++++++++++++ ...ric_tag_configuration_create_attributes.rb | 20 +++++++++++++++++++ .../metric_tag_configuration_create_data.rb | 20 +++++++++++++++++++ ...metric_tag_configuration_create_request.rb | 20 +++++++++++++++++++ .../metric_tag_configuration_response.rb | 20 +++++++++++++++++++ ...ric_tag_configuration_update_attributes.rb | 20 +++++++++++++++++++ .../metric_tag_configuration_update_data.rb | 20 +++++++++++++++++++ ...metric_tag_configuration_update_request.rb | 20 +++++++++++++++++++ .../v2/models/metric_volumes_response.rb | 20 +++++++++++++++++++ ..._and_metric_tag_configurations_response.rb | 20 +++++++++++++++++++ .../v2/models/metrics_scalar_query.rb | 20 +++++++++++++++++++ .../v2/models/metrics_timeseries_query.rb | 20 +++++++++++++++++++ ..._config_policy_attribute_create_request.rb | 20 +++++++++++++++++++ ...or_config_policy_attribute_edit_request.rb | 20 +++++++++++++++++++ ...onitor_config_policy_attribute_response.rb | 20 +++++++++++++++++++ .../monitor_config_policy_create_data.rb | 20 +++++++++++++++++++ .../monitor_config_policy_create_request.rb | 20 +++++++++++++++++++ .../models/monitor_config_policy_edit_data.rb | 20 +++++++++++++++++++ .../monitor_config_policy_edit_request.rb | 20 +++++++++++++++++++ .../monitor_config_policy_list_response.rb | 20 +++++++++++++++++++ .../models/monitor_config_policy_response.rb | 20 +++++++++++++++++++ .../monitor_config_policy_response_data.rb | 20 +++++++++++++++++++ .../monitor_config_policy_tag_policy.rb | 20 +++++++++++++++++++ ...config_policy_tag_policy_create_request.rb | 20 +++++++++++++++++++ .../models/monitor_downtime_match_response.rb | 20 +++++++++++++++++++ ...itor_downtime_match_response_attributes.rb | 20 +++++++++++++++++++ .../monitor_downtime_match_response_data.rb | 20 +++++++++++++++++++ .../v2/models/monitor_type.rb | 20 +++++++++++++++++++ .../monthly_cost_attribution_attributes.rb | 20 +++++++++++++++++++ .../models/monthly_cost_attribution_body.rb | 20 +++++++++++++++++++ .../models/monthly_cost_attribution_meta.rb | 20 +++++++++++++++++++ .../monthly_cost_attribution_pagination.rb | 20 +++++++++++++++++++ .../monthly_cost_attribution_response.rb | 20 +++++++++++++++++++ .../models/nullable_relationship_to_user.rb | 20 +++++++++++++++++++ .../nullable_relationship_to_user_data.rb | 20 +++++++++++++++++++ .../v2/models/nullable_user_relationship.rb | 20 +++++++++++++++++++ .../models/nullable_user_relationship_data.rb | 20 +++++++++++++++++++ .../v2/models/okta_account.rb | 20 +++++++++++++++++++ .../v2/models/okta_account_attributes.rb | 20 +++++++++++++++++++ .../v2/models/okta_account_request.rb | 20 +++++++++++++++++++ .../v2/models/okta_account_response.rb | 20 +++++++++++++++++++ .../v2/models/okta_account_response_data.rb | 20 +++++++++++++++++++ .../v2/models/okta_account_update_request.rb | 20 +++++++++++++++++++ .../okta_account_update_request_attributes.rb | 20 +++++++++++++++++++ .../okta_account_update_request_data.rb | 20 +++++++++++++++++++ .../v2/models/okta_accounts_response.rb | 20 +++++++++++++++++++ .../v2/models/on_demand_concurrency_cap.rb | 20 +++++++++++++++++++ .../on_demand_concurrency_cap_attributes.rb | 20 +++++++++++++++++++ .../on_demand_concurrency_cap_response.rb | 20 +++++++++++++++++++ .../v2/models/open_api_endpoint.rb | 20 +++++++++++++++++++ .../v2/models/open_api_file.rb | 20 +++++++++++++++++++ .../opsgenie_service_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/opsgenie_service_create_data.rb | 20 +++++++++++++++++++ .../models/opsgenie_service_create_request.rb | 20 +++++++++++++++++++ .../v2/models/opsgenie_service_response.rb | 20 +++++++++++++++++++ .../opsgenie_service_response_attributes.rb | 20 +++++++++++++++++++ .../models/opsgenie_service_response_data.rb | 20 +++++++++++++++++++ .../opsgenie_service_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/opsgenie_service_update_data.rb | 20 +++++++++++++++++++ .../models/opsgenie_service_update_request.rb | 20 +++++++++++++++++++ .../v2/models/opsgenie_services_response.rb | 20 +++++++++++++++++++ .../v2/models/org_config_get_response.rb | 20 +++++++++++++++++++ .../v2/models/org_config_list_response.rb | 20 +++++++++++++++++++ .../v2/models/org_config_read.rb | 20 +++++++++++++++++++ .../v2/models/org_config_read_attributes.rb | 20 +++++++++++++++++++ .../v2/models/org_config_write.rb | 20 +++++++++++++++++++ .../v2/models/org_config_write_attributes.rb | 20 +++++++++++++++++++ .../v2/models/org_config_write_request.rb | 20 +++++++++++++++++++ .../v2/models/organization.rb | 20 +++++++++++++++++++ .../v2/models/organization_attributes.rb | 20 +++++++++++++++++++ .../v2/models/outcomes_batch_attributes.rb | 20 +++++++++++++++++++ .../v2/models/outcomes_batch_request.rb | 20 +++++++++++++++++++ .../v2/models/outcomes_batch_request_data.rb | 20 +++++++++++++++++++ .../v2/models/outcomes_batch_request_item.rb | 20 +++++++++++++++++++ .../v2/models/outcomes_batch_response.rb | 20 +++++++++++++++++++ .../outcomes_batch_response_attributes.rb | 20 +++++++++++++++++++ .../v2/models/outcomes_batch_response_meta.rb | 20 +++++++++++++++++++ .../v2/models/outcomes_response.rb | 20 +++++++++++++++++++ .../v2/models/outcomes_response_data_item.rb | 20 +++++++++++++++++++ .../models/outcomes_response_included_item.rb | 20 +++++++++++++++++++ ...comes_response_included_rule_attributes.rb | 20 +++++++++++++++++++ .../v2/models/outcomes_response_links.rb | 20 +++++++++++++++++++ .../v2/models/pagination.rb | 20 +++++++++++++++++++ .../v2/models/partial_api_key.rb | 20 +++++++++++++++++++ .../v2/models/partial_api_key_attributes.rb | 20 +++++++++++++++++++ .../v2/models/partial_application_key.rb | 20 +++++++++++++++++++ .../partial_application_key_attributes.rb | 20 +++++++++++++++++++ .../partial_application_key_response.rb | 20 +++++++++++++++++++ .../v2/models/permission.rb | 20 +++++++++++++++++++ .../v2/models/permission_attributes.rb | 20 +++++++++++++++++++ .../v2/models/permissions_response.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/powerpack.rb | 20 +++++++++++++++++++ .../v2/models/powerpack_attributes.rb | 20 +++++++++++++++++++ .../v2/models/powerpack_data.rb | 20 +++++++++++++++++++ .../v2/models/powerpack_group_widget.rb | 20 +++++++++++++++++++ .../powerpack_group_widget_definition.rb | 20 +++++++++++++++++++ .../models/powerpack_group_widget_layout.rb | 20 +++++++++++++++++++ .../models/powerpack_inner_widget_layout.rb | 20 +++++++++++++++++++ .../v2/models/powerpack_inner_widgets.rb | 20 +++++++++++++++++++ .../v2/models/powerpack_relationships.rb | 20 +++++++++++++++++++ .../v2/models/powerpack_response.rb | 20 +++++++++++++++++++ .../v2/models/powerpack_response_links.rb | 20 +++++++++++++++++++ .../v2/models/powerpack_template_variable.rb | 20 +++++++++++++++++++ .../v2/models/powerpacks_response_meta.rb | 20 +++++++++++++++++++ .../powerpacks_response_meta_pagination.rb | 20 +++++++++++++++++++ .../v2/models/process_summaries_meta.rb | 20 +++++++++++++++++++ .../v2/models/process_summaries_meta_page.rb | 20 +++++++++++++++++++ .../v2/models/process_summaries_response.rb | 20 +++++++++++++++++++ .../v2/models/process_summary.rb | 20 +++++++++++++++++++ .../v2/models/process_summary_attributes.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/project.rb | 20 +++++++++++++++++++ .../v2/models/project_attributes.rb | 20 +++++++++++++++++++ .../v2/models/project_create.rb | 20 +++++++++++++++++++ .../v2/models/project_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/project_create_request.rb | 20 +++++++++++++++++++ .../v2/models/project_relationship.rb | 20 +++++++++++++++++++ .../v2/models/project_relationship_data.rb | 20 +++++++++++++++++++ .../v2/models/project_relationships.rb | 20 +++++++++++++++++++ .../v2/models/project_response.rb | 20 +++++++++++++++++++ .../v2/models/projected_cost.rb | 20 +++++++++++++++++++ .../v2/models/projected_cost_attributes.rb | 20 +++++++++++++++++++ .../v2/models/projected_cost_response.rb | 20 +++++++++++++++++++ .../v2/models/projects_response.rb | 20 +++++++++++++++++++ .../v2/models/query_formula.rb | 20 +++++++++++++++++++ .../relationship_to_incident_attachment.rb | 20 +++++++++++++++++++ ...elationship_to_incident_attachment_data.rb | 20 +++++++++++++++++++ .../relationship_to_incident_impact_data.rb | 20 +++++++++++++++++++ .../relationship_to_incident_impacts.rb | 20 +++++++++++++++++++ ...p_to_incident_integration_metadata_data.rb | 20 +++++++++++++++++++ ...nship_to_incident_integration_metadatas.rb | 20 +++++++++++++++++++ .../relationship_to_incident_postmortem.rb | 20 +++++++++++++++++++ ...elationship_to_incident_postmortem_data.rb | 20 +++++++++++++++++++ ...relationship_to_incident_responder_data.rb | 20 +++++++++++++++++++ .../relationship_to_incident_responders.rb | 20 +++++++++++++++++++ ...hip_to_incident_user_defined_field_data.rb | 20 +++++++++++++++++++ ...ionship_to_incident_user_defined_fields.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_organization.rb | 20 +++++++++++++++++++ .../relationship_to_organization_data.rb | 20 +++++++++++++++++++ .../models/relationship_to_organizations.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_outcome.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_outcome_data.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_permission.rb | 20 +++++++++++++++++++ .../models/relationship_to_permission_data.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_permissions.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_role.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_role_data.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_roles.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_rule.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_rule_data.rb | 20 +++++++++++++++++++ .../relationship_to_rule_data_object.rb | 20 +++++++++++++++++++ ...elationship_to_saml_assertion_attribute.rb | 20 +++++++++++++++++++ ...onship_to_saml_assertion_attribute_data.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_team.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_team_data.rb | 20 +++++++++++++++++++ .../models/relationship_to_team_link_data.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_team_links.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_user.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_user_data.rb | 20 +++++++++++++++++++ .../relationship_to_user_team_permission.rb | 20 +++++++++++++++++++ ...lationship_to_user_team_permission_data.rb | 20 +++++++++++++++++++ .../models/relationship_to_user_team_team.rb | 20 +++++++++++++++++++ .../relationship_to_user_team_team_data.rb | 20 +++++++++++++++++++ .../models/relationship_to_user_team_user.rb | 20 +++++++++++++++++++ .../relationship_to_user_team_user_data.rb | 20 +++++++++++++++++++ .../v2/models/relationship_to_users.rb | 20 +++++++++++++++++++ .../reorder_retention_filters_request.rb | 20 +++++++++++++++++++ .../v2/models/response_meta_attributes.rb | 20 +++++++++++++++++++ .../v2/models/restriction_policy.rb | 20 +++++++++++++++++++ .../models/restriction_policy_attributes.rb | 20 +++++++++++++++++++ .../v2/models/restriction_policy_binding.rb | 20 +++++++++++++++++++ .../v2/models/restriction_policy_response.rb | 20 +++++++++++++++++++ .../restriction_policy_update_request.rb | 20 +++++++++++++++++++ .../v2/models/retention_filter.rb | 20 +++++++++++++++++++ .../v2/models/retention_filter_all.rb | 20 +++++++++++++++++++ .../models/retention_filter_all_attributes.rb | 20 +++++++++++++++++++ .../v2/models/retention_filter_attributes.rb | 20 +++++++++++++++++++ .../retention_filter_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/retention_filter_create_data.rb | 20 +++++++++++++++++++ .../models/retention_filter_create_request.rb | 20 +++++++++++++++++++ .../retention_filter_create_response.rb | 20 +++++++++++++++++++ .../v2/models/retention_filter_response.rb | 20 +++++++++++++++++++ .../retention_filter_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/retention_filter_update_data.rb | 20 +++++++++++++++++++ .../models/retention_filter_update_request.rb | 20 +++++++++++++++++++ .../retention_filter_without_attributes.rb | 20 +++++++++++++++++++ .../v2/models/retention_filters_response.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/role.rb | 20 +++++++++++++++++++ .../v2/models/role_attributes.rb | 20 +++++++++++++++++++ .../v2/models/role_clone.rb | 20 +++++++++++++++++++ .../v2/models/role_clone_attributes.rb | 20 +++++++++++++++++++ .../v2/models/role_clone_request.rb | 20 +++++++++++++++++++ .../v2/models/role_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/role_create_data.rb | 20 +++++++++++++++++++ .../v2/models/role_create_request.rb | 20 +++++++++++++++++++ .../v2/models/role_create_response.rb | 20 +++++++++++++++++++ .../v2/models/role_create_response_data.rb | 20 +++++++++++++++++++ .../v2/models/role_relationships.rb | 20 +++++++++++++++++++ .../v2/models/role_response.rb | 20 +++++++++++++++++++ .../v2/models/role_response_relationships.rb | 20 +++++++++++++++++++ .../v2/models/role_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/role_update_data.rb | 20 +++++++++++++++++++ .../v2/models/role_update_request.rb | 20 +++++++++++++++++++ .../v2/models/role_update_response.rb | 20 +++++++++++++++++++ .../v2/models/role_update_response_data.rb | 20 +++++++++++++++++++ .../v2/models/roles_response.rb | 20 +++++++++++++++++++ .../v2/models/rule_attributes.rb | 20 +++++++++++++++++++ .../v2/models/rule_outcome_relationships.rb | 20 +++++++++++++++++++ ...aggregate_bucket_value_timeseries_point.rb | 20 +++++++++++++++++++ .../v2/models/rum_aggregate_request.rb | 20 +++++++++++++++++++ .../v2/models/rum_aggregate_sort.rb | 20 +++++++++++++++++++ .../rum_aggregation_buckets_response.rb | 20 +++++++++++++++++++ .../rum_analytics_aggregate_response.rb | 20 +++++++++++++++++++ .../v2/models/rum_application.rb | 20 +++++++++++++++++++ .../v2/models/rum_application_attributes.rb | 20 +++++++++++++++++++ .../v2/models/rum_application_create.rb | 20 +++++++++++++++++++ .../rum_application_create_attributes.rb | 20 +++++++++++++++++++ .../models/rum_application_create_request.rb | 20 +++++++++++++++++++ .../v2/models/rum_application_list.rb | 20 +++++++++++++++++++ .../models/rum_application_list_attributes.rb | 20 +++++++++++++++++++ .../v2/models/rum_application_response.rb | 20 +++++++++++++++++++ .../v2/models/rum_application_update.rb | 20 +++++++++++++++++++ .../rum_application_update_attributes.rb | 20 +++++++++++++++++++ .../models/rum_application_update_request.rb | 20 +++++++++++++++++++ .../v2/models/rum_applications_response.rb | 20 +++++++++++++++++++ .../v2/models/rum_bucket_response.rb | 20 +++++++++++++++++++ .../v2/models/rum_compute.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/rum_event.rb | 20 +++++++++++++++++++ .../v2/models/rum_event_attributes.rb | 20 +++++++++++++++++++ .../v2/models/rum_events_response.rb | 20 +++++++++++++++++++ .../v2/models/rum_group_by.rb | 20 +++++++++++++++++++ .../v2/models/rum_group_by_histogram.rb | 20 +++++++++++++++++++ .../v2/models/rum_query_filter.rb | 20 +++++++++++++++++++ .../v2/models/rum_query_options.rb | 20 +++++++++++++++++++ .../v2/models/rum_query_page_options.rb | 20 +++++++++++++++++++ .../v2/models/rum_response_links.rb | 20 +++++++++++++++++++ .../v2/models/rum_response_metadata.rb | 20 +++++++++++++++++++ .../v2/models/rum_response_page.rb | 20 +++++++++++++++++++ .../v2/models/rum_search_events_request.rb | 20 +++++++++++++++++++ .../v2/models/rum_warning.rb | 20 +++++++++++++++++++ .../v2/models/saml_assertion_attribute.rb | 20 +++++++++++++++++++ .../saml_assertion_attribute_attributes.rb | 20 +++++++++++++++++++ .../v2/models/scalar_formula_query_request.rb | 20 +++++++++++++++++++ .../models/scalar_formula_query_response.rb | 20 +++++++++++++++++++ .../v2/models/scalar_formula_request.rb | 20 +++++++++++++++++++ .../scalar_formula_request_attributes.rb | 20 +++++++++++++++++++ .../scalar_formula_response_atrributes.rb | 20 +++++++++++++++++++ .../v2/models/scalar_meta.rb | 20 +++++++++++++++++++ .../v2/models/scalar_response.rb | 20 +++++++++++++++++++ .../v2/models/security_filter.rb | 20 +++++++++++++++++++ .../v2/models/security_filter_attributes.rb | 20 +++++++++++++++++++ .../security_filter_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/security_filter_create_data.rb | 20 +++++++++++++++++++ .../models/security_filter_create_request.rb | 20 +++++++++++++++++++ .../security_filter_exclusion_filter.rb | 20 +++++++++++++++++++ ...curity_filter_exclusion_filter_response.rb | 20 +++++++++++++++++++ .../v2/models/security_filter_meta.rb | 20 +++++++++++++++++++ .../v2/models/security_filter_response.rb | 20 +++++++++++++++++++ .../security_filter_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/security_filter_update_data.rb | 20 +++++++++++++++++++ .../models/security_filter_update_request.rb | 20 +++++++++++++++++++ .../v2/models/security_filters_response.rb | 20 +++++++++++++++++++ .../v2/models/security_monitoring_filter.rb | 20 +++++++++++++++++++ ...security_monitoring_list_rules_response.rb | 20 +++++++++++++++++++ .../models/security_monitoring_rule_case.rb | 20 +++++++++++++++++++ .../security_monitoring_rule_case_create.rb | 20 +++++++++++++++++++ ...curity_monitoring_rule_convert_response.rb | 20 +++++++++++++++++++ ...nitoring_rule_impossible_travel_options.rb | 20 +++++++++++++++++++ ...urity_monitoring_rule_new_value_options.rb | 20 +++++++++++++++++++ .../security_monitoring_rule_options.rb | 20 +++++++++++++++++++ .../security_monitoring_rule_query_payload.rb | 20 +++++++++++++++++++ ...rity_monitoring_rule_query_payload_data.rb | 20 +++++++++++++++++++ .../security_monitoring_rule_test_request.rb | 20 +++++++++++++++++++ .../security_monitoring_rule_test_response.rb | 20 +++++++++++++++++++ ...ity_monitoring_rule_third_party_options.rb | 20 +++++++++++++++++++ ...security_monitoring_rule_update_payload.rb | 20 +++++++++++++++++++ .../v2/models/security_monitoring_signal.rb | 20 +++++++++++++++++++ ...oring_signal_assignee_update_attributes.rb | 20 +++++++++++++++++++ ..._monitoring_signal_assignee_update_data.rb | 20 +++++++++++++++++++ ...nitoring_signal_assignee_update_request.rb | 20 +++++++++++++++++++ .../security_monitoring_signal_attributes.rb | 20 +++++++++++++++++++ ...ring_signal_incidents_update_attributes.rb | 20 +++++++++++++++++++ ...monitoring_signal_incidents_update_data.rb | 20 +++++++++++++++++++ ...itoring_signal_incidents_update_request.rb | 20 +++++++++++++++++++ ...security_monitoring_signal_list_request.rb | 20 +++++++++++++++++++ ...y_monitoring_signal_list_request_filter.rb | 20 +++++++++++++++++++ ...ity_monitoring_signal_list_request_page.rb | 20 +++++++++++++++++++ .../security_monitoring_signal_response.rb | 20 +++++++++++++++++++ ...y_monitoring_signal_rule_create_payload.rb | 20 +++++++++++++++++++ ...security_monitoring_signal_rule_payload.rb | 20 +++++++++++++++++++ .../security_monitoring_signal_rule_query.rb | 20 +++++++++++++++++++ ...ecurity_monitoring_signal_rule_response.rb | 20 +++++++++++++++++++ ...y_monitoring_signal_rule_response_query.rb | 20 +++++++++++++++++++ ...nitoring_signal_state_update_attributes.rb | 20 +++++++++++++++++++ ...ity_monitoring_signal_state_update_data.rb | 20 +++++++++++++++++++ ..._monitoring_signal_state_update_request.rb | 20 +++++++++++++++++++ ...ity_monitoring_signal_triage_attributes.rb | 20 +++++++++++++++++++ ...ty_monitoring_signal_triage_update_data.rb | 20 +++++++++++++++++++ ...onitoring_signal_triage_update_response.rb | 20 +++++++++++++++++++ ...curity_monitoring_signals_list_response.rb | 20 +++++++++++++++++++ ..._monitoring_signals_list_response_links.rb | 20 +++++++++++++++++++ ...y_monitoring_signals_list_response_meta.rb | 20 +++++++++++++++++++ ...itoring_signals_list_response_meta_page.rb | 20 +++++++++++++++++++ ...monitoring_standard_rule_create_payload.rb | 20 +++++++++++++++++++ ...curity_monitoring_standard_rule_payload.rb | 20 +++++++++++++++++++ ...security_monitoring_standard_rule_query.rb | 20 +++++++++++++++++++ ...urity_monitoring_standard_rule_response.rb | 20 +++++++++++++++++++ ...y_monitoring_standard_rule_test_payload.rb | 20 +++++++++++++++++++ .../models/security_monitoring_suppression.rb | 20 +++++++++++++++++++ ...urity_monitoring_suppression_attributes.rb | 20 +++++++++++++++++++ ...onitoring_suppression_create_attributes.rb | 20 +++++++++++++++++++ ...rity_monitoring_suppression_create_data.rb | 20 +++++++++++++++++++ ...y_monitoring_suppression_create_request.rb | 20 +++++++++++++++++++ ...ecurity_monitoring_suppression_response.rb | 20 +++++++++++++++++++ ...onitoring_suppression_update_attributes.rb | 20 +++++++++++++++++++ ...rity_monitoring_suppression_update_data.rb | 20 +++++++++++++++++++ ...y_monitoring_suppression_update_request.rb | 20 +++++++++++++++++++ ...curity_monitoring_suppressions_response.rb | 20 +++++++++++++++++++ ...urity_monitoring_third_party_root_query.rb | 20 +++++++++++++++++++ ...curity_monitoring_third_party_rule_case.rb | 20 +++++++++++++++++++ ...monitoring_third_party_rule_case_create.rb | 20 +++++++++++++++++++ .../models/security_monitoring_triage_user.rb | 20 +++++++++++++++++++ .../v2/models/security_monitoring_user.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_config_request.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_configuration.rb | 20 +++++++++++++++++++ ...nsitive_data_scanner_configuration_data.rb | 20 +++++++++++++++++++ ...ata_scanner_configuration_relationships.rb | 20 +++++++++++++++++++ ...tive_data_scanner_create_group_response.rb | 20 +++++++++++++++++++ ...itive_data_scanner_create_rule_response.rb | 20 +++++++++++++++++++ .../models/sensitive_data_scanner_filter.rb | 20 +++++++++++++++++++ ...sitive_data_scanner_get_config_response.rb | 20 +++++++++++++++++++ ...e_data_scanner_get_config_response_data.rb | 20 +++++++++++++++++++ .../v2/models/sensitive_data_scanner_group.rb | 20 +++++++++++++++++++ ...sensitive_data_scanner_group_attributes.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_group_create.rb | 20 +++++++++++++++++++ ...itive_data_scanner_group_create_request.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_group_data.rb | 20 +++++++++++++++++++ ...itive_data_scanner_group_delete_request.rb | 20 +++++++++++++++++++ ...tive_data_scanner_group_delete_response.rb | 20 +++++++++++++++++++ ...sitive_data_scanner_group_included_item.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_group_item.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_group_list.rb | 20 +++++++++++++++++++ ...sitive_data_scanner_group_relationships.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_group_response.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_group_update.rb | 20 +++++++++++++++++++ ...itive_data_scanner_group_update_request.rb | 20 +++++++++++++++++++ ...tive_data_scanner_group_update_response.rb | 20 +++++++++++++++++++ ..._scanner_included_keyword_configuration.rb | 20 +++++++++++++++++++ .../v2/models/sensitive_data_scanner_meta.rb | 20 +++++++++++++++++++ ...ensitive_data_scanner_meta_version_only.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_reorder_config.rb | 20 +++++++++++++++++++ ...ve_data_scanner_reorder_groups_response.rb | 20 +++++++++++++++++++ .../v2/models/sensitive_data_scanner_rule.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_rule_attributes.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_rule_create.rb | 20 +++++++++++++++++++ ...sitive_data_scanner_rule_create_request.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_rule_data.rb | 20 +++++++++++++++++++ ...sitive_data_scanner_rule_delete_request.rb | 20 +++++++++++++++++++ ...itive_data_scanner_rule_delete_response.rb | 20 +++++++++++++++++++ ...nsitive_data_scanner_rule_included_item.rb | 20 +++++++++++++++++++ ...nsitive_data_scanner_rule_relationships.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_rule_response.rb | 20 +++++++++++++++++++ .../sensitive_data_scanner_rule_update.rb | 20 +++++++++++++++++++ ...sitive_data_scanner_rule_update_request.rb | 20 +++++++++++++++++++ ...itive_data_scanner_rule_update_response.rb | 20 +++++++++++++++++++ ...sensitive_data_scanner_standard_pattern.rb | 20 +++++++++++++++++++ ...ata_scanner_standard_pattern_attributes.rb | 20 +++++++++++++++++++ ...tive_data_scanner_standard_pattern_data.rb | 20 +++++++++++++++++++ ...scanner_standard_patterns_response_data.rb | 20 +++++++++++++++++++ ...scanner_standard_patterns_response_item.rb | 20 +++++++++++++++++++ ...sensitive_data_scanner_text_replacement.rb | 20 +++++++++++++++++++ .../service_account_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/service_account_create_data.rb | 20 +++++++++++++++++++ .../models/service_account_create_request.rb | 20 +++++++++++++++++++ .../service_definition_create_response.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_data.rb | 20 +++++++++++++++++++ .../service_definition_data_attributes.rb | 20 +++++++++++++++++++ .../models/service_definition_get_response.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_meta.rb | 20 +++++++++++++++++++ .../service_definition_meta_warnings.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v1.rb | 20 +++++++++++++++++++ .../models/service_definition_v1_contact.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v1_info.rb | 20 +++++++++++++++++++ .../service_definition_v1_integrations.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v1_org.rb | 20 +++++++++++++++++++ .../models/service_definition_v1_resource.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v2.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v2_doc.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v2_dot1.rb | 20 +++++++++++++++++++ .../service_definition_v2_dot1_email.rb | 20 +++++++++++++++++++ ...service_definition_v2_dot1_integrations.rb | 20 +++++++++++++++++++ .../models/service_definition_v2_dot1_link.rb | 20 +++++++++++++++++++ .../service_definition_v2_dot1_ms_teams.rb | 20 +++++++++++++++++++ .../service_definition_v2_dot1_opsgenie.rb | 20 +++++++++++++++++++ .../service_definition_v2_dot1_pagerduty.rb | 20 +++++++++++++++++++ .../service_definition_v2_dot1_slack.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v2_dot2.rb | 20 +++++++++++++++++++ .../service_definition_v2_dot2_contact.rb | 20 +++++++++++++++++++ ...service_definition_v2_dot2_integrations.rb | 20 +++++++++++++++++++ .../models/service_definition_v2_dot2_link.rb | 20 +++++++++++++++++++ .../service_definition_v2_dot2_opsgenie.rb | 20 +++++++++++++++++++ .../service_definition_v2_dot2_pagerduty.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v2_email.rb | 20 +++++++++++++++++++ .../service_definition_v2_integrations.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v2_link.rb | 20 +++++++++++++++++++ .../models/service_definition_v2_ms_teams.rb | 20 +++++++++++++++++++ .../models/service_definition_v2_opsgenie.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v2_repo.rb | 20 +++++++++++++++++++ .../v2/models/service_definition_v2_slack.rb | 20 +++++++++++++++++++ .../service_definitions_list_response.rb | 20 +++++++++++++++++++ .../v2/models/service_now_ticket.rb | 20 +++++++++++++++++++ .../v2/models/service_now_ticket_result.rb | 20 +++++++++++++++++++ .../v2/models/slack_integration_metadata.rb | 20 +++++++++++++++++++ ...slack_integration_metadata_channel_item.rb | 20 +++++++++++++++++++ .../v2/models/slo_report_create_request.rb | 20 +++++++++++++++++++ .../slo_report_create_request_attributes.rb | 20 +++++++++++++++++++ .../models/slo_report_create_request_data.rb | 20 +++++++++++++++++++ .../v2/models/slo_report_post_response.rb | 20 +++++++++++++++++++ .../models/slo_report_post_response_data.rb | 20 +++++++++++++++++++ .../models/slo_report_status_get_response.rb | 20 +++++++++++++++++++ ...o_report_status_get_response_attributes.rb | 20 +++++++++++++++++++ .../slo_report_status_get_response_data.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/span.rb | 20 +++++++++++++++++++ .../v2/models/spans_aggregate_bucket.rb | 20 +++++++++++++++++++ .../spans_aggregate_bucket_attributes.rb | 20 +++++++++++++++++++ ...aggregate_bucket_value_timeseries_point.rb | 20 +++++++++++++++++++ .../v2/models/spans_aggregate_data.rb | 20 +++++++++++++++++++ .../v2/models/spans_aggregate_request.rb | 20 +++++++++++++++++++ .../spans_aggregate_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/spans_aggregate_response.rb | 20 +++++++++++++++++++ .../spans_aggregate_response_metadata.rb | 20 +++++++++++++++++++ .../v2/models/spans_aggregate_sort.rb | 20 +++++++++++++++++++ .../v2/models/spans_attributes.rb | 20 +++++++++++++++++++ .../v2/models/spans_compute.rb | 20 +++++++++++++++++++ .../v2/models/spans_filter.rb | 20 +++++++++++++++++++ .../v2/models/spans_filter_create.rb | 20 +++++++++++++++++++ .../v2/models/spans_group_by.rb | 20 +++++++++++++++++++ .../v2/models/spans_group_by_histogram.rb | 20 +++++++++++++++++++ .../v2/models/spans_list_request.rb | 20 +++++++++++++++++++ .../models/spans_list_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/spans_list_request_data.rb | 20 +++++++++++++++++++ .../v2/models/spans_list_request_page.rb | 20 +++++++++++++++++++ .../v2/models/spans_list_response.rb | 20 +++++++++++++++++++ .../v2/models/spans_list_response_links.rb | 20 +++++++++++++++++++ .../v2/models/spans_list_response_metadata.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_compute.rb | 20 +++++++++++++++++++ .../models/spans_metric_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_create_data.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_create_request.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_filter.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_group_by.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_response.rb | 20 +++++++++++++++++++ .../spans_metric_response_attributes.rb | 20 +++++++++++++++++++ .../models/spans_metric_response_compute.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_response_data.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_response_filter.rb | 20 +++++++++++++++++++ .../models/spans_metric_response_group_by.rb | 20 +++++++++++++++++++ .../models/spans_metric_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_update_compute.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_update_data.rb | 20 +++++++++++++++++++ .../v2/models/spans_metric_update_request.rb | 20 +++++++++++++++++++ .../v2/models/spans_metrics_response.rb | 20 +++++++++++++++++++ .../v2/models/spans_query_filter.rb | 20 +++++++++++++++++++ .../v2/models/spans_query_options.rb | 20 +++++++++++++++++++ .../v2/models/spans_response_metadata_page.rb | 20 +++++++++++++++++++ .../v2/models/spans_warning.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/team.rb | 20 +++++++++++++++++++ .../v2/models/team_attributes.rb | 20 +++++++++++++++++++ .../v2/models/team_create.rb | 20 +++++++++++++++++++ .../v2/models/team_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/team_create_relationships.rb | 20 +++++++++++++++++++ .../v2/models/team_create_request.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/team_link.rb | 20 +++++++++++++++++++ .../v2/models/team_link_attributes.rb | 20 +++++++++++++++++++ .../v2/models/team_link_create.rb | 20 +++++++++++++++++++ .../v2/models/team_link_create_request.rb | 20 +++++++++++++++++++ .../v2/models/team_link_response.rb | 20 +++++++++++++++++++ .../v2/models/team_links_response.rb | 20 +++++++++++++++++++ .../v2/models/team_permission_setting.rb | 20 +++++++++++++++++++ .../team_permission_setting_attributes.rb | 20 +++++++++++++++++++ .../team_permission_setting_response.rb | 20 +++++++++++++++++++ .../models/team_permission_setting_update.rb | 20 +++++++++++++++++++ ...am_permission_setting_update_attributes.rb | 20 +++++++++++++++++++ .../team_permission_setting_update_request.rb | 20 +++++++++++++++++++ .../team_permission_settings_response.rb | 20 +++++++++++++++++++ .../v2/models/team_relationships.rb | 20 +++++++++++++++++++ .../v2/models/team_relationships_links.rb | 20 +++++++++++++++++++ .../v2/models/team_response.rb | 20 +++++++++++++++++++ .../v2/models/team_update.rb | 20 +++++++++++++++++++ .../v2/models/team_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/team_update_relationships.rb | 20 +++++++++++++++++++ .../v2/models/team_update_request.rb | 20 +++++++++++++++++++ .../v2/models/teams_response.rb | 20 +++++++++++++++++++ .../v2/models/teams_response_links.rb | 20 +++++++++++++++++++ .../v2/models/teams_response_meta.rb | 20 +++++++++++++++++++ .../models/teams_response_meta_pagination.rb | 20 +++++++++++++++++++ .../timeseries_formula_query_request.rb | 20 +++++++++++++++++++ .../timeseries_formula_query_response.rb | 20 +++++++++++++++++++ .../v2/models/timeseries_formula_request.rb | 20 +++++++++++++++++++ .../timeseries_formula_request_attributes.rb | 20 +++++++++++++++++++ .../v2/models/timeseries_response.rb | 20 +++++++++++++++++++ .../models/timeseries_response_attributes.rb | 20 +++++++++++++++++++ .../v2/models/timeseries_response_series.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/unit.rb | 20 +++++++++++++++++++ .../v2/models/update_open_api_response.rb | 20 +++++++++++++++++++ .../update_open_api_response_attributes.rb | 20 +++++++++++++++++++ .../models/update_open_api_response_data.rb | 20 +++++++++++++++++++ .../v2/models/update_rule_request.rb | 20 +++++++++++++++++++ .../v2/models/update_rule_request_data.rb | 20 +++++++++++++++++++ .../v2/models/update_rule_response.rb | 20 +++++++++++++++++++ .../v2/models/update_rule_response_data.rb | 20 +++++++++++++++++++ ...pplication_security_monitoring_response.rb | 20 +++++++++++++++++++ .../v2/models/usage_attributes_object.rb | 20 +++++++++++++++++++ .../v2/models/usage_data_object.rb | 20 +++++++++++++++++++ ...sage_lambda_traced_invocations_response.rb | 20 +++++++++++++++++++ .../usage_observability_pipelines_response.rb | 20 +++++++++++++++++++ .../v2/models/usage_time_series_object.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/user.rb | 20 +++++++++++++++++++ .../v2/models/user_attributes.rb | 20 +++++++++++++++++++ .../v2/models/user_create_attributes.rb | 20 +++++++++++++++++++ .../v2/models/user_create_data.rb | 20 +++++++++++++++++++ .../v2/models/user_create_request.rb | 20 +++++++++++++++++++ .../v2/models/user_invitation_data.rb | 20 +++++++++++++++++++ .../models/user_invitation_data_attributes.rb | 20 +++++++++++++++++++ .../models/user_invitation_relationships.rb | 20 +++++++++++++++++++ .../v2/models/user_invitation_response.rb | 20 +++++++++++++++++++ .../models/user_invitation_response_data.rb | 20 +++++++++++++++++++ .../v2/models/user_invitations_request.rb | 20 +++++++++++++++++++ .../v2/models/user_invitations_response.rb | 20 +++++++++++++++++++ .../v2/models/user_relationship_data.rb | 20 +++++++++++++++++++ .../v2/models/user_relationships.rb | 20 +++++++++++++++++++ .../v2/models/user_response.rb | 20 +++++++++++++++++++ .../v2/models/user_response_relationships.rb | 20 +++++++++++++++++++ lib/datadog_api_client/v2/models/user_team.rb | 20 +++++++++++++++++++ .../v2/models/user_team_attributes.rb | 20 +++++++++++++++++++ .../v2/models/user_team_create.rb | 20 +++++++++++++++++++ .../v2/models/user_team_permission.rb | 20 +++++++++++++++++++ .../models/user_team_permission_attributes.rb | 20 +++++++++++++++++++ .../v2/models/user_team_relationships.rb | 20 +++++++++++++++++++ .../v2/models/user_team_request.rb | 20 +++++++++++++++++++ .../v2/models/user_team_response.rb | 20 +++++++++++++++++++ .../v2/models/user_team_update.rb | 20 +++++++++++++++++++ .../v2/models/user_team_update_request.rb | 20 +++++++++++++++++++ .../v2/models/user_teams_response.rb | 20 +++++++++++++++++++ .../v2/models/user_update_attributes.rb | 20 +++++++++++++++++++ .../v2/models/user_update_data.rb | 20 +++++++++++++++++++ .../v2/models/user_update_request.rb | 20 +++++++++++++++++++ .../v2/models/users_relationship.rb | 20 +++++++++++++++++++ .../v2/models/users_response.rb | 20 +++++++++++++++++++ .../models/workflow_instance_create_meta.rb | 20 +++++++++++++++++++ .../workflow_instance_create_request.rb | 20 +++++++++++++++++++ .../workflow_instance_create_response.rb | 20 +++++++++++++++++++ .../workflow_instance_create_response_data.rb | 20 +++++++++++++++++++ .../v2/models/workflow_instance_list_item.rb | 20 +++++++++++++++++++ .../workflow_list_instances_response.rb | 20 +++++++++++++++++++ .../workflow_list_instances_response_meta.rb | 20 +++++++++++++++++++ ...kflow_list_instances_response_meta_page.rb | 20 +++++++++++++++++++ .../worklflow_cancel_instance_response.rb | 20 +++++++++++++++++++ ...worklflow_cancel_instance_response_data.rb | 20 +++++++++++++++++++ .../models/worklflow_get_instance_response.rb | 20 +++++++++++++++++++ .../worklflow_get_instance_response_data.rb | 20 +++++++++++++++++++ ...w_get_instance_response_data_attributes.rb | 20 +++++++++++++++++++ 1794 files changed, 35644 insertions(+), 170 deletions(-) diff --git a/lib/datadog_api_client/v1/model_base.rb b/lib/datadog_api_client/v1/model_base.rb index 64365d75d81c..fda1f3037344 100644 --- a/lib/datadog_api_client/v1/model_base.rb +++ b/lib/datadog_api_client/v1/model_base.rb @@ -59,7 +59,7 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) unless self.respond_to?(:additional_properties) unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } - raise SchemaMismatchError, "Additional properties are not allowed" + return nil end end self.class.openapi_types.each_pair do |key, type| @@ -161,7 +161,7 @@ def to_body to_hash end - # Returns the object in the form of hash, with additionalProperties support. + # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash # @!visibility private def to_hash @@ -175,9 +175,6 @@ def to_hash hash[param] = _to_hash(value) end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end hash end diff --git a/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb b/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb index 3a28c61d6b8f..108fa967c560 100644 --- a/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb +++ b/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb @@ -101,6 +101,26 @@ def incident_id=(incident_id) @incident_id = incident_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb b/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb index f9114194f1bf..e009b3dd440a 100644 --- a/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb @@ -159,6 +159,26 @@ def viz_type=(viz_type) @viz_type = viz_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb b/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb index 339d6c698d0e..60ab2fc33b67 100644 --- a/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb @@ -157,6 +157,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/api_error_response.rb b/lib/datadog_api_client/v1/models/api_error_response.rb index 9117370a26c1..fef860614fc4 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -85,6 +85,26 @@ def errors=(errors) @errors = errors end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index c0fafda75764..c1eda2c40345 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -114,6 +114,26 @@ def key=(key) @key = key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/api_key_list_response.rb b/lib/datadog_api_client/v1/models/api_key_list_response.rb index 52e9c55e8f40..10c7034e51fc 100644 --- a/lib/datadog_api_client/v1/models/api_key_list_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/api_key_response.rb b/lib/datadog_api_client/v1/models/api_key_response.rb index 0744acd9823a..e380a200d36f 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb b/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb index f6eefdc2b466..9d05bcadd665 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb @@ -110,6 +110,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb b/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb index b5c36db8751a..98827cc38573 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb @@ -183,6 +183,26 @@ def service=(service) @service = service end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index 03218a5dd2aa..21b4ea6ad39a 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -105,6 +105,26 @@ def _hash=(_hash) @_hash = _hash end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/application_key_list_response.rb b/lib/datadog_api_client/v1/models/application_key_list_response.rb index 95d9a5332522..af5706c0ea78 100644 --- a/lib/datadog_api_client/v1/models/application_key_list_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/application_key_response.rb b/lib/datadog_api_client/v1/models/application_key_response.rb index f64182dca43e..821573536e2a 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/authentication_validation_response.rb b/lib/datadog_api_client/v1/models/authentication_validation_response.rb index 2f0a11182489..0baa0db35e6f 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index 93ebddb1807a..7d965eab6627 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -179,6 +179,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb b/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb index 5801dabff3e0..f3933795f22c 100644 --- a/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb +++ b/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb @@ -103,6 +103,26 @@ def lambda_arn=(lambda_arn) @lambda_arn = lambda_arn end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account_create_response.rb b/lib/datadog_api_client/v1/models/aws_account_create_response.rb index 5d742e931716..c741aa3f62e0 100644 --- a/lib/datadog_api_client/v1/models/aws_account_create_response.rb +++ b/lib/datadog_api_client/v1/models/aws_account_create_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account_delete_request.rb b/lib/datadog_api_client/v1/models/aws_account_delete_request.rb index 4b266be3929b..f5498bd75406 100644 --- a/lib/datadog_api_client/v1/models/aws_account_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_account_delete_request.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_account_list_response.rb b/lib/datadog_api_client/v1/models/aws_account_list_response.rb index 25267cfa29b9..60f4637d1b23 100644 --- a/lib/datadog_api_client/v1/models/aws_account_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_account_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb index 4e02106523db..104249c6d615 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb @@ -88,6 +88,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb index a585e56a9700..a7c5a97ec17b 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb @@ -94,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb index f9dadf46b20b..8db98d22f3d0 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb index 9f2e13763488..3728a892a176 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb index ad5839be6c2e..28202c33ecf7 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb index 81ab13656d92..705edb4c795f 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb b/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb index 5050e09d6fa2..8c7a2d031ec6 100644 --- a/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb +++ b/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_async_error.rb b/lib/datadog_api_client/v1/models/aws_logs_async_error.rb index f83594f8b921..19c080766b0f 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_async_error.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_async_error.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_async_response.rb b/lib/datadog_api_client/v1/models/aws_logs_async_response.rb index 89bfce739981..0b865db0dbb4 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_async_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_async_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb index dd5de8470e05..4f05c96e1d4c 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_list_response.rb b/lib/datadog_api_client/v1/models/aws_logs_list_response.rb index 21e2896f377e..608a1baee641 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_list_response.rb @@ -87,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb b/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb index a67c34a2f0ed..912c94a5b2bb 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_logs_services_request.rb b/lib/datadog_api_client/v1/models/aws_logs_services_request.rb index 498b5948c806..0dee77c43f2b 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_services_request.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_services_request.rb @@ -105,6 +105,26 @@ def services=(services) @services = services end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter.rb b/lib/datadog_api_client/v1/models/aws_tag_filter.rb index 3b9cba2dc2ba..727db1e7edd9 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb index 73d7d0b47cb6..213973762323 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb index b3a03d69ae04..0825c70e6656 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb index 168edb34db63..5259978f0ed9 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index a2bdb8c5db93..1586bfd0f78f 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -191,6 +191,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb b/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb index 56b9309412d6..f754e97c2309 100644 --- a/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb +++ b/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb @@ -70,6 +70,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb b/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb index 9785e1931fc3..a1ee5793a945 100644 --- a/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb +++ b/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb @@ -85,6 +85,26 @@ def scope=(scope) @scope = scope end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb index ee7c879138ed..40efe8b0bcdf 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/change_widget_definition.rb b/lib/datadog_api_client/v1/models/change_widget_definition.rb index 77f43a630333..0141923d6c86 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -163,6 +163,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/change_widget_request.rb b/lib/datadog_api_client/v1/models/change_widget_request.rb index 886604bd574a..cf43f748421a 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -222,6 +222,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb index 409b8b2f26fa..c1353d1bffd0 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb @@ -100,6 +100,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb index abe515b43426..a7d69fd378d2 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb b/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb index 80f00797c004..7614aec6b0aa 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb b/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb index 4efb2ddc3c7a..18b1c7620d1d 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/check_status_widget_definition.rb b/lib/datadog_api_client/v1/models/check_status_widget_definition.rb index 4700224bd9a3..e216c396788f 100644 --- a/lib/datadog_api_client/v1/models/check_status_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/check_status_widget_definition.rb @@ -190,6 +190,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index c28fe1c1a2a6..aa3dfd120dea 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -91,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index 9673a9d0b73c..f2654dd2ab69 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -292,6 +292,26 @@ def widgets=(widgets) @widgets = widgets end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb b/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb index a52365fd5dd4..b1efd9915a23 100644 --- a/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb +++ b/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb b/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb index 16a1e7b090fd..30930992d2ac 100644 --- a/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb index dfb2c57d24e2..5186678e409b 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_global_time.rb b/lib/datadog_api_client/v1/models/dashboard_global_time.rb index 709c37481dc1..2d815717796a 100644 --- a/lib/datadog_api_client/v1/models/dashboard_global_time.rb +++ b/lib/datadog_api_client/v1/models/dashboard_global_time.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index 44a84d2e85ea..3646242937b9 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -146,6 +146,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb b/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb index 0019ef247765..770baf631991 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb b/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb index 260ae17fba03..9f241a47ad6c 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb index 1e7be3b4b37f..2ac46e950c2c 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index bf51056521c0..0c081704dc7f 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb index 5fe0f4271d31..57135f7c20fb 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -147,6 +147,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb index 694740e0657f..4f7dddca0821 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -133,6 +133,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb index 659994023cd9..f0c085b8415d 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb index 1dc920556ede..00d5a1a41fc3 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb @@ -103,6 +103,26 @@ def values=(values) @values = values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb b/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb index deb397a5ee0b..1c413b9ae449 100644 --- a/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb +++ b/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index 455cb8740e88..de5b6e36d33a 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_points_payload.rb b/lib/datadog_api_client/v1/models/distribution_points_payload.rb index 28de133c1ce1..6e965c38ad06 100644 --- a/lib/datadog_api_client/v1/models/distribution_points_payload.rb +++ b/lib/datadog_api_client/v1/models/distribution_points_payload.rb @@ -85,6 +85,26 @@ def series=(series) @series = series end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_points_series.rb b/lib/datadog_api_client/v1/models/distribution_points_series.rb index b242a992dba6..a1b225ea5a8b 100644 --- a/lib/datadog_api_client/v1/models/distribution_points_series.rb +++ b/lib/datadog_api_client/v1/models/distribution_points_series.rb @@ -134,6 +134,26 @@ def points=(points) @points = points end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb index 413ca4f00547..a769952d2618 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -212,6 +212,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_widget_request.rb b/lib/datadog_api_client/v1/models/distribution_widget_request.rb index 8fb916440ec1..11dc47452614 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -173,6 +173,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb b/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb index aaeeade616ef..fa1da16efee1 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb b/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb index c5b0b97745f3..1bac3496ab7d 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index 849bea43aa64..22974a916862 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -317,6 +317,26 @@ def updater_id=(updater_id) @updater_id = updater_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 3bd8ee56f650..6d6422c6ef55 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -304,6 +304,26 @@ def updater_id=(updater_id) @updater_id = updater_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index e2dd73d11c9a..2125423da4a0 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -160,6 +160,26 @@ def until_occurrences=(until_occurrences) @until_occurrences = until_occurrences end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 61fd76305045..b708f8471dc7 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -209,6 +209,26 @@ def text=(text) @text = text end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_create_request.rb b/lib/datadog_api_client/v1/models/event_create_request.rb index c78d799cd191..ade07c500e7f 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -217,6 +217,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_create_response.rb b/lib/datadog_api_client/v1/models/event_create_response.rb index 9aa4f3c6501e..bf2a43ec98c1 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_list_response.rb b/lib/datadog_api_client/v1/models/event_list_response.rb index 6cdc33846547..5da4615aed40 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_query_definition.rb b/lib/datadog_api_client/v1/models/event_query_definition.rb index 4fc9cd0f0413..9abf8cb44a85 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -103,6 +103,26 @@ def tags_execution=(tags_execution) @tags_execution = tags_execution end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index 8b08cd2294ac..995b20b12033 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb index 39c1c2ce77d4..7f4e9ebc2d16 100644 --- a/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb @@ -158,6 +158,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb b/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb index fb3941622b1b..b0a110166707 100644 --- a/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb @@ -148,6 +148,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb index f86a0cb0e250..df396cae702e 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb @@ -252,6 +252,26 @@ def stat=(stat) @stat = stat end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb index cd3d72b65323..748a41871f75 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb @@ -232,6 +232,26 @@ def stat=(stat) @stat = stat end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb index a1b25297c8bf..0e90f9d67845 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb @@ -154,6 +154,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb index ac352b4d28c2..bcdd73690ca9 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb @@ -185,6 +185,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb index 18186ce5a33f..db6712e1cc02 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb @@ -101,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb index b7c46f4382a4..de6acaffbbda 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb @@ -83,6 +83,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb index 85b4da4d07a3..adce09c48205 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb @@ -101,6 +101,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb index 40569f61c1f4..8e688abb571f 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb @@ -101,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb index 8af45c4c91ce..555188b911a2 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb @@ -154,6 +154,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb index 8a0b8f034149..ce27a9a0d415 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb @@ -201,6 +201,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb index 53470063d44c..097f786d229a 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb @@ -181,6 +181,26 @@ def slo_id=(slo_id) @slo_id = slo_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/free_text_widget_definition.rb b/lib/datadog_api_client/v1/models/free_text_widget_definition.rb index 59b09f0eeee8..081df5835297 100644 --- a/lib/datadog_api_client/v1/models/free_text_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/free_text_widget_definition.rb @@ -130,6 +130,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index 92a54abef278..d4a2323b64f6 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -125,6 +125,26 @@ def steps=(steps) @steps = steps end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/funnel_step.rb b/lib/datadog_api_client/v1/models/funnel_step.rb index 1e9a4ab0f8cf..10c8c3ab002f 100644 --- a/lib/datadog_api_client/v1/models/funnel_step.rb +++ b/lib/datadog_api_client/v1/models/funnel_step.rb @@ -103,6 +103,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb index 9c9c1a2e3b56..e8ff761a9db7 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -149,6 +149,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/funnel_widget_request.rb b/lib/datadog_api_client/v1/models/funnel_widget_request.rb index 253c8275b88d..9edb99665d0c 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -103,6 +103,26 @@ def request_type=(request_type) @request_type = request_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index 29f30fe16180..74c97b48da37 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -216,6 +216,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb index bafae67d057a..765fd5a220ab 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -203,6 +203,26 @@ def view=(view) @view = view end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb index 5a271d2d2a79..3db6edbacae0 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb @@ -103,6 +103,26 @@ def palette_flip=(palette_flip) @palette_flip = palette_flip end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb index 83f652386fb3..101907f2e4aa 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb @@ -83,6 +83,26 @@ def focus=(focus) @focus = focus end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/geomap_widget_request.rb b/lib/datadog_api_client/v1/models/geomap_widget_request.rb index 22ed55fd189c..13f4dcf8aae7 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -152,6 +152,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index 817d6ad20f14..6ecd5476bfa3 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/group_widget_definition.rb b/lib/datadog_api_client/v1/models/group_widget_definition.rb index 1d8f54c49d69..522b73bebf86 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -170,6 +170,26 @@ def widgets=(widgets) @widgets = widgets end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb b/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb index 062fd5ae61f1..30a962b68784 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb @@ -198,6 +198,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_request.rb b/lib/datadog_api_client/v1/models/heat_map_widget_request.rb index 05c7547690de..00abd8033dff 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_request.rb @@ -177,6 +177,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index 47996dba2b37..3abc20c59769 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -196,6 +196,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_list_response.rb b/lib/datadog_api_client/v1/models/host_list_response.rb index e11169abc57f..4ae54c173767 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_map_request.rb b/lib/datadog_api_client/v1/models/host_map_request.rb index 41ef55f3d930..e095cb4b2a0d 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -137,6 +137,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition.rb index cbceebc10aef..02cf3eb59586 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition.rb @@ -208,6 +208,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb index 1fe32685dead..6d44fafbb08c 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb index 6fa089fe73fc..05e28a109537 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index 3ef945453ed0..589045becdf2 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -201,6 +201,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_meta_install_method.rb b/lib/datadog_api_client/v1/models/host_meta_install_method.rb index 29f5bf43f643..6f240983a633 100644 --- a/lib/datadog_api_client/v1/models/host_meta_install_method.rb +++ b/lib/datadog_api_client/v1/models/host_meta_install_method.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index f9eec0a935b7..47323d810a1e 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_mute_response.rb b/lib/datadog_api_client/v1/models/host_mute_response.rb index 8e1b9d2ba128..3d84817669c9 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_mute_settings.rb b/lib/datadog_api_client/v1/models/host_mute_settings.rb index 21a542bc2906..8ce781ea6e6c 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index caeae8f144ca..9d2a8806aba1 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index f2594048a51d..54905dd26aff 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb index 764113c2864c..44aa85c98158 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb @@ -149,6 +149,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb index c0ea241b486b..cddfa75b16f0 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb index 124abf6b78c8..fb645474bd6d 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb @@ -73,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb index 9e00bc3ada30..5fab07b0e455 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/http_log_error.rb b/lib/datadog_api_client/v1/models/http_log_error.rb index a95e615ee805..b6e4ea116df8 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -107,6 +107,26 @@ def message=(message) @message = message end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/http_log_item.rb b/lib/datadog_api_client/v1/models/http_log_item.rb index b71c15222953..87edb58d4b21 100644 --- a/lib/datadog_api_client/v1/models/http_log_item.rb +++ b/lib/datadog_api_client/v1/models/http_log_item.rb @@ -125,6 +125,26 @@ def message=(message) @message = message end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb b/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb index c9a2c6d54ad4..561c79874b63 100644 --- a/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb @@ -103,6 +103,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/idp_form_data.rb b/lib/datadog_api_client/v1/models/idp_form_data.rb index d3d9ad02a47e..a2e7ce7b141c 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -83,6 +83,26 @@ def idp_file=(idp_file) @idp_file = idp_file end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index 84df5146679f..ef87dc4ff1f1 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -83,6 +83,26 @@ def message=(message) @message = message end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/image_widget_definition.rb b/lib/datadog_api_client/v1/models/image_widget_definition.rb index 8e70ca769553..614555c1950d 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -168,6 +168,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb index 0e9273c87d33..57a485e6d67f 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb index 2c3f104da5d2..07d7c5237620 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb index 765a2ed366ac..bce7c4405a0c 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb index 39ad4e7f7698..d1b286d417eb 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_global.rb b/lib/datadog_api_client/v1/models/ip_prefixes_global.rb index 3b78e68635a1..1d8121d169cf 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_global.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_global.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb index aa537d29c129..720e8a615e50 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb b/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb index 3723698b2fff..d71219513bd2 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb index 962c2822f2f8..859947b2d3ac 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb b/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb index 7cebd7f0fe41..c7a50b387d09 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb index dfd86b1e9eb9..4cba41597f79 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -96,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb index 726484827ba4..1030e1aafcea 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb index 5fbabecd8dcb..b59468b7a29b 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index fc0d12e428da..f624d6b97d4c 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -173,6 +173,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_column.rb b/lib/datadog_api_client/v1/models/list_stream_column.rb index 8db8c35dfa06..3b6b75de166a 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -103,6 +103,26 @@ def width=(width) @width = width end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_compute_items.rb b/lib/datadog_api_client/v1/models/list_stream_compute_items.rb index f9a3d635261f..a20ce22c3c74 100644 --- a/lib/datadog_api_client/v1/models/list_stream_compute_items.rb +++ b/lib/datadog_api_client/v1/models/list_stream_compute_items.rb @@ -92,6 +92,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb b/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb index e8c53460baf1..b12ba4993139 100644 --- a/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb +++ b/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb @@ -83,6 +83,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_query.rb b/lib/datadog_api_client/v1/models/list_stream_query.rb index 7f04ae106853..ca577a2b83f4 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -189,6 +189,26 @@ def query_string=(query_string) @query_string = query_string end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb index 1aaac8a59601..66d5a8beb4de 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb @@ -168,6 +168,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_request.rb b/lib/datadog_api_client/v1/models/list_stream_widget_request.rb index 79b1af9475d0..d19a0d9dba43 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_request.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_request.rb @@ -125,6 +125,26 @@ def response_format=(response_format) @response_format = response_format end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index 59fb34b54016..c8f2550dbab1 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index cabd3cb5dedb..1e9229b27e2e 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -116,6 +116,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_query_definition.rb b/lib/datadog_api_client/v1/models/log_query_definition.rb index 775f5cc3b7bb..78723d373e43 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -105,6 +105,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb b/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb index 58861e8db57d..2c3e61fae435 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb @@ -101,6 +101,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb b/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb index 829d368a9e24..aefbea213a35 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb @@ -112,6 +112,26 @@ def order=(order) @order = order end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_query_definition_search.rb b/lib/datadog_api_client/v1/models/log_query_definition_search.rb index f91d5f6f9637..2153510b93fd 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_search.rb @@ -83,6 +83,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb index f632539acb84..96cf59ec4bc1 100644 --- a/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb @@ -195,6 +195,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_api_error.rb b/lib/datadog_api_client/v1/models/logs_api_error.rb index b0d91205e5e6..a00f848cdbcf 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_api_error_response.rb b/lib/datadog_api_client/v1/models/logs_api_error_response.rb index 35bc8f4ee426..5f788492a16e 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error_response.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb index 3c6dbfb1d5d2..4595b28663fa 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -171,6 +171,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb index 8bd42d871ea0..c029abb9e49f 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -192,6 +192,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_by_retention.rb b/lib/datadog_api_client/v1/models/logs_by_retention.rb index c6f00809240c..02e1b6d44969 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb b/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb index ec564fcfe4a9..725e6aa57f58 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb b/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb index 0cf220b68acb..4476a1823261 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb b/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb index e1b4f7c2ff39..53a8060db3bf 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_category_processor.rb b/lib/datadog_api_client/v1/models/logs_category_processor.rb index d6cbcf510dd3..77b4c3d91b38 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -156,6 +156,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_category_processor_category.rb b/lib/datadog_api_client/v1/models/logs_category_processor_category.rb index 588c7fabbee0..abd1343d272e 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor_category.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor_category.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb b/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb index b65d6215baea..5cf3d60e76d6 100644 --- a/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb +++ b/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_date_remapper.rb b/lib/datadog_api_client/v1/models/logs_date_remapper.rb index cbc8c6583b79..60438974aff9 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -141,6 +141,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index 907e7b8f578c..455a6404fcdf 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -101,6 +101,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb index 457a18ad4ec5..a845c14eaa3c 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -94,6 +94,26 @@ def sample_rate=(sample_rate) @sample_rate = sample_rate end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index 1c5723423637..97fc5f2438ad 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb b/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb index c4cf4686820f..214b31bc0000 100644 --- a/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb @@ -144,6 +144,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser.rb b/lib/datadog_api_client/v1/models/logs_grok_parser.rb index 772fd34a820d..e434ecbf3f71 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -164,6 +164,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb b/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb index 909562e5798f..9ae7c16fce73 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb @@ -92,6 +92,26 @@ def match_rules=(match_rules) @match_rules = match_rules end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index 771bfad818e9..00f1bd645270 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -178,6 +178,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_index_list_response.rb b/lib/datadog_api_client/v1/models/logs_index_list_response.rb index 1e2c554c8d0d..cf79b55547b8 100644 --- a/lib/datadog_api_client/v1/models/logs_index_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_index_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_index_update_request.rb b/lib/datadog_api_client/v1/models/logs_index_update_request.rb index 7f3e444a4376..da5bd8a89338 100644 --- a/lib/datadog_api_client/v1/models/logs_index_update_request.rb +++ b/lib/datadog_api_client/v1/models/logs_index_update_request.rb @@ -162,6 +162,26 @@ def filter=(filter) @filter = filter end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_indexes_order.rb b/lib/datadog_api_client/v1/models/logs_indexes_order.rb index 8791e6c1aac2..7ee65b175664 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -87,6 +87,26 @@ def index_names=(index_names) @index_names = index_names end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_list_request.rb b/lib/datadog_api_client/v1/models/logs_list_request.rb index 1a07b6b0a7bd..24a4fcc6e66e 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -144,6 +144,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_list_request_time.rb b/lib/datadog_api_client/v1/models/logs_list_request_time.rb index 8cbf6f37de0c..5ca63a0f07f9 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request_time.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request_time.rb @@ -113,6 +113,26 @@ def to=(to) @to = to end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_list_response.rb b/lib/datadog_api_client/v1/models/logs_list_response.rb index 6e3ef826203e..b26ed61c5336 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -94,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb index f62a14f807cd..d7ab1c7eccd8 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -179,6 +179,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_message_remapper.rb b/lib/datadog_api_client/v1/models/logs_message_remapper.rb index 1421e05c2976..f03a0fbcbc2e 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -128,6 +128,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index 8e3fa6cb45a3..21b4311aa9c9 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -143,6 +143,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb index 4e9dc180e04d..1eb5a9d5cf6f 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -125,6 +125,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb index fc6a7b6b30bd..5b46bf9f3539 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -86,6 +86,26 @@ def pipeline_ids=(pipeline_ids) @pipeline_ids = pipeline_ids end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_query_compute.rb b/lib/datadog_api_client/v1/models/logs_query_compute.rb index cc0911da5095..5794bebf2bbf 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -101,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb b/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb index 361399fd7242..0462e7773ea6 100644 --- a/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb b/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb index 6cde6b6ca9ef..e785659998cb 100644 --- a/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_service_remapper.rb b/lib/datadog_api_client/v1/models/logs_service_remapper.rb index 5ff0f0f7afca..e6e01309c240 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -126,6 +126,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_status_remapper.rb b/lib/datadog_api_client/v1/models/logs_status_remapper.rb index 3700b2344dc9..4b5f17b3a424 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -140,6 +140,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb b/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb index 9fff5156168c..14111a87b3ac 100644 --- a/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb @@ -163,6 +163,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb index 0e8cd9c6f0e3..b0f7eabac385 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -117,6 +117,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_url_parser.rb b/lib/datadog_api_client/v1/models/logs_url_parser.rb index 2de92996f936..8cd713bbc4b8 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -160,6 +160,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb b/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb index 09cf5cda1dcf..ac3bfa804553 100644 --- a/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb @@ -153,6 +153,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/matching_downtime.rb b/lib/datadog_api_client/v1/models/matching_downtime.rb index 7b508516282c..bcde14a8a9e8 100644 --- a/lib/datadog_api_client/v1/models/matching_downtime.rb +++ b/lib/datadog_api_client/v1/models/matching_downtime.rb @@ -122,6 +122,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index 228085ae4d2e..f898083b548b 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -119,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metric_search_response.rb b/lib/datadog_api_client/v1/models/metric_search_response.rb index e53b4b122435..9330396e70e2 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metric_search_response_results.rb b/lib/datadog_api_client/v1/models/metric_search_response_results.rb index 8282f8c9bd68..afc6d3460e75 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response_results.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response_results.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_list_response.rb b/lib/datadog_api_client/v1/models/metrics_list_response.rb index 42fe51b8d063..88377716ce1e 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 8919d90538fc..28a86f73dd57 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -85,6 +85,26 @@ def series=(series) @series = series end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb index f3a3506a5fa6..7d036e0804e1 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -212,6 +212,26 @@ def unit=(unit) @unit = unit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_query_response.rb b/lib/datadog_api_client/v1/models/metrics_query_response.rb index 710154709f6b..5aec21038ca1 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -141,6 +141,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/metrics_query_unit.rb b/lib/datadog_api_client/v1/models/metrics_query_unit.rb index f74c15976e84..29784e3cbf20 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 9aae689f5587..8a107eb46412 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -254,6 +254,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb index ef855a637b3c..1efd9089b4ec 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb @@ -154,6 +154,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb index 3bdb650eeebb..84502792ae91 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb @@ -101,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb index 887dbcbafdda..bd4f9bbbad1e 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb @@ -83,6 +83,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb index 1956d962538e..6a3e77b4a52c 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb @@ -101,6 +101,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb index 814fd64f36b8..e08dcd07c1d8 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb @@ -101,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response.rb index 86a9c13ca169..1cf7d54c17d6 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb index da1195184104..240110b309a9 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_result.rb b/lib/datadog_api_client/v1/models/monitor_group_search_result.rb index 6e608797354a..4923680a1082 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_result.rb @@ -129,6 +129,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index c055602f13cb..11ce78b2e636 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -422,6 +422,26 @@ def min_failure_duration=(min_failure_duration) @min_failure_duration = min_failure_duration end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb index 576d786e92d2..ef2aaec72b1a 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb index 590630bb2577..545ea649b482 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb index e8ae7dc950d3..182d0b85d583 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb index c2f81ad769b4..d10cd516eb87 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb index 91d903a0ca93..cc4477875af2 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb @@ -120,6 +120,26 @@ def month_starts=(month_starts) @month_starts = month_starts end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_count_item.rb b/lib/datadog_api_client/v1/models/monitor_search_count_item.rb index c1db820ec103..dc04012b9802 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_count_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_count_item.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_response.rb b/lib/datadog_api_client/v1/models/monitor_search_response.rb index 577b82e234df..4b2a302e7455 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb index 2b4c9a838be4..b89010b79dec 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb b/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb index 076d01d55b82..a6bda902a44f 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_result.rb b/lib/datadog_api_client/v1/models/monitor_search_result.rb index 54a24ff543d2..634f233ca93f 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -192,6 +192,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb b/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb index 4e70cc0b65a4..e5bf322893b7 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index 9995a6766173..3a49976ef046 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_state_group.rb b/lib/datadog_api_client/v1/models/monitor_state_group.rb index 425f0263fb32..19fb68b80235 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -110,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb index bcf8974acdf7..53177a3f1654 100644 --- a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb @@ -211,6 +211,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb b/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb index 39b85d74a828..a921c11fdbed 100644 --- a/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index 3e35bb17396b..4e77aa643992 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -122,6 +122,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor_update_request.rb b/lib/datadog_api_client/v1/models/monitor_update_request.rb index a87091f621eb..6cc10e3a79ab 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -214,6 +214,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb index 70167b001cad..42297d5ea7dd 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb @@ -140,6 +140,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb index 042087169207..486cd8ea0fec 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb index 6316bf32da4d..f970777ab4a3 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb @@ -73,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb index f8e73a1178c7..07e6b58d496d 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb index 999b575cdba2..f30d4f79fc0a 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb @@ -1298,6 +1298,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/note_widget_definition.rb b/lib/datadog_api_client/v1/models/note_widget_definition.rb index 929cf8adda22..087a443dde75 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -175,6 +175,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb index 671e2cc1a74d..40334df47d22 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -112,6 +112,26 @@ def start=(start) @start = start end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index 6fefbc1d64fe..dc432f17d805 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -146,6 +146,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb b/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb index 8083f4a38b17..1bbc4c1afe97 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb @@ -99,22 +99,6 @@ def type=(type) end @type = type end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v1/models/notebook_cell_response.rb b/lib/datadog_api_client/v1/models/notebook_cell_response.rb index 13f6285580a9..244917cdd3fa 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -124,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb b/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb index c47eeaa07c41..fbf2711b1e1e 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb @@ -124,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_create_data.rb b/lib/datadog_api_client/v1/models/notebook_create_data.rb index 41b8b2afb394..4d8bd5736d14 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb index 1bd4aef7a143..b08e69fff4a3 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb @@ -151,6 +151,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_create_request.rb b/lib/datadog_api_client/v1/models/notebook_create_request.rb index b037a65e950d..dceb8be3eac1 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb index ae47a4f12249..dd5887d54832 100644 --- a/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb @@ -120,6 +120,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb index 0ce50be5b6cf..a8554a60eec7 100644 --- a/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb @@ -118,6 +118,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb index ebe98b5346b4..ad823bc75c5b 100644 --- a/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb @@ -109,6 +109,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb index 4194dedf12ae..c5e43573bfa6 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb @@ -83,6 +83,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb index 7adaee334cbe..2c1ddcbdf2c7 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index 6cd4e790356b..94817f2d6fb9 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -91,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_relative_time.rb b/lib/datadog_api_client/v1/models/notebook_relative_time.rb index 27a3628f26aa..44afd83a32fa 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -83,6 +83,26 @@ def live_span=(live_span) @live_span = live_span end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index 6b1d3390ab42..d76057931171 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_response_data.rb b/lib/datadog_api_client/v1/models/notebook_response_data.rb index be46dc6b680f..a17add410ab3 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb index 2ce958d2e299..ab1c4be24bcb 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb @@ -178,6 +178,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_split_by.rb b/lib/datadog_api_client/v1/models/notebook_split_by.rb index afd7ec57f4d0..44ac9e2588bb 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -107,6 +107,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb index 946154e5d2b1..3b5b1c7f2c19 100644 --- a/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb @@ -118,6 +118,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb index 32aaf45db917..a4aa14907148 100644 --- a/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb @@ -118,6 +118,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_update_data.rb b/lib/datadog_api_client/v1/models/notebook_update_data.rb index 91a5ceded955..40915fed4afd 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb index 65be0fe7fa83..4c65566b0db6 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb @@ -151,6 +151,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebook_update_request.rb b/lib/datadog_api_client/v1/models/notebook_update_request.rb index 7445b1a6ed43..6de88074f2c4 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index ba469df64159..90212ff593c2 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response_data.rb b/lib/datadog_api_client/v1/models/notebooks_response_data.rb index 57860616bb97..2f6c38b64320 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb b/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb index 6673ad4c7a37..ba1f1b5d78e9 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb @@ -156,6 +156,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb index 5d1ffd86b13f..8d84681bf761 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/notebooks_response_page.rb b/lib/datadog_api_client/v1/models/notebooks_response_page.rb index 57dd80abe565..28578129aadb 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/org_downgraded_response.rb b/lib/datadog_api_client/v1/models/org_downgraded_response.rb index a9edbb35e84a..53e4e9c70d79 100644 --- a/lib/datadog_api_client/v1/models/org_downgraded_response.rb +++ b/lib/datadog_api_client/v1/models/org_downgraded_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index 2158265ad4e7..f9406983eb7a 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -146,6 +146,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index e7c5047f7529..7b2d84be48f8 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -68,6 +68,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_create_body.rb b/lib/datadog_api_client/v1/models/organization_create_body.rb index 14e1854ca402..8615c5daf862 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -105,6 +105,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_create_response.rb b/lib/datadog_api_client/v1/models/organization_create_response.rb index d49386ab9e85..3e6d9e3974d1 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_list_response.rb b/lib/datadog_api_client/v1/models/organization_list_response.rb index 4fd28faef980..73f1b5bba36c 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index 5dd68d75dc61..0baf232d2cfb 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index e4c059fdc59a..a18015141113 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -155,6 +155,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml.rb b/lib/datadog_api_client/v1/models/organization_settings_saml.rb index 79f851fea7cc..a6a452eaecae 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb index cbb86eca026e..5b4b8d8bf820 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb index 0dc330a14d6e..a032b1d224cb 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb index 454be2b14dfc..d95a73e50072 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index 11b4da194c1c..3e34b2c12490 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -68,6 +68,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/pager_duty_service.rb b/lib/datadog_api_client/v1/models/pager_duty_service.rb index 7c892d26051d..e76fc2e4c8d2 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -103,6 +103,26 @@ def service_name=(service_name) @service_name = service_name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/pager_duty_service_key.rb b/lib/datadog_api_client/v1/models/pager_duty_service_key.rb index 459d53c8130b..8a401df1af0f 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service_key.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service_key.rb @@ -83,6 +83,26 @@ def service_key=(service_key) @service_key = service_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/pager_duty_service_name.rb b/lib/datadog_api_client/v1/models/pager_duty_service_name.rb index 0d26ad791fb2..4d6ae129b535 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service_name.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service_name.rb @@ -83,6 +83,26 @@ def service_name=(service_name) @service_name = service_name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index a8f1dac82d52..0c6bc907dfc4 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb b/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb index 9d6e5c593f10..f084a23b77b3 100644 --- a/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb +++ b/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb @@ -114,6 +114,26 @@ def values=(values) @values = values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/powerpack_template_variables.rb b/lib/datadog_api_client/v1/models/powerpack_template_variables.rb index 1f89fbda5b51..c5bfe6d03acb 100644 --- a/lib/datadog_api_client/v1/models/powerpack_template_variables.rb +++ b/lib/datadog_api_client/v1/models/powerpack_template_variables.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb b/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb index 185eacedf176..e88d0c36a3e3 100644 --- a/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb @@ -148,6 +148,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/process_query_definition.rb b/lib/datadog_api_client/v1/models/process_query_definition.rb index 04b0fcd5c161..bfc1ffddad6f 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -123,6 +123,26 @@ def metric=(metric) @metric = metric end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/query_value_widget_definition.rb b/lib/datadog_api_client/v1/models/query_value_widget_definition.rb index d21013516379..788f56661179 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_definition.rb @@ -205,6 +205,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/query_value_widget_request.rb b/lib/datadog_api_client/v1/models/query_value_widget_request.rb index 000bf9439f24..3ce0c45ab3f9 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_request.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_request.rb @@ -197,6 +197,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb b/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb index ca2d32b5293b..3d5630f422f5 100644 --- a/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb @@ -167,6 +167,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/response_meta_attributes.rb b/lib/datadog_api_client/v1/models/response_meta_attributes.rb index 4a1cc2a65668..93d197cd991e 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb b/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb index 1f409fdae097..09871dce86cf 100644 --- a/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb @@ -161,6 +161,26 @@ def workflow_id=(workflow_id) @workflow_id = workflow_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb b/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb index 89358b71fa50..6883510026f1 100644 --- a/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb +++ b/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb @@ -103,6 +103,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatter_plot_request.rb b/lib/datadog_api_client/v1/models/scatter_plot_request.rb index 561534ad0782..6238cbde0e06 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -146,6 +146,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb index 3db116bdc254..a1f0c325bce9 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb @@ -179,6 +179,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb index 6a40bc5f3043..5b0d32c6ce27 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb index e6a22355b81b..194dd3b31aa0 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -87,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb index c623387e6b84..876e97579e80 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -112,6 +112,26 @@ def formula=(formula) @formula = formula end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_service_level_objective.rb b/lib/datadog_api_client/v1/models/search_service_level_objective.rb index c24f99caba7c..cadb1366611d 100644 --- a/lib/datadog_api_client/v1/models/search_service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/search_service_level_objective.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb b/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb index 6050733861b1..07553dbe58f9 100644 --- a/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +++ b/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb @@ -242,6 +242,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb b/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb index 36c7b8456794..5b5ef7e05cf0 100644 --- a/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb +++ b/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb @@ -86,6 +86,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_query.rb b/lib/datadog_api_client/v1/models/search_slo_query.rb index ed2c17f44f74..1a3f82235b0d 100644 --- a/lib/datadog_api_client/v1/models/search_slo_query.rb +++ b/lib/datadog_api_client/v1/models/search_slo_query.rb @@ -96,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response.rb b/lib/datadog_api_client/v1/models/search_slo_response.rb index 5be2fb45435a..8ebef8ee4d21 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data.rb b/lib/datadog_api_client/v1/models/search_slo_response_data.rb index 535515d23813..ccac3a1f878b 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb index 74f7227772cf..5b4795c745bd 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb index b3b00cc5dbdc..7509353eb6e2 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb @@ -144,6 +144,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb index 293bd5cd3540..e0f9e2263cc8 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb index 354a3f2dc262..e588a5dfe20b 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_links.rb b/lib/datadog_api_client/v1/models/search_slo_response_links.rb index 40aade1f95ce..a57d7b02e601 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_links.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_links.rb @@ -110,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_meta.rb b/lib/datadog_api_client/v1/models/search_slo_response_meta.rb index a2ca42997803..10d1003cdb19 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_meta.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb b/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb index 223d641f57ad..5dfaa826c58f 100644 --- a/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb +++ b/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb @@ -128,6 +128,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/search_slo_threshold.rb b/lib/datadog_api_client/v1/models/search_slo_threshold.rb index c83aa8b5abbf..956e6890b61f 100644 --- a/lib/datadog_api_client/v1/models/search_slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/search_slo_threshold.rb @@ -148,6 +148,26 @@ def timeframe=(timeframe) @timeframe = timeframe end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb b/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb index d9c045e6eace..1df411b874ea 100644 --- a/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb +++ b/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb @@ -102,6 +102,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index d132ce72e910..ac74a0cb9eb3 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -152,6 +152,26 @@ def points=(points) @points = points end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index 2f7f292f2ed2..41faf53d5df5 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -163,6 +163,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_level_objective.rb b/lib/datadog_api_client/v1/models/service_level_objective.rb index 3c55da0b8837..e741c5e29923 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -297,6 +297,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_level_objective_query.rb b/lib/datadog_api_client/v1/models/service_level_objective_query.rb index 973fc8ad6625..3f86b9844711 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective_query.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective_query.rb @@ -105,6 +105,26 @@ def numerator=(numerator) @numerator = numerator end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_level_objective_request.rb b/lib/datadog_api_client/v1/models/service_level_objective_request.rb index 7957eec0b25e..f3956fa964dd 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective_request.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective_request.rb @@ -239,6 +239,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_map_widget_definition.rb b/lib/datadog_api_client/v1/models/service_map_widget_definition.rb index dc23f2fc9bff..34769809a8f5 100644 --- a/lib/datadog_api_client/v1/models/service_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/service_map_widget_definition.rb @@ -167,6 +167,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb b/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb index a000261bc9a6..b9ff308149e8 100644 --- a/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb @@ -251,6 +251,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard.rb b/lib/datadog_api_client/v1/models/shared_dashboard.rb index e85e4815ff83..c02c0cd2930e 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard.rb @@ -199,6 +199,26 @@ def dashboard_type=(dashboard_type) @dashboard_type = dashboard_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_author.rb b/lib/datadog_api_client/v1/models/shared_dashboard_author.rb index c534c9cdee0a..796081e3c291 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_author.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_author.rb @@ -82,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb index 4319fbc00463..6269ae27e522 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb @@ -92,6 +92,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb index 97e1ae84c562..3aa3b606a7d7 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb index 9226c1e1772b..9da82a3a3ebb 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb @@ -118,6 +118,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb index 56e240faa0a9..c1a1e3f932c9 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb index 117aebc2d5e1..5c28c587b8dd 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb b/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb index 580aea0c6a5d..c89bff78b589 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb @@ -117,6 +117,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb b/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb index 4a6c44110913..8bd000a58323 100644 --- a/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb +++ b/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb b/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb index 08fce3e1b0e6..bcb70583ca71 100644 --- a/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb +++ b/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb @@ -92,6 +92,26 @@ def assignee=(assignee) @assignee = assignee end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/signal_state_update_request.rb b/lib/datadog_api_client/v1/models/signal_state_update_request.rb index c9388bf8bcc1..e6c1faa7f3e4 100644 --- a/lib/datadog_api_client/v1/models/signal_state_update_request.rb +++ b/lib/datadog_api_client/v1/models/signal_state_update_request.rb @@ -110,6 +110,26 @@ def state=(state) @state = state end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slack_integration_channel.rb b/lib/datadog_api_client/v1/models/slack_integration_channel.rb index 9cf7a971736e..ce64e1d0c997 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb b/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb index fa94a849a000..13fc7a57e4c0 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb index 26af0be9b3b7..0ad679a11c2d 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb @@ -125,6 +125,26 @@ def timeframe=(timeframe) @timeframe = timeframe end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb index 145fff104ade..acef6a716223 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb @@ -81,6 +81,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb index 6dfe23717c7f..9a134e6c2963 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb @@ -81,6 +81,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index 36945cc50621..d02c655042c1 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_data.rb b/lib/datadog_api_client/v1/models/slo_correction_create_data.rb index eece43b94853..ae8aff73e6d2 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_data.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_data.rb @@ -92,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_request.rb b/lib/datadog_api_client/v1/models/slo_correction_create_request.rb index e75c14a71556..d812b78a3f0e 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_request.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb index a52500cc5b87..932773591e96 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb @@ -169,6 +169,26 @@ def start=(start) @start = start end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_list_response.rb b/lib/datadog_api_client/v1/models/slo_correction_list_response.rb index 1d037925784c..dd2b4b93a279 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_list_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_response.rb b/lib/datadog_api_client/v1/models/slo_correction_response.rb index c0ca40db7569..7025e9f3f1f6 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb index 93e581cd4c9f..a0760a143c76 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb @@ -178,6 +178,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb b/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb index c2e5e33c295b..16f4982ef66b 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_data.rb b/lib/datadog_api_client/v1/models/slo_correction_update_data.rb index e16204d17043..52d626cc512e 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_data.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_request.rb b/lib/datadog_api_client/v1/models/slo_correction_update_request.rb index fc1fc1050ef6..e9648698fd90 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_request.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb index 8dc4e27442ea..b1d6d96ed962 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb @@ -120,6 +120,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_creator.rb b/lib/datadog_api_client/v1/models/slo_creator.rb index c9df829073b3..46982e91bbbd 100644 --- a/lib/datadog_api_client/v1/models/slo_creator.rb +++ b/lib/datadog_api_client/v1/models/slo_creator.rb @@ -91,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_delete_response.rb b/lib/datadog_api_client/v1/models/slo_delete_response.rb index 96c7bce4b48b..9506524b462f 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_formula.rb b/lib/datadog_api_client/v1/models/slo_formula.rb index 6a1d5d7883c1..2b644a77aeec 100644 --- a/lib/datadog_api_client/v1/models/slo_formula.rb +++ b/lib/datadog_api_client/v1/models/slo_formula.rb @@ -83,6 +83,26 @@ def formula=(formula) @formula = formula end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics.rb b/lib/datadog_api_client/v1/models/slo_history_metrics.rb index f1c7ef2f992c..35b0c1e3d2e5 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -218,6 +218,26 @@ def times=(times) @times = times end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb index d38533cc5f50..b11529750d34 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb @@ -135,6 +135,26 @@ def values=(values) @values = values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb index 671630d18e37..3dd5cd9f9ce0 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb @@ -122,6 +122,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb index 9930309d17b8..c081d1b5cbbe 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb @@ -119,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_monitor.rb b/lib/datadog_api_client/v1/models/slo_history_monitor.rb index 4f567bdcaf65..502b96038c0b 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -184,6 +184,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_response.rb b/lib/datadog_api_client/v1/models/slo_history_response.rb index b21078bbf030..96dc823dd7ff 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -84,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_response_data.rb b/lib/datadog_api_client/v1/models/slo_history_response_data.rb index f0b592931531..ea60d8002d4a 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_data.rb @@ -163,6 +163,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_response_error.rb b/lib/datadog_api_client/v1/models/slo_history_response_error.rb index 347106fbd0ea..5478ed3b0e7d 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_error.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_error.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb b/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb index 704899d345d2..a51812d9bc05 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb @@ -103,6 +103,26 @@ def error_type=(error_type) @error_type = error_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_history_sli_data.rb b/lib/datadog_api_client/v1/models/slo_history_sli_data.rb index b351c583d7f5..552f4a92c8af 100644 --- a/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +++ b/lib/datadog_api_client/v1/models/slo_history_sli_data.rb @@ -186,6 +186,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_response.rb b/lib/datadog_api_client/v1/models/slo_list_response.rb index b524135ee49a..7510937525a8 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -88,6 +88,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb b/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb index e3eb727eed43..9f6559c3a010 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb b/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb index 1936e8bd01a6..8cd94a535172 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb b/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb index ac849e8ddf0f..a3d5da46b603 100644 --- a/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb @@ -140,6 +140,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_widget_query.rb b/lib/datadog_api_client/v1/models/slo_list_widget_query.rb index f465b2f02135..a991c4a2ad89 100644 --- a/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +++ b/lib/datadog_api_client/v1/models/slo_list_widget_query.rb @@ -118,6 +118,26 @@ def query_string=(query_string) @query_string = query_string end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_list_widget_request.rb b/lib/datadog_api_client/v1/models/slo_list_widget_request.rb index cc94f759fc80..d4a0fd670953 100644 --- a/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +++ b/lib/datadog_api_client/v1/models/slo_list_widget_request.rb @@ -103,6 +103,26 @@ def request_type=(request_type) @request_type = request_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_overall_statuses.rb b/lib/datadog_api_client/v1/models/slo_overall_statuses.rb index 8b1a08fed973..bb85be58c3d6 100644 --- a/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +++ b/lib/datadog_api_client/v1/models/slo_overall_statuses.rb @@ -151,6 +151,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb b/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb index 957e7251efe6..63444409c190 100644 --- a/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb +++ b/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index 854197b53562..543d97f60194 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_response_data.rb b/lib/datadog_api_client/v1/models/slo_response_data.rb index 66eab0d16e03..122c2d8374e6 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -268,6 +268,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_status.rb b/lib/datadog_api_client/v1/models/slo_status.rb index a3342d1df4c6..5115c94156e6 100644 --- a/lib/datadog_api_client/v1/models/slo_status.rb +++ b/lib/datadog_api_client/v1/models/slo_status.rb @@ -132,6 +132,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index a73a31d1148e..76d43da00632 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -140,6 +140,26 @@ def timeframe=(timeframe) @timeframe = timeframe end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb b/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb index 98b06fa46cf3..81113ee13c77 100644 --- a/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +++ b/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb @@ -135,6 +135,26 @@ def threshold=(threshold) @threshold = threshold end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_time_slice_query.rb b/lib/datadog_api_client/v1/models/slo_time_slice_query.rb index 4bba5be0eb3c..bddd2640fe24 100644 --- a/lib/datadog_api_client/v1/models/slo_time_slice_query.rb +++ b/lib/datadog_api_client/v1/models/slo_time_slice_query.rb @@ -115,6 +115,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb b/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb index ae493ba8d6fa..1355b07874e4 100644 --- a/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +++ b/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb @@ -79,22 +79,6 @@ def time_slice=(time_slice) end @time_slice = time_slice end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v1/models/slo_widget_definition.rb b/lib/datadog_api_client/v1/models/slo_widget_definition.rb index 256dc5c91789..f68ff8da4c2e 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -186,6 +186,26 @@ def view_type=(view_type) @view_type = view_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_config.rb b/lib/datadog_api_client/v1/models/split_config.rb index f72ad0454636..0faaab8b98bc 100644 --- a/lib/datadog_api_client/v1/models/split_config.rb +++ b/lib/datadog_api_client/v1/models/split_config.rb @@ -163,6 +163,26 @@ def static_splits=(static_splits) @static_splits = static_splits end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_config_sort_compute.rb b/lib/datadog_api_client/v1/models/split_config_sort_compute.rb index ebd4e4ffb030..c493e52c01bd 100644 --- a/lib/datadog_api_client/v1/models/split_config_sort_compute.rb +++ b/lib/datadog_api_client/v1/models/split_config_sort_compute.rb @@ -103,6 +103,26 @@ def metric=(metric) @metric = metric end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_dimension.rb b/lib/datadog_api_client/v1/models/split_dimension.rb index 0baae2d9e080..61a90b6ab3ea 100644 --- a/lib/datadog_api_client/v1/models/split_dimension.rb +++ b/lib/datadog_api_client/v1/models/split_dimension.rb @@ -83,6 +83,26 @@ def one_graph_per=(one_graph_per) @one_graph_per = one_graph_per end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb b/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb index 44f4a1258868..6a1ed28c0ed9 100644 --- a/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb @@ -170,6 +170,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_sort.rb b/lib/datadog_api_client/v1/models/split_sort.rb index 035d3f406ddb..0e5887a516b7 100644 --- a/lib/datadog_api_client/v1/models/split_sort.rb +++ b/lib/datadog_api_client/v1/models/split_sort.rb @@ -92,6 +92,26 @@ def order=(order) @order = order end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/split_vector_entry_item.rb b/lib/datadog_api_client/v1/models/split_vector_entry_item.rb index 33295d56760a..58e01ddde2c3 100644 --- a/lib/datadog_api_client/v1/models/split_vector_entry_item.rb +++ b/lib/datadog_api_client/v1/models/split_vector_entry_item.rb @@ -109,6 +109,26 @@ def tag_values=(tag_values) @tag_values = tag_values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/successful_signal_update_response.rb b/lib/datadog_api_client/v1/models/successful_signal_update_response.rb index 576d478c12e6..62092291bf93 100644 --- a/lib/datadog_api_client/v1/models/successful_signal_update_response.rb +++ b/lib/datadog_api_client/v1/models/successful_signal_update_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb index b73dafd0b067..c852479d5956 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -174,6 +174,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb index 73222800e148..cbe859c35fd0 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb index cfc1cdf82412..8111b506b911 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb @@ -83,6 +83,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb index 17388a6f13b0..a30a1170fa4b 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -186,6 +186,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test.rb b/lib/datadog_api_client/v1/models/synthetics_api_test.rb index b24c91f882ff..df1e78421023 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -234,6 +234,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb index 48ea1f7a4ffa..6f08c5c20930 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb @@ -107,6 +107,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb index 5307966b599a..0982652e0d99 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb @@ -138,6 +138,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb index aeab7be2c9a9..1872dc2d4d76 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb index 4cef15b306a5..17e74517e95d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb @@ -122,6 +122,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb index 88332da68a36..30d8a36cab36 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb @@ -83,6 +83,26 @@ def config=(config) @config = config end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb index 9ca6273bb5d6..e9f07e890958 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb @@ -104,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb index c38ac7e996b0..4e0c7b38b619 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb index d444d4f43831..fa982af91532 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb @@ -184,6 +184,26 @@ def subtype=(subtype) @subtype = subtype end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb index 9c6556dfd43d..12fbaf017163 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb @@ -131,6 +131,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb index 82a27c40db48..2b0fca21d455 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb index a3d9d9b971e0..db22cd710656 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb index 166155eb7383..daac817ae801 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb index c313cf00e674..a7e05af987e0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb index 3ae1521bf294..f94455b39a79 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target_target.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb index d9ac95add3be..72a7c774cab8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -141,6 +141,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb index 157e624580af..7dd7fff4ba1d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb index 406fdf1475cd..5855865fc4e4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb index 7d0171ac2110..1b01b2349513 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb @@ -123,6 +123,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb index e458cfea67c9..4d5440628c08 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb @@ -119,6 +119,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb index c15f96c3455b..c21ca679ea0b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb @@ -190,6 +190,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb index 85645775655f..0ac31038dacb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb @@ -208,6 +208,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb index bb6c2f3cb6fa..436bdcb50ee2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb @@ -150,6 +150,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb index 08d3217b033a..2681cb027ca3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb @@ -112,6 +112,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb index 2bbcb85cd0f5..648712d095eb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb index ecbe487d4e98..37cca7178799 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb index eec87f687f4c..87c110dcbe11 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -146,6 +146,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb index f1f2bea5d2e2..88c31cd7d319 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -132,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb index 87a94a4c873f..801bed09dd7f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -235,6 +235,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb index 3e75ab027b2d..fd59d269510d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb @@ -136,6 +136,26 @@ def request=(request) @request = request end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb index 5a98b3dbfb56..1b941f077ae1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb @@ -167,6 +167,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb index 80f0fa214376..6f0dcf3ac49d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb index e82fd7f0da41..a8d03fc7ede7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb @@ -122,6 +122,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb index 53d618da40f6..4e6d662a3ba9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb @@ -83,6 +83,26 @@ def config=(config) @config = config end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb index eaeb09bfeeb1..b3fc5a63a8bd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb @@ -104,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb index 5e7e46673744..2d83e02c04ca 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb index 61157b96d189..3b827b789d90 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb @@ -111,6 +111,26 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb index f87ada94d64a..e8653f1a5cc7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -140,6 +140,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb index a10c384ab39d..dc328ea6f048 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb index 03e77108dad7..f85c53267947 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb index 37faf3bf8d62..063f52d8634a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb index 44e368d771b4..fadb70de3feb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb index 3730ac1b8ca7..042c8411f5ab 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb index 4d0a22ca939a..445a639d6155 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -204,6 +204,26 @@ def public_id=(public_id) @public_id = public_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb b/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb index 0069dee6fbb7..74cf519d7fb8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb index 9ba7a38d4987..d5750f961425 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -139,6 +139,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb b/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb index a01b96c6fc1f..de6e4c14eaab 100644 --- a/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb +++ b/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb index 190e2cb899b4..1f6048416b0e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb +++ b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb index 8d5d4461e0e7..ae480c6978d4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb @@ -68,6 +68,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb index 1ca022a0e372..f5addad320c3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 9faf636c28e6..83b6598e78ed 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -152,6 +152,26 @@ def width=(width) @width = width end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb b/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb index b8f6b176d412..a2b2ad685f21 100644 --- a/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb b/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb index 54a5725f1d14..6fef6a63b7c9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb index f04c0246041d..84f6281ab5cd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -199,6 +199,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb index f115daaf39d1..b252f42df586 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb index 4d92643a7135..853599eaac12 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_options.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb index 2259d7101265..1342ca59bd8e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb @@ -110,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb index 9624c7d1033a..55b914924c68 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_request.rb @@ -188,6 +188,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb index b1270e3e03b5..47bb8c2e8643 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_totp_parameters.rb @@ -111,6 +111,26 @@ def refresh_interval=(refresh_interval) @refresh_interval = refresh_interval end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb index 2ad2be8cf552..0c4025d31dda 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb @@ -84,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb b/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb index 5bb30ce6f18e..cfea756c4d6a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb index 41baf950e8d2..966a58de43ac 100644 --- a/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index 26597398bf9e..a02dc90b9980 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index 80f6de7a583e..67b060e1ef87 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb index b55069655d33..84e5ef5bc575 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb b/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb index dd5a4cf46d0c..58833b296721 100644 --- a/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb b/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb index 62eaee46b381..bd05ebc8c01a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb +++ b/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location.rb b/lib/datadog_api_client/v1/models/synthetics_private_location.rb index e9ae12dca5ee..724c4aaa3a67 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -152,6 +152,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb index f566b051b529..c6811fdb4823 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb index 76efe0b56f19..c5125ac84315 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb index 8f049c00c6e5..d4b2e11707b1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb index c3eda7cb9950..df43dbc533a9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb index 27536340ef99..a1313ab2883e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb index 9c1276d07e16..407f39158334 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb index 2ea09c5b2bd2..30952ace83ac 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -166,6 +166,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb index 8bd2daafb553..e76f898f8ebb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb @@ -110,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb index 20ed726fb497..dacc8d4241e9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb @@ -119,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 57aa04a5f6e8..7cd2f3a28b66 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -119,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb index 19ccd4ccb222..6a6e97abe82c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -218,6 +218,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb b/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb index c0e5ad8ee71a..210a3d048d80 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb index 09766b7a482d..4fd4d6b43235 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_test_config.rb index 119fad80efdb..c2b44add4c30 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -98,6 +98,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details.rb b/lib/datadog_api_client/v1/models/synthetics_test_details.rb index 8854d5958b4a..7108560181ba 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -181,6 +181,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options.rb index 3a80d85953c6..a1d65efea0c8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -326,6 +326,26 @@ def tick_every=(tick_every) @tick_every = tick_every end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb index ea4aa5d467ab..1a1e34bb9625 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb @@ -85,6 +85,26 @@ def renotify_interval=(renotify_interval) @renotify_interval = renotify_interval end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb index 4a23301bfe88..e40bb3490412 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb index 5c00179dce5c..ae829098db7a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb index eb0f76cf4877..40c2dd589300 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb @@ -105,6 +105,26 @@ def day=(day) @day = day end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request.rb b/lib/datadog_api_client/v1/models/synthetics_test_request.rb index 262b6d18a96f..ba1fe839002d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -369,6 +369,26 @@ def number_of_packets=(number_of_packets) @number_of_packets = number_of_packets end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb index 3ade53a393f4..92ed779f39ee 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb @@ -176,6 +176,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb index d7e31c79a740..a40d4ccaab6c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb index 6d9145807d9d..0eb50fe0dae1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb index 175faca55361..f59219f6352f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb @@ -92,6 +92,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index ade02785d96a..137fa54ddfbe 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -138,6 +138,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb index 005485e17229..451e0e20937d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -85,6 +85,26 @@ def tests=(tests) @tests = tests end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb index a2985a7d4790..624493497b87 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb index e94a12f0ef34..360d1b2be100 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb index 7fb11b05daa3..eded5bc1cb11 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb @@ -106,6 +106,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb index 6214c85b6510..679c21b12569 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -92,6 +92,26 @@ def public_id=(public_id) @public_id = public_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb b/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb index 5eb62bf93772..82e88f7f718b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb +++ b/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb index b82e473801ee..f31c15202ab6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -92,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/table_widget_definition.rb b/lib/datadog_api_client/v1/models/table_widget_definition.rb index f11519329af7..c493d600d690 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -161,6 +161,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/table_widget_request.rb b/lib/datadog_api_client/v1/models/table_widget_request.rb index fe653e157070..fea7f99bc81d 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -244,6 +244,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/tag_to_hosts.rb b/lib/datadog_api_client/v1/models/tag_to_hosts.rb index 57a697d2d36f..96ca601a1d1a 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/timeseries_background.rb b/lib/datadog_api_client/v1/models/timeseries_background.rb index 53a5a62aa178..8f8fa5ced516 100644 --- a/lib/datadog_api_client/v1/models/timeseries_background.rb +++ b/lib/datadog_api_client/v1/models/timeseries_background.rb @@ -92,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb index ba80539c8e86..d67d53ef039b 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -234,6 +234,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb b/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb index 73efe49b6d3e..4a974193a69a 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb @@ -92,6 +92,26 @@ def expression=(expression) @expression = expression end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb index 0d9a53ec323d..b862e649abe4 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -215,6 +215,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb index 567c6e0a4a0d..98dac3ba44a6 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -161,6 +161,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_flat.rb b/lib/datadog_api_client/v1/models/toplist_widget_flat.rb index 3441e22f31bd..83405173c73f 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_flat.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_flat.rb @@ -83,6 +83,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_request.rb b/lib/datadog_api_client/v1/models/toplist_widget_request.rb index 932d3babf782..6f411d8ffb9a 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -224,6 +224,26 @@ def conditional_formats=(conditional_formats) @conditional_formats = conditional_formats end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb b/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb index 7bb46afcb9fa..8699d2dd301c 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/toplist_widget_style.rb b/lib/datadog_api_client/v1/models/toplist_widget_style.rb index eff6f71230a0..4a663ede364d 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_style.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_style.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb b/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb index 28956e79f65e..7a39c3178a74 100644 --- a/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb @@ -147,6 +147,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/topology_query.rb b/lib/datadog_api_client/v1/models/topology_query.rb index 9f249f94c4a5..072d06430be3 100644 --- a/lib/datadog_api_client/v1/models/topology_query.rb +++ b/lib/datadog_api_client/v1/models/topology_query.rb @@ -103,6 +103,26 @@ def filters=(filters) @filters = filters end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/topology_request.rb b/lib/datadog_api_client/v1/models/topology_request.rb index 930630519b44..f824052b5a3b 100644 --- a/lib/datadog_api_client/v1/models/topology_request.rb +++ b/lib/datadog_api_client/v1/models/topology_request.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb index 52523beea8e9..6dadea8d4876 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb @@ -169,6 +169,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_request.rb b/lib/datadog_api_client/v1/models/tree_map_widget_request.rb index 01e84ecd0dd8..25d0fb2cc609 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_request.rb @@ -96,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb index eb505c98d313..d5e4be33fe4a 100644 --- a/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb b/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb index 1fe37d6f2821..1ddacae79e03 100644 --- a/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb index 25373062293a..6b0d3db0c54e 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb index 008c22fe7430..43c22fa76288 100644 --- a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb b/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb index d9a2a48017a3..50bd0cb63e0f 100644 --- a/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb index 88533fee165e..6208358fd890 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb @@ -119,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb index b199752b7f1f..a28701c53609 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb @@ -155,6 +155,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb index ef4d38c556cd..158cf04c324b 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb @@ -857,6 +857,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb index b4264f73e0b1..bfdf460a870c 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb b/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb index 88542f3083aa..ccd798bdc785 100644 --- a/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb @@ -131,6 +131,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb b/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb index 892c0a50e30c..ff4ada2019cf 100644 --- a/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb +++ b/lib/datadog_api_client/v1/models/usage_ci_visibility_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb index c9e77bd2428e..2bbc8b2beb46 100644 --- a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb @@ -160,6 +160,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb index b4949f0a7b29..7fd40df51f9b 100644 --- a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb index 2d5f5ee1c224..a6cb2968d66e 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb @@ -103,6 +103,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb index 87e5c216450e..822d6fe4a2a9 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb index 2311fd31f1a1..dc78c00596ec 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb index 6167b68aaf07..f03340b54b24 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb index 045ba885a1c4..702ea93a10fc 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_cws_hour.rb b/lib/datadog_api_client/v1/models/usage_cws_hour.rb index 5ab244343972..42712db4254d 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -110,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_cws_response.rb b/lib/datadog_api_client/v1/models/usage_cws_response.rb index b26576b56d3e..819b17597967 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb index 3735a05f8a92..73e0796a65c0 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -110,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_dbm_response.rb b/lib/datadog_api_client/v1/models/usage_dbm_response.rb index a8e4de6571c2..058bf9df5505 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb index a45e6110f8df..af113eba43be 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -130,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_fargate_response.rb b/lib/datadog_api_client/v1/models/usage_fargate_response.rb index 9814fcdc1dca..a8e5d232b25e 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_host_hour.rb b/lib/datadog_api_client/v1/models/usage_host_hour.rb index 7ccdddc49e15..cf57844cacd0 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -240,6 +240,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_hosts_response.rb b/lib/datadog_api_client/v1/models/usage_hosts_response.rb index a7e02079a442..ee9f79ea750a 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb b/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb index 4eb6aa3c357f..eb833ecd507c 100644 --- a/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_incident_management_response.rb b/lib/datadog_api_client/v1/models/usage_incident_management_response.rb index 5759d3794d2a..395e55190eb5 100644 --- a/lib/datadog_api_client/v1/models/usage_incident_management_response.rb +++ b/lib/datadog_api_client/v1/models/usage_incident_management_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb b/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb index 2446a3fb7546..51413bacce58 100644 --- a/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb b/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb index 28578aa2d5c5..09e8baa6f1f9 100644 --- a/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb +++ b/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb b/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb index 3b523c5110ad..ee464f540cce 100644 --- a/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb b/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb index 5e8870c16f68..9c40fca72aae 100644 --- a/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb +++ b/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_iot_hour.rb b/lib/datadog_api_client/v1/models/usage_iot_hour.rb index 5c3f9da385aa..082ccf947208 100644 --- a/lib/datadog_api_client/v1/models/usage_iot_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_iot_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_iot_response.rb b/lib/datadog_api_client/v1/models/usage_iot_response.rb index c4039c1bb26a..7b1e5c5ac07d 100644 --- a/lib/datadog_api_client/v1/models/usage_iot_response.rb +++ b/lib/datadog_api_client/v1/models/usage_iot_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb index 0c47329b4bdd..f034b9c37b46 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -111,6 +111,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_lambda_response.rb b/lib/datadog_api_client/v1/models/usage_lambda_response.rb index 99e468f921c3..32329494e4e2 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -68,6 +68,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb index 9a4fbefef330..61d28db299a5 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb @@ -119,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb b/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb index deeca7762c08..64ff8d47b60d 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb index 9fcd462546ee..76bf4d7da495 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb @@ -121,6 +121,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb b/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb index 3d9ac9cc0532..116488524c89 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_hour.rb index 24a662c1b784..82c703d6b294 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -170,6 +170,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_logs_response.rb b/lib/datadog_api_client/v1/models/usage_logs_response.rb index 6f7f0962425f..f5a6a91f84e1 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb b/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb index 98232b9ada9e..c6067cf69d0a 100644 --- a/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_network_flows_response.rb b/lib/datadog_api_client/v1/models/usage_network_flows_response.rb index 48eb9df78d28..523d7b5f6c43 100644 --- a/lib/datadog_api_client/v1/models/usage_network_flows_response.rb +++ b/lib/datadog_api_client/v1/models/usage_network_flows_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb b/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb index e7f3f8b9c6fe..fc10291da683 100644 --- a/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb b/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb index b694db42d34a..d3c5f27441b4 100644 --- a/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb b/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb index 97301833ab61..3892f6cb8054 100644 --- a/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_online_archive_response.rb b/lib/datadog_api_client/v1/models/usage_online_archive_response.rb index abe23b337fd3..13849aad4887 100644 --- a/lib/datadog_api_client/v1/models/usage_online_archive_response.rb +++ b/lib/datadog_api_client/v1/models/usage_online_archive_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb index 39df4a8de733..14a9e38608f7 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -120,6 +120,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_profiling_response.rb b/lib/datadog_api_client/v1/models/usage_profiling_response.rb index 7b1145eb3783..41a454463044 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb b/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb index 71123e0e7bb3..7601beae9520 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb @@ -149,6 +149,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb b/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb index 9542d99e84a1..1823e9040d73 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb index 79cbfbce53f9..52a2ad5db7ae 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb @@ -111,6 +111,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_response.rb b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb index 08e11dc85155..190cbbd6d21c 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_units_response.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_sds_hour.rb b/lib/datadog_api_client/v1/models/usage_sds_hour.rb index 876fba6019bd..12dd5722ba0b 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -140,6 +140,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_sds_response.rb b/lib/datadog_api_client/v1/models/usage_sds_response.rb index 8c6bc0a1e47a..d5596d3c6b27 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb index 82a6482c90af..ad4b67e25e7a 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_snmp_response.rb b/lib/datadog_api_client/v1/models/usage_snmp_response.rb index bf00c087f83a..f9d84164b141 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb index dbec9cd1ec5c..1964beb8a470 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb @@ -112,6 +112,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb index e8ae1aebfca7..be4cced3feef 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb index e230fedd3190..0ba55a7841d0 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb index c854f813ffa0..3a3bc6c9af57 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb index 52e13dedcb24..4dc4c183774a 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_summary_date.rb b/lib/datadog_api_client/v1/models/usage_summary_date.rb index 4c9f0359dfa2..a1682ebfb26c 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -1246,6 +1246,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb index f5c8df536c97..b8e4cf69bc4d 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb @@ -1298,6 +1298,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_summary_response.rb b/lib/datadog_api_client/v1/models/usage_summary_response.rb index f2296066e8f8..009f0b040aed 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -1345,6 +1345,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb index 7f08da65465e..4cc56ec4f2d8 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb index 9b301047f88d..b923017a8f0d 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb index 45294a4c5250..e87b7e29be25 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb @@ -100,6 +100,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb index b97f3d831a5f..3dbbb0990e18 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb index 9ff9e1191a53..9ba1ce8a4deb 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb index aa79cb0a57a2..4f03be9960e0 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb index 92919494bafd..f525cedc4638 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -110,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb index 1bf16e40a302..f5fec66df5a0 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb index 77d8a306ff4c..1b36c914c0be 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb index f6db9c7c3a95..ee8196d354c2 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb index 7680d834c11e..dfdd048270f5 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb index a7e71bc954e1..da4c672f359e 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index d07d9da00faa..e8c4860f5403 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -127,6 +127,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/user_disable_response.rb b/lib/datadog_api_client/v1/models/user_disable_response.rb index 134693258d9e..0ef61674a62a 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/user_list_response.rb b/lib/datadog_api_client/v1/models/user_list_response.rb index 37d793de356b..0da850e2d410 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index eeff2f049913..1820bb67c90a 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index a9153b248a34..67fd1ddbf140 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -145,6 +145,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb index 0f31ff17410a..6b91b0a3c3a9 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb @@ -124,6 +124,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb index 298667c8a16c..324838ddec6d 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb @@ -113,6 +113,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb index cf6164f7c156..17d430964f03 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb @@ -86,6 +86,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb b/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb index 607394d2d141..89063c6e3d86 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb @@ -117,6 +117,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 5919344a2147..7482f8a35fde 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -106,6 +106,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index 541f48680f13..62aaa5b27990 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_conditional_format.rb b/lib/datadog_api_client/v1/models/widget_conditional_format.rb index 08dd11f18d8c..872ebc6bd212 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -177,6 +177,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_custom_link.rb b/lib/datadog_api_client/v1/models/widget_custom_link.rb index acc7d18b3350..4b7689cd1025 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index 77251e97a5e1..2d443905b0a9 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -95,6 +95,26 @@ def q=(q) @q = q end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_field_sort.rb b/lib/datadog_api_client/v1/models/widget_field_sort.rb index e9c537b5ec14..f346749e587b 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -103,6 +103,26 @@ def order=(order) @order = order end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 30a8ec9e7dfc..65a165b09525 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -130,6 +130,26 @@ def formula=(formula) @formula = formula end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_formula_limit.rb b/lib/datadog_api_client/v1/models/widget_formula_limit.rb index 860a9dd5192b..93d6254eb958 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_formula_sort.rb b/lib/datadog_api_client/v1/models/widget_formula_sort.rb index d8dc5d9bd353..0df6dc3e9e67 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_sort.rb @@ -127,6 +127,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_formula_style.rb b/lib/datadog_api_client/v1/models/widget_formula_style.rb index 029fb307e8f1..fc2e33d3b5c4 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_style.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_style.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_group_sort.rb b/lib/datadog_api_client/v1/models/widget_group_sort.rb index da71b0880e05..a07d5996ed10 100644 --- a/lib/datadog_api_client/v1/models/widget_group_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_group_sort.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index 24a32c2ef241..a5709449e2ba 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -169,6 +169,26 @@ def y=(y) @y = y end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index da59658db640..a9744f4a1e51 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -114,6 +114,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_request_style.rb b/lib/datadog_api_client/v1/models/widget_request_style.rb index 0414b505a901..e2ef48ff5378 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_sort_by.rb b/lib/datadog_api_client/v1/models/widget_sort_by.rb index 13d3147cde01..19cc7236f892 100644 --- a/lib/datadog_api_client/v1/models/widget_sort_by.rb +++ b/lib/datadog_api_client/v1/models/widget_sort_by.rb @@ -94,6 +94,26 @@ def count=(count) @count = count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index 5c4c4a8d2826..1d2a2ecb334a 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index f8a978e3aa49..c8a0524315c5 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/model_base.rb b/lib/datadog_api_client/v2/model_base.rb index 25ab047ac8b7..35a96e04229a 100644 --- a/lib/datadog_api_client/v2/model_base.rb +++ b/lib/datadog_api_client/v2/model_base.rb @@ -59,7 +59,7 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) unless self.respond_to?(:additional_properties) unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } - raise SchemaMismatchError, "Additional properties are not allowed" + return nil end end self.class.openapi_types.each_pair do |key, type| @@ -161,7 +161,7 @@ def to_body to_hash end - # Returns the object in the form of hash, with additionalProperties support. + # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash # @!visibility private def to_hash @@ -175,9 +175,6 @@ def to_hash hash[param] = _to_hash(value) end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end hash end diff --git a/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb b/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb index c67fa0da59e3..6103e109359f 100644 --- a/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb +++ b/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb b/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb index 5e2a4244e887..1d0dc4e07715 100644 --- a/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb +++ b/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb b/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb index dc11c940e2c2..0ca80517333d 100644 --- a/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb +++ b/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_error_response.rb b/lib/datadog_api_client/v2/models/api_error_response.rb index c343a5aeda1f..3e992f7bc778 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -85,6 +85,26 @@ def errors=(errors) @errors = errors end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_create_attributes.rb b/lib/datadog_api_client/v2/models/api_key_create_attributes.rb index 021864b66ef3..f0b87999efb6 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_attributes.rb @@ -101,6 +101,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_create_data.rb b/lib/datadog_api_client/v2/models/api_key_create_data.rb index 1dbee098282c..d3adfe0ddb03 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_data.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_create_request.rb b/lib/datadog_api_client/v2/models/api_key_create_request.rb index 1c73c0669285..e3f3818214f8 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_request.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_relationships.rb b/lib/datadog_api_client/v2/models/api_key_relationships.rb index 3160d119d42d..25c7ae3d6f11 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -82,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_response.rb b/lib/datadog_api_client/v2/models/api_key_response.rb index ee16dc008d33..776572151d2b 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_update_attributes.rb b/lib/datadog_api_client/v2/models/api_key_update_attributes.rb index f06bb2a1a6f4..880f5f7a2244 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_attributes.rb @@ -101,6 +101,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_update_data.rb b/lib/datadog_api_client/v2/models/api_key_update_data.rb index 28cd796b23f3..ccecc7ab8d6c 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_data.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_key_update_request.rb b/lib/datadog_api_client/v2/models/api_key_update_request.rb index 609103132bda..4d911e94bbd3 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_request.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_keys_response.rb b/lib/datadog_api_client/v2/models/api_keys_response.rb index 05a075301168..7a8873e84508 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -87,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_keys_response_meta.rb b/lib/datadog_api_client/v2/models/api_keys_response_meta.rb index d7d861bc3b71..122302fad067 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response_meta.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response_meta.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb b/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb index 25c1c96aeac3..35153d3720d8 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_create_attributes.rb b/lib/datadog_api_client/v2/models/application_key_create_attributes.rb index 42670b2561a0..7e27a64e0c35 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_attributes.rb @@ -102,6 +102,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_create_data.rb b/lib/datadog_api_client/v2/models/application_key_create_data.rb index be370d799308..cf551863210e 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_data.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_create_request.rb b/lib/datadog_api_client/v2/models/application_key_create_request.rb index ca0e5f4cc77c..4c7e587e324c 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_request.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_relationships.rb b/lib/datadog_api_client/v2/models/application_key_relationships.rb index 62e212afa4dc..b893cfe8ae05 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_response.rb b/lib/datadog_api_client/v2/models/application_key_response.rb index 5afe41d48ad2..656ecf30b4da 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_response_meta.rb b/lib/datadog_api_client/v2/models/application_key_response_meta.rb index cf345323c108..e284e28a89c3 100644 --- a/lib/datadog_api_client/v2/models/application_key_response_meta.rb +++ b/lib/datadog_api_client/v2/models/application_key_response_meta.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb b/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb index 8b1d07c3303f..3793ce37b280 100644 --- a/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_update_attributes.rb b/lib/datadog_api_client/v2/models/application_key_update_attributes.rb index 70785cf97ca2..70eb50d9c5fc 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_attributes.rb @@ -84,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_update_data.rb b/lib/datadog_api_client/v2/models/application_key_update_data.rb index de539bf2873d..f50681a1db7d 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_data.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/application_key_update_request.rb b/lib/datadog_api_client/v2/models/application_key_update_request.rb index 19854b5f766c..275889fc9ac2 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_request.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_event.rb b/lib/datadog_api_client/v2/models/audit_logs_event.rb index 39b80bec866a..e47e0e3900ed 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_event.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_event.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb b/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb index 8b31f18004c0..776c292fc25d 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb @@ -105,6 +105,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_events_response.rb b/lib/datadog_api_client/v2/models/audit_logs_events_response.rb index 29318590ff6e..260e3a891690 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_events_response.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_events_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb b/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb index afc96335d785..ebce981ef271 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_query_filter.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_query_options.rb b/lib/datadog_api_client/v2/models/audit_logs_query_options.rb index 31aaf109b341..232ef4cb645b 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_query_options.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb b/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb index f6b904fb540d..c576172eb1e3 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb @@ -92,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_response_links.rb b/lib/datadog_api_client/v2/models/audit_logs_response_links.rb index e0a4e1374ed4..0f88b3c2935c 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_response_links.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_response_links.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb b/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb index 60f38b56fb61..6274790d70e9 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_response_metadata.rb @@ -104,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_response_page.rb b/lib/datadog_api_client/v2/models/audit_logs_response_page.rb index 02766a7a3c46..52f0ca6c594d 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_response_page.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_response_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb b/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb index 7462f2dec46e..4fc42c60c16b 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_search_events_request.rb @@ -93,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/audit_logs_warning.rb b/lib/datadog_api_client/v2/models/audit_logs_warning.rb index bf10880c881e..ec389f8ad4d7 100644 --- a/lib/datadog_api_client/v2/models/audit_logs_warning.rb +++ b/lib/datadog_api_client/v2/models/audit_logs_warning.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping.rb b/lib/datadog_api_client/v2/models/authn_mapping.rb index 70298db70897..b84acc35c546 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb index 485e89a735ab..d6da093c4ce0 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb index e18a527d6538..7c0d98367471 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_create_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb b/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb index 629ad7bc4bf2..70ae4fff6442 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb b/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb index 0e4353ca8409..dbc1b0328f80 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb index 59bb464cf828..12742c23a77d 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb @@ -83,6 +83,26 @@ def role=(role) @role = role end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb index 7a2315671892..1f163c09f5b7 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb @@ -83,6 +83,26 @@ def team=(team) @team = team end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb b/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb index e2331e3f09e2..e7249232aa85 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_response.rb b/lib/datadog_api_client/v2/models/authn_mapping_response.rb index d4f6a10a85eb..80c576f33d51 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_response.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_team.rb b/lib/datadog_api_client/v2/models/authn_mapping_team.rb index e583dffc7b09..cf5ff506b1df 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_team.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_team.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb index 05f49fdfb2af..04a9021c7e9d 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb @@ -191,6 +191,26 @@ def user_count=(user_count) @user_count = user_count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb b/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb index 9741e450baa9..57291c89d651 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb b/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb index ee22b391b405..4cd83bc3394f 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb b/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb index 5e8a225ba26e..17f8a6e055e7 100644 --- a/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb +++ b/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/authn_mappings_response.rb b/lib/datadog_api_client/v2/models/authn_mappings_response.rb index 87c225c593c2..979677598cb0 100644 --- a/lib/datadog_api_client/v2/models/authn_mappings_response.rb +++ b/lib/datadog_api_client/v2/models/authn_mappings_response.rb @@ -87,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config.rb b/lib/datadog_api_client/v2/models/aws_cur_config.rb index 48a3092420a2..41eecad512e8 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb b/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb index 849a93c575b8..81c7ee23c30c 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb @@ -280,6 +280,26 @@ def updated_at=(updated_at) @updated_at = updated_at end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb b/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb index 05b2eee35986..64ecab23543b 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb index dcd2391430e4..a98862433a44 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb index 7dea635dac9e..f61b02d5e12a 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb @@ -83,6 +83,26 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb b/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb index 468e31086177..983a13ad6ab4 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb b/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb index 592a89a6311b..4d2607c7097d 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb b/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb index bef8bf5774a1..bbe773114616 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb @@ -181,6 +181,26 @@ def report_prefix=(report_prefix) @report_prefix = report_prefix end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_config_response.rb b/lib/datadog_api_client/v2/models/aws_cur_config_response.rb index b41ca4f25507..77b63c40d4ff 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_config_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb b/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb index 5b45ffad12d1..56e4384068f4 100644 --- a/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +++ b/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_related_account.rb b/lib/datadog_api_client/v2/models/aws_related_account.rb index ac0b8897ba37..a2ce67413ef5 100644 --- a/lib/datadog_api_client/v2/models/aws_related_account.rb +++ b/lib/datadog_api_client/v2/models/aws_related_account.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb b/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb index 713285c032f7..f6f1bb28db55 100644 --- a/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb b/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb index 26c1f6dd7514..46da2ce3d52a 100644 --- a/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config.rb b/lib/datadog_api_client/v2/models/azure_uc_config.rb index 1f2a0957df41..3787b6d067eb 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config.rb @@ -349,6 +349,26 @@ def updated_at=(updated_at) @updated_at = updated_at end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb b/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb index f918c3e16b73..61f6d40cb79d 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb b/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb index f519bb4cd43a..3e91f52fe4cb 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb @@ -94,6 +94,26 @@ def configs=(configs) @configs = configs end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb b/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb index af0be14022f3..5058e46f8c3d 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb b/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb index 633bf4e3d66a..e3a7518e30d6 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb index 5caa75c04574..e768620ef78e 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb index 381738c9532a..14ef295561c3 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb @@ -83,6 +83,26 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb b/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb index 8c550ad246c9..17506a559c4e 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb b/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb index 4abc7051c6c7..9351ceea22d7 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb b/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb index 7a7066415932..a68bb99dde31 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb @@ -172,6 +172,26 @@ def scope=(scope) @scope = scope end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb b/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb index e34e15fbe38e..39b05adbd976 100644 --- a/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +++ b/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bill_config.rb b/lib/datadog_api_client/v2/models/bill_config.rb index 8876ff46edcf..7c4db5e7b723 100644 --- a/lib/datadog_api_client/v2/models/bill_config.rb +++ b/lib/datadog_api_client/v2/models/bill_config.rb @@ -143,6 +143,26 @@ def storage_container=(storage_container) @storage_container = storage_container end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb index d23daf324d63..0d0dcfa94fbb 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_attributes.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_attributes.rb index 8e6f8bf98f60..477fa9af6149 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_attributes.rb @@ -78,22 +78,6 @@ def mute=(mute) end @mute = mute end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb index bb13eed26a8b..9ba3f3c7dd1c 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb @@ -143,6 +143,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb index 8ca2c5a16024..894e709d4e1a 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb index acd2aab4fc73..315864e4549b 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb index fa5a2bf47ec1..834b09eafa2b 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb @@ -118,22 +118,6 @@ def reason=(reason) end @reason = reason end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb index 82eea29c1927..4ec819024c71 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb b/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb index 10bd0e9f765e..daf608b8f006 100644 --- a/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb +++ b/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case.rb b/lib/datadog_api_client/v2/models/case.rb index 983789bb3e4c..1573f988c3a5 100644 --- a/lib/datadog_api_client/v2/models/case.rb +++ b/lib/datadog_api_client/v2/models/case.rb @@ -132,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_assign.rb b/lib/datadog_api_client/v2/models/case_assign.rb index d43fa89e058a..81931c5e9bc2 100644 --- a/lib/datadog_api_client/v2/models/case_assign.rb +++ b/lib/datadog_api_client/v2/models/case_assign.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_assign_attributes.rb b/lib/datadog_api_client/v2/models/case_assign_attributes.rb index d37ecdf0de42..8001037c13a1 100644 --- a/lib/datadog_api_client/v2/models/case_assign_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_assign_attributes.rb @@ -83,6 +83,26 @@ def assignee_id=(assignee_id) @assignee_id = assignee_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_assign_request.rb b/lib/datadog_api_client/v2/models/case_assign_request.rb index 802a869c45ad..091ff5e3a47c 100644 --- a/lib/datadog_api_client/v2/models/case_assign_request.rb +++ b/lib/datadog_api_client/v2/models/case_assign_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_attributes.rb b/lib/datadog_api_client/v2/models/case_attributes.rb index 3ce8debe8588..7ab640637638 100644 --- a/lib/datadog_api_client/v2/models/case_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_attributes.rb @@ -176,6 +176,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_create.rb b/lib/datadog_api_client/v2/models/case_create.rb index b951a0d94d03..2f4ec7b26982 100644 --- a/lib/datadog_api_client/v2/models/case_create.rb +++ b/lib/datadog_api_client/v2/models/case_create.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_create_attributes.rb b/lib/datadog_api_client/v2/models/case_create_attributes.rb index f75059292771..9739ca48b80b 100644 --- a/lib/datadog_api_client/v2/models/case_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_create_attributes.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_create_relationships.rb b/lib/datadog_api_client/v2/models/case_create_relationships.rb index 871cbcfef40e..91b529d1ad07 100644 --- a/lib/datadog_api_client/v2/models/case_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/case_create_relationships.rb @@ -100,6 +100,26 @@ def project=(project) @project = project end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_create_request.rb b/lib/datadog_api_client/v2/models/case_create_request.rb index 636346461270..51e78c431536 100644 --- a/lib/datadog_api_client/v2/models/case_create_request.rb +++ b/lib/datadog_api_client/v2/models/case_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_empty.rb b/lib/datadog_api_client/v2/models/case_empty.rb index e122866c584c..e6ca66b4da0c 100644 --- a/lib/datadog_api_client/v2/models/case_empty.rb +++ b/lib/datadog_api_client/v2/models/case_empty.rb @@ -83,6 +83,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_empty_request.rb b/lib/datadog_api_client/v2/models/case_empty_request.rb index 0c815ca21b26..5f7a626bb2a9 100644 --- a/lib/datadog_api_client/v2/models/case_empty_request.rb +++ b/lib/datadog_api_client/v2/models/case_empty_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_relationships.rb b/lib/datadog_api_client/v2/models/case_relationships.rb index cd7b2e55cec5..d20f70fbab41 100644 --- a/lib/datadog_api_client/v2/models/case_relationships.rb +++ b/lib/datadog_api_client/v2/models/case_relationships.rb @@ -102,6 +102,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_response.rb b/lib/datadog_api_client/v2/models/case_response.rb index 756c2c6b7033..e10580f69057 100644 --- a/lib/datadog_api_client/v2/models/case_response.rb +++ b/lib/datadog_api_client/v2/models/case_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_priority.rb b/lib/datadog_api_client/v2/models/case_update_priority.rb index 865e9d8cae62..23438aea53d8 100644 --- a/lib/datadog_api_client/v2/models/case_update_priority.rb +++ b/lib/datadog_api_client/v2/models/case_update_priority.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb b/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb index 9f23e456070d..37a5acafb5e2 100644 --- a/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb @@ -83,6 +83,26 @@ def priority=(priority) @priority = priority end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_priority_request.rb b/lib/datadog_api_client/v2/models/case_update_priority_request.rb index f99ada11f4db..ebda37319f21 100644 --- a/lib/datadog_api_client/v2/models/case_update_priority_request.rb +++ b/lib/datadog_api_client/v2/models/case_update_priority_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_status.rb b/lib/datadog_api_client/v2/models/case_update_status.rb index 414fb3a7f9d4..b96236c2b0ef 100644 --- a/lib/datadog_api_client/v2/models/case_update_status.rb +++ b/lib/datadog_api_client/v2/models/case_update_status.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_status_attributes.rb b/lib/datadog_api_client/v2/models/case_update_status_attributes.rb index def25756cef1..fd04d01cb0e9 100644 --- a/lib/datadog_api_client/v2/models/case_update_status_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_update_status_attributes.rb @@ -83,6 +83,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/case_update_status_request.rb b/lib/datadog_api_client/v2/models/case_update_status_request.rb index c580726e6eb9..62b9fe343cd5 100644 --- a/lib/datadog_api_client/v2/models/case_update_status_request.rb +++ b/lib/datadog_api_client/v2/models/case_update_status_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cases_response.rb b/lib/datadog_api_client/v2/models/cases_response.rb index 4a92ba72c68b..456328db3773 100644 --- a/lib/datadog_api_client/v2/models/cases_response.rb +++ b/lib/datadog_api_client/v2/models/cases_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cases_response_meta.rb b/lib/datadog_api_client/v2/models/cases_response_meta.rb index 0b9a1d71f7ea..acfaa5f6360e 100644 --- a/lib/datadog_api_client/v2/models/cases_response_meta.rb +++ b/lib/datadog_api_client/v2/models/cases_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb index f8288d8ac26d..ea60d4208b6b 100644 --- a/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/chargeback_breakdown.rb b/lib/datadog_api_client/v2/models/chargeback_breakdown.rb index c2c28203f2b9..2f81f1cd4202 100644 --- a/lib/datadog_api_client/v2/models/chargeback_breakdown.rb +++ b/lib/datadog_api_client/v2/models/chargeback_breakdown.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb index 41c6905d06d6..4fb63ea3ee2a 100644 --- a/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb b/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb index e64627057e78..03206c524af2 100644 --- a/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_ci_error.rb b/lib/datadog_api_client/v2/models/ci_app_ci_error.rb index ca04f249ec51..f2414bf5381d 100644 --- a/lib/datadog_api_client/v2/models/ci_app_ci_error.rb +++ b/lib/datadog_api_client/v2/models/ci_app_ci_error.rb @@ -131,6 +131,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_compute.rb b/lib/datadog_api_client/v2/models/ci_app_compute.rb index 0a7511cafa09..49cfb41f6b4f 100644 --- a/lib/datadog_api_client/v2/models/ci_app_compute.rb +++ b/lib/datadog_api_client/v2/models/ci_app_compute.rb @@ -111,6 +111,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb index 594a99733c0e..e341a0cef52a 100644 --- a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb index 2ff289145325..367f47346315 100644 --- a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb @@ -101,6 +101,26 @@ def resource=(resource) @resource = resource end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb index ee2e2c91cb72..a431fa7c91c2 100644 --- a/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb +++ b/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb b/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb index e63978f57e36..3e9d9bef8e9d 100644 --- a/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_git_info.rb b/lib/datadog_api_client/v2/models/ci_app_git_info.rb index 119f5b81764e..726cf72ebc5f 100644 --- a/lib/datadog_api_client/v2/models/ci_app_git_info.rb +++ b/lib/datadog_api_client/v2/models/ci_app_git_info.rb @@ -227,6 +227,26 @@ def sha=(sha) @sha = sha end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb b/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb index 757e5c8ef23c..21c1adb588cd 100644 --- a/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb @@ -126,6 +126,26 @@ def min=(min) @min = min end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_host_info.rb b/lib/datadog_api_client/v2/models/ci_app_host_info.rb index ee6173f1ad38..6874177af91b 100644 --- a/lib/datadog_api_client/v2/models/ci_app_host_info.rb +++ b/lib/datadog_api_client/v2/models/ci_app_host_info.rb @@ -94,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb index 07b8de6d16bd..e48a786960d5 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb index d98deb8c1b6c..8ee21295b015 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb index f9c612979caa..b4a1f7867004 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb @@ -368,6 +368,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb index b5322a42b0fd..b626b5616aa3 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_parent_pipeline.rb @@ -92,6 +92,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb index 6bc6220fc4c0..0e9e1afd3878 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb @@ -368,6 +368,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb index 9688d9db201e..ad5e416777f7 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_previous_pipeline.rb @@ -92,6 +92,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb index 148db443a295..e4c1f6d19f49 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_stage.rb @@ -328,6 +328,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb index 61d0031a1ace..9ed84458db65 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_event_step.rb @@ -345,6 +345,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb index b0e73187d235..0586481b1b7b 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb @@ -93,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb index 5cb0710a00d6..172d7be59110 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb index e2392acf3fe4..e266598734c2 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb @@ -97,6 +97,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb index 10c9c2ffc96b..89bf49d1b573 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb index 37d080950f6f..6529d1845ffd 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb index 9a3e5dcb5aff..250e6ce07d8f 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb index 12b4497b99ac..e6c7deb5698e 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb @@ -129,6 +129,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb b/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb index 560aac2a4787..38eea3965b83 100644 --- a/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +++ b/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_query_options.rb b/lib/datadog_api_client/v2/models/ci_app_query_options.rb index 76ce5b9373e0..660b08a08100 100644 --- a/lib/datadog_api_client/v2/models/ci_app_query_options.rb +++ b/lib/datadog_api_client/v2/models/ci_app_query_options.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb b/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb index 4454ed44bf4c..70a6a05b9a3f 100644 --- a/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb +++ b/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb @@ -92,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_response_links.rb b/lib/datadog_api_client/v2/models/ci_app_response_links.rb index 01205b1dc7ed..ddd2e142f441 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_links.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_links.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb b/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb index 7b3169f4d2b4..b6bc0eafb72c 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb @@ -95,6 +95,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb b/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb index 6c827566a454..90e0f8c8c307 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_metadata_with_pagination.rb @@ -104,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_response_page.rb b/lib/datadog_api_client/v2/models/ci_app_response_page.rb index e98b4fe664e5..daf82380ba57 100644 --- a/lib/datadog_api_client/v2/models/ci_app_response_page.rb +++ b/lib/datadog_api_client/v2/models/ci_app_response_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_test_event.rb b/lib/datadog_api_client/v2/models/ci_app_test_event.rb index 5e7d8c121015..02ca45e86d69 100644 --- a/lib/datadog_api_client/v2/models/ci_app_test_event.rb +++ b/lib/datadog_api_client/v2/models/ci_app_test_event.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb b/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb index fd1074ac15bb..69263a6d936a 100644 --- a/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb @@ -93,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb b/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb index 15ec37ebb8c2..14b46743c988 100644 --- a/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb b/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb index 7526df5e1f36..51731da3bcf2 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb @@ -97,6 +97,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb b/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb index b379696579b5..2a53c9ece9c4 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb b/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb index 6c123ee1e114..38842c3a7223 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb b/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb index 49fbc3f0d255..989bb59edf3d 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb b/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb index 794b500b0cbb..667a6386c363 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb @@ -129,6 +129,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb b/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb index 333384307b98..092738ff6029 100644 --- a/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +++ b/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ci_app_warning.rb b/lib/datadog_api_client/v2/models/ci_app_warning.rb index e9f12e692c3a..b91425e852ef 100644 --- a/lib/datadog_api_client/v2/models/ci_app_warning.rb +++ b/lib/datadog_api_client/v2/models/ci_app_warning.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb b/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb index 4e34fc729547..b6adaf791d5e 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb @@ -87,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb index ef19221e1e70..8322bc8e34f8 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb @@ -105,6 +105,26 @@ def resource_types=(resource_types) @resource_types = resource_types end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb index 16c46795c2f1..cdd160271a3d 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb @@ -94,6 +94,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb index 5fe4d3b37f18..bb1693fb614f 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb @@ -107,6 +107,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb index c5d08d2e1906..812744c50c43 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb @@ -217,6 +217,26 @@ def options=(options) @options = options end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb index 0117f163c810..ed577c0a5718 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb @@ -85,6 +85,26 @@ def compliance_rule_options=(compliance_rule_options) @compliance_rule_options = compliance_rule_options end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb b/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb index 0de66a5d7359..c0703f3190c6 100644 --- a/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +++ b/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb @@ -217,6 +217,26 @@ def options=(options) @options = options end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_cost_activity.rb b/lib/datadog_api_client/v2/models/cloud_cost_activity.rb index a499afb58f02..a47c7ab00506 100644 --- a/lib/datadog_api_client/v2/models/cloud_cost_activity.rb +++ b/lib/datadog_api_client/v2/models/cloud_cost_activity.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb b/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb index e2893999aa1e..14f980a622ec 100644 --- a/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb @@ -83,6 +83,26 @@ def is_enabled=(is_enabled) @is_enabled = is_enabled end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb b/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb index 016eda20dcc3..80a6018bfc60 100644 --- a/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb index f48ff39dcec2..b47013766209 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb index b7af80ef319d..a6d9b148516d 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb @@ -221,6 +221,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb index 0b81d5560ae0..c7064a4e25f0 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb @@ -132,6 +132,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb index e49185724ae2..1b23b48f48b5 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb index cf9b63b2935b..62624100d437 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb index 9cf3e4dc7390..e5e22dd27534 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb @@ -82,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb index 93c7a3234138..5d9ad28a64d9 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb index ae691c4296d2..8850e6722437 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb index db8c58ce7301..65d83126261c 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb index 3478a1c18e2c..78816924bb3d 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb index cbde20c810a5..dbb11a788a94 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb index 0a4b2426a717..2c83659c494c 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb index 602871087f5e..3c086559a5c6 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb @@ -82,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb index 73abcd796252..a5710e67bfa1 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb index ce7dd8fe38fa..9774090eb71d 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb index 8a796df59f2a..abd5503f5f5e 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb @@ -134,6 +134,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb index fdb6a59d7792..1363b853457b 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response.rb index fc52824e5eec..d494660cf556 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb index cd71545644bf..bb3b6981c4f9 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb @@ -123,6 +123,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb index 8b58388c9199..e91d7fc588e7 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb index 9441ddd7b662..4b764f4603d2 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb index bc57bdbe2809..b98e3430ebe3 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb @@ -123,6 +123,26 @@ def api_key=(api_key) @api_key = api_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb index 5ba1a3953ab0..cce3aa43856a 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb b/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb index c1350bb110fb..91bc209baf8e 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_create_request.rb b/lib/datadog_api_client/v2/models/confluent_account_create_request.rb index 4168b933a093..8edf8ec3fdcc 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb index 28a3b9acc8e5..e913fc6a1679 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb @@ -125,6 +125,26 @@ def api_secret=(api_secret) @api_secret = api_secret end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb b/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb index 5f2a8b39ab30..2ec258d9d2aa 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb index a39509d798b1..f5f571e27354 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb @@ -112,6 +112,26 @@ def resource_type=(resource_type) @resource_type = resource_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_response.rb b/lib/datadog_api_client/v2/models/confluent_account_response.rb index 6da932588844..aae559bfd112 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb index 1092677f797c..c286d0543ea7 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb @@ -105,6 +105,26 @@ def api_key=(api_key) @api_key = api_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_response_data.rb b/lib/datadog_api_client/v2/models/confluent_account_response_data.rb index ba3d35a3bf65..c2a8bf82aa31 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_response_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_update_request.rb b/lib/datadog_api_client/v2/models/confluent_account_update_request.rb index f3e4a7fc17ad..093336d87e41 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb index 02c4b4b019d9..987dfa551178 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb @@ -114,6 +114,26 @@ def api_secret=(api_secret) @api_secret = api_secret end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb b/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb index 2149cb685105..af457d4d97b8 100644 --- a/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_accounts_response.rb b/lib/datadog_api_client/v2/models/confluent_accounts_response.rb index bc39b67e812e..fdc3dc6c68c5 100644 --- a/lib/datadog_api_client/v2/models/confluent_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_accounts_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_request.rb b/lib/datadog_api_client/v2/models/confluent_resource_request.rb index ad3845b205e7..ceb244e9863d 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_request.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb b/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb index 720cc6d90593..c1bd29d3ae2c 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb @@ -103,6 +103,26 @@ def resource_type=(resource_type) @resource_type = resource_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb b/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb index 0149fb6e8d8c..4f1e78aaa8e5 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_response.rb b/lib/datadog_api_client/v2/models/confluent_resource_response.rb index 84e34c717d24..3120b35f4367 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb b/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb index 914ac782c0f5..87de15dc40dc 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb @@ -112,6 +112,26 @@ def resource_type=(resource_type) @resource_type = resource_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb b/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb index 82dfe6eb88cb..2fef5eaba0be 100644 --- a/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb +++ b/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/confluent_resources_response.rb b/lib/datadog_api_client/v2/models/confluent_resources_response.rb index 11f93852f2f6..4b6b11f77c39 100644 --- a/lib/datadog_api_client/v2/models/confluent_resources_response.rb +++ b/lib/datadog_api_client/v2/models/confluent_resources_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container.rb b/lib/datadog_api_client/v2/models/container.rb index 1061a3c22a55..620e189d877d 100644 --- a/lib/datadog_api_client/v2/models/container.rb +++ b/lib/datadog_api_client/v2/models/container.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_attributes.rb b/lib/datadog_api_client/v2/models/container_attributes.rb index 00a5291cdcb2..4d9759dbbe77 100644 --- a/lib/datadog_api_client/v2/models/container_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_attributes.rb @@ -159,6 +159,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group.rb b/lib/datadog_api_client/v2/models/container_group.rb index 92a7cf429b67..06c787bea79d 100644 --- a/lib/datadog_api_client/v2/models/container_group.rb +++ b/lib/datadog_api_client/v2/models/container_group.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group_attributes.rb b/lib/datadog_api_client/v2/models/container_group_attributes.rb index 42b99d786864..ae2ffa342901 100644 --- a/lib/datadog_api_client/v2/models/container_group_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_group_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group_relationships.rb b/lib/datadog_api_client/v2/models/container_group_relationships.rb index 2599d6cf39c7..b3533f19dd91 100644 --- a/lib/datadog_api_client/v2/models/container_group_relationships.rb +++ b/lib/datadog_api_client/v2/models/container_group_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group_relationships_link.rb b/lib/datadog_api_client/v2/models/container_group_relationships_link.rb index 01af44cfb026..ee133cc42d1a 100644 --- a/lib/datadog_api_client/v2/models/container_group_relationships_link.rb +++ b/lib/datadog_api_client/v2/models/container_group_relationships_link.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_group_relationships_links.rb b/lib/datadog_api_client/v2/models/container_group_relationships_links.rb index e10e552bf579..de5198b4c86f 100644 --- a/lib/datadog_api_client/v2/models/container_group_relationships_links.rb +++ b/lib/datadog_api_client/v2/models/container_group_relationships_links.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image.rb b/lib/datadog_api_client/v2/models/container_image.rb index a5f37c7f6b62..4db894444e02 100644 --- a/lib/datadog_api_client/v2/models/container_image.rb +++ b/lib/datadog_api_client/v2/models/container_image.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_attributes.rb b/lib/datadog_api_client/v2/models/container_image_attributes.rb index 2901f2514527..d04a8a17069f 100644 --- a/lib/datadog_api_client/v2/models/container_image_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_image_attributes.rb @@ -230,6 +230,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_flavor.rb b/lib/datadog_api_client/v2/models/container_image_flavor.rb index 3287a25ccb40..f33e48c49507 100644 --- a/lib/datadog_api_client/v2/models/container_image_flavor.rb +++ b/lib/datadog_api_client/v2/models/container_image_flavor.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group.rb b/lib/datadog_api_client/v2/models/container_image_group.rb index 4f10d3e4f755..5f2aafb4a4b5 100644 --- a/lib/datadog_api_client/v2/models/container_image_group.rb +++ b/lib/datadog_api_client/v2/models/container_image_group.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group_attributes.rb b/lib/datadog_api_client/v2/models/container_image_group_attributes.rb index 3d8e4dbe5993..4d7275ef19c8 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_attributes.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_attributes.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb b/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb index e06dc2eb0719..254f843f7e69 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group_relationships.rb b/lib/datadog_api_client/v2/models/container_image_group_relationships.rb index 9238727cf6ed..e1655660ccd4 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_relationships.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb b/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb index 7044aa6ddd86..58eee7913a05 100644 --- a/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb +++ b/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_meta.rb b/lib/datadog_api_client/v2/models/container_image_meta.rb index 130e9b848c23..03ee68699598 100644 --- a/lib/datadog_api_client/v2/models/container_image_meta.rb +++ b/lib/datadog_api_client/v2/models/container_image_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_meta_page.rb b/lib/datadog_api_client/v2/models/container_image_meta_page.rb index da9124a18990..86ef2377015b 100644 --- a/lib/datadog_api_client/v2/models/container_image_meta_page.rb +++ b/lib/datadog_api_client/v2/models/container_image_meta_page.rb @@ -140,6 +140,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb b/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb index cb6672b4def6..7a7df0685678 100644 --- a/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb +++ b/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb @@ -119,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_images_response.rb b/lib/datadog_api_client/v2/models/container_images_response.rb index 352f2b707380..e82988aad1ea 100644 --- a/lib/datadog_api_client/v2/models/container_images_response.rb +++ b/lib/datadog_api_client/v2/models/container_images_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_images_response_links.rb b/lib/datadog_api_client/v2/models/container_images_response_links.rb index 6cbe1eb14f1f..34da8c2be5ff 100644 --- a/lib/datadog_api_client/v2/models/container_images_response_links.rb +++ b/lib/datadog_api_client/v2/models/container_images_response_links.rb @@ -111,6 +111,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_meta.rb b/lib/datadog_api_client/v2/models/container_meta.rb index d94408c09aec..30ed593f8734 100644 --- a/lib/datadog_api_client/v2/models/container_meta.rb +++ b/lib/datadog_api_client/v2/models/container_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/container_meta_page.rb b/lib/datadog_api_client/v2/models/container_meta_page.rb index cee8eb2b1424..bacdeb9369e9 100644 --- a/lib/datadog_api_client/v2/models/container_meta_page.rb +++ b/lib/datadog_api_client/v2/models/container_meta_page.rb @@ -140,6 +140,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/containers_response.rb b/lib/datadog_api_client/v2/models/containers_response.rb index d7d191bad65c..18e8159f58ac 100644 --- a/lib/datadog_api_client/v2/models/containers_response.rb +++ b/lib/datadog_api_client/v2/models/containers_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/containers_response_links.rb b/lib/datadog_api_client/v2/models/containers_response_links.rb index fe70dac1b4ea..5fd17d2de0e6 100644 --- a/lib/datadog_api_client/v2/models/containers_response_links.rb +++ b/lib/datadog_api_client/v2/models/containers_response_links.rb @@ -111,6 +111,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb b/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb index 36ba519fb719..507e472cc270 100644 --- a/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb +++ b/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cost_by_org.rb b/lib/datadog_api_client/v2/models/cost_by_org.rb index c1f86da5d4a5..73c422431749 100644 --- a/lib/datadog_api_client/v2/models/cost_by_org.rb +++ b/lib/datadog_api_client/v2/models/cost_by_org.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb b/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb index 978caa865462..ff58e923c9c3 100644 --- a/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb +++ b/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb @@ -130,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/cost_by_org_response.rb b/lib/datadog_api_client/v2/models/cost_by_org_response.rb index b8a5be5c5df5..9151d8335c65 100644 --- a/lib/datadog_api_client/v2/models/cost_by_org_response.rb +++ b/lib/datadog_api_client/v2/models/cost_by_org_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_open_api_response.rb b/lib/datadog_api_client/v2/models/create_open_api_response.rb index a40f1f94b963..6f6168c69016 100644 --- a/lib/datadog_api_client/v2/models/create_open_api_response.rb +++ b/lib/datadog_api_client/v2/models/create_open_api_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb b/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb index 662107fc5944..2a2bf85e1530 100644 --- a/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_open_api_response_data.rb b/lib/datadog_api_client/v2/models/create_open_api_response_data.rb index 57bb0b87da05..8e9320577f11 100644 --- a/lib/datadog_api_client/v2/models/create_open_api_response_data.rb +++ b/lib/datadog_api_client/v2/models/create_open_api_response_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_rule_request.rb b/lib/datadog_api_client/v2/models/create_rule_request.rb index f4874ca5cfaa..7d9cb190b897 100644 --- a/lib/datadog_api_client/v2/models/create_rule_request.rb +++ b/lib/datadog_api_client/v2/models/create_rule_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_rule_request_data.rb b/lib/datadog_api_client/v2/models/create_rule_request_data.rb index 60f3cf2ce073..b051af1b4e64 100644 --- a/lib/datadog_api_client/v2/models/create_rule_request_data.rb +++ b/lib/datadog_api_client/v2/models/create_rule_request_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_rule_response.rb b/lib/datadog_api_client/v2/models/create_rule_response.rb index 97f03965d169..cf71416e0ee0 100644 --- a/lib/datadog_api_client/v2/models/create_rule_response.rb +++ b/lib/datadog_api_client/v2/models/create_rule_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/create_rule_response_data.rb b/lib/datadog_api_client/v2/models/create_rule_response_data.rb index bda31b69fa6f..d5ebbe809c93 100644 --- a/lib/datadog_api_client/v2/models/create_rule_response_data.rb +++ b/lib/datadog_api_client/v2/models/create_rule_response_data.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index 9aa1d128ba33..2ec445d3c175 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -91,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb b/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb index 4b32aed00ff0..24397c6af89d 100644 --- a/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb +++ b/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb b/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb index 835255da9480..3950129e4ae5 100644 --- a/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb +++ b/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb b/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb index 59d9c075a944..ecd06c98551c 100644 --- a/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb +++ b/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb b/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb index a72480189c68..51950918defa 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb b/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb index 1d10acef6932..d9306ab2594c 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb @@ -152,6 +152,26 @@ def charge_period_start=(charge_period_start) @charge_period_start = charge_period_start end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb b/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb index 752f263429f4..b03b25208f66 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb index a119e9e48759..a29861fc0c3d 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb @@ -130,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb index 834e905de858..3a088b5d5d53 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb index 33d12a190e5b..69f69e59efe9 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb @@ -141,6 +141,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb index 831044be59fc..4cd22299ce81 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb b/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb index c937d8f9e18d..c22b1f60da35 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb b/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb index 59464a2cde59..cd57e73af7b1 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_costs_user.rb b/lib/datadog_api_client/v2/models/custom_costs_user.rb index 7b52d943774a..b979a4bd156f 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_user.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_user.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_create_request.rb b/lib/datadog_api_client/v2/models/custom_destination_create_request.rb index c2dce55a956e..bc801ecfcab2 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_create_request.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_create_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb b/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb index c6e70d50b152..5f92577ac293 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb @@ -172,6 +172,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb b/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb index 3e9bf3ec5985..0892c7989dbb 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb b/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb index a237fe6cb4e8..4c485624c410 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb @@ -103,6 +103,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb index 655b345c3bc4..ca9d1ea89db6 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb @@ -162,6 +162,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb index 73e64a26aea9..d898be9ed95e 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb @@ -124,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb index 42dbbd394208..6ebac3a72593 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb @@ -124,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb index 8924c0d501f2..deaffa852fee 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb @@ -123,6 +123,26 @@ def username=(username) @username = username end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb index b4e89804574e..2cc601f37288 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response.rb b/lib/datadog_api_client/v2/models/custom_destination_response.rb index 66dceb526260..024ed6df1dbc 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb b/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb index be2c6848b5a2..de69d8d8a13b 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb @@ -150,6 +150,26 @@ def forward_tags_restriction_list=(forward_tags_restriction_list) @forward_tags_restriction_list = forward_tags_restriction_list end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb b/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb index 769b745828d8..84be926ebd86 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb index 0ecaa37a8837..b6bdcb7e4eff 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb @@ -162,6 +162,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb index 21e088e5af51..8b9555c4d2fc 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb @@ -124,6 +124,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb index ceb4bc4f251a..fdd41aa3e0dc 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb @@ -104,6 +104,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb index 41997609bc30..ec2b6d121807 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb @@ -83,6 +83,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb index 6346898ace54..a32897f1786e 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_update_request.rb b/lib/datadog_api_client/v2/models/custom_destination_update_request.rb index f703922423fd..1c8adec241ff 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_update_request.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_update_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb b/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb index d3916ccfc152..ef23ce4c6bf7 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb @@ -148,6 +148,26 @@ def forward_tags_restriction_list=(forward_tags_restriction_list) @forward_tags_restriction_list = forward_tags_restriction_list end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb b/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb index eb0df7a4eec1..06ff7a142f65 100644 --- a/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb +++ b/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/custom_destinations_response.rb b/lib/datadog_api_client/v2/models/custom_destinations_response.rb index 24634c94906b..ad60799aa64e 100644 --- a/lib/datadog_api_client/v2/models/custom_destinations_response.rb +++ b/lib/datadog_api_client/v2/models/custom_destinations_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb index b0779bcfb90b..e960982638ca 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb index a7d45a7eb811..f2e4e0b4fd6c 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb index 6892f59de1b0..e50276b88c75 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb index 5c7ff26cc4b3..331e37902469 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item.rb b/lib/datadog_api_client/v2/models/dashboard_list_item.rb index c8d159aa7666..61ecb51cf90d 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -245,6 +245,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb index 2a08d7979011..4a47a4994efd 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb index 90d539526f2a..4d0d54e336b6 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_items.rb b/lib/datadog_api_client/v2/models/dashboard_list_items.rb index 61c0391039e7..636c66e2d5a8 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -94,6 +94,26 @@ def dashboards=(dashboards) @dashboards = dashboards end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb index e6b363939b67..c12c94c0b098 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb index 3b72f6544a48..3e0fdbc36278 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/data_scalar_column.rb b/lib/datadog_api_client/v2/models/data_scalar_column.rb index 5a7b15ecaba6..f6629576d3dc 100644 --- a/lib/datadog_api_client/v2/models/data_scalar_column.rb +++ b/lib/datadog_api_client/v2/models/data_scalar_column.rb @@ -94,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/detailed_finding.rb b/lib/datadog_api_client/v2/models/detailed_finding.rb index acee85c9acec..ba7a0092f334 100644 --- a/lib/datadog_api_client/v2/models/detailed_finding.rb +++ b/lib/datadog_api_client/v2/models/detailed_finding.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb b/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb index d7c3d854f505..6a1479cbe899 100644 --- a/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb +++ b/lib/datadog_api_client/v2/models/detailed_finding_attributes.rb @@ -186,6 +186,26 @@ def resource_discovery_date=(resource_discovery_date) @resource_discovery_date = resource_discovery_date end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/device_attributes.rb b/lib/datadog_api_client/v2/models/device_attributes.rb index e0d21de7cebe..70b77f0370c9 100644 --- a/lib/datadog_api_client/v2/models/device_attributes.rb +++ b/lib/datadog_api_client/v2/models/device_attributes.rb @@ -238,6 +238,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb b/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb index 4dd491ad2f88..3e2291cda34a 100644 --- a/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb +++ b/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/devices_list_data.rb b/lib/datadog_api_client/v2/models/devices_list_data.rb index 33f57d0917ce..d6fdb6a3b7c3 100644 --- a/lib/datadog_api_client/v2/models/devices_list_data.rb +++ b/lib/datadog_api_client/v2/models/devices_list_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request.rb b/lib/datadog_api_client/v2/models/dora_deployment_request.rb index f0e91df56531..2180a18a6c28 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb b/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb index 511ae031b04b..63a7ebd56793 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb @@ -159,6 +159,26 @@ def started_at=(started_at) @started_at = started_at end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb b/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb index 260af1525233..e23c9f25bdb0 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb @@ -83,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_response.rb b/lib/datadog_api_client/v2/models/dora_deployment_response.rb index 3febb9f68478..04115d10b54b 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_response.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_response.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb b/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb index 50a1b2c7742e..68cf1547cc44 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb @@ -92,6 +92,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_git_info.rb b/lib/datadog_api_client/v2/models/dora_git_info.rb index e907993df4e4..a0bb0fe90a1d 100644 --- a/lib/datadog_api_client/v2/models/dora_git_info.rb +++ b/lib/datadog_api_client/v2/models/dora_git_info.rb @@ -109,6 +109,26 @@ def repository_url=(repository_url) @repository_url = repository_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_request.rb b/lib/datadog_api_client/v2/models/dora_incident_request.rb index 34b74774b11b..c65c4a896cee 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_request.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb b/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb index 86df7826e33f..3c9e6e1adc5c 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb @@ -166,6 +166,26 @@ def started_at=(started_at) @started_at = started_at end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_request_data.rb b/lib/datadog_api_client/v2/models/dora_incident_request_data.rb index 914d00e4ae92..f9d256e122f2 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_request_data.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_request_data.rb @@ -83,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_response.rb b/lib/datadog_api_client/v2/models/dora_incident_response.rb index 07a63666bd1a..86be6a3d05ec 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_response.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_response.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/dora_incident_response_data.rb b/lib/datadog_api_client/v2/models/dora_incident_response_data.rb index c5650524bfb4..440b951198b2 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/dora_incident_response_data.rb @@ -92,6 +92,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_create_request.rb b/lib/datadog_api_client/v2/models/downtime_create_request.rb index 409afb9ce940..17f54622a227 100644 --- a/lib/datadog_api_client/v2/models/downtime_create_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb b/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb index 492399bc4536..ff27e11ffd6c 100644 --- a/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb @@ -172,6 +172,26 @@ def scope=(scope) @scope = scope end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_create_request_data.rb b/lib/datadog_api_client/v2/models/downtime_create_request_data.rb index fe4029c99e22..b771b7b71e31 100644 --- a/lib/datadog_api_client/v2/models/downtime_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_create_request_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_meta.rb b/lib/datadog_api_client/v2/models/downtime_meta.rb index 44097d3d27af..df177c9af62b 100644 --- a/lib/datadog_api_client/v2/models/downtime_meta.rb +++ b/lib/datadog_api_client/v2/models/downtime_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_meta_page.rb b/lib/datadog_api_client/v2/models/downtime_meta_page.rb index 06287a1f43dc..35f51ba1705a 100644 --- a/lib/datadog_api_client/v2/models/downtime_meta_page.rb +++ b/lib/datadog_api_client/v2/models/downtime_meta_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb index 74c8f9c0344b..9028cd7daa8a 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb @@ -83,6 +83,26 @@ def monitor_id=(monitor_id) @monitor_id = monitor_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb index 93e3928b2289..f28e3087e527 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb @@ -92,6 +92,26 @@ def monitor_tags=(monitor_tags) @monitor_tags = monitor_tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb b/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb index 8fa5b78d8407..28fa209f81ae 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb b/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb index d3689092214e..b743fce26f15 100644 --- a/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb +++ b/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships.rb b/lib/datadog_api_client/v2/models/downtime_relationships.rb index 3cdf065ecd58..5a8b8e1e9059 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb b/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb index 4f4249906dc3..4708443d065e 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb @@ -73,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb b/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb index 1473232afdff..4b798d67ef9d 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb b/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb index 81f222568641..99a994254aa8 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb @@ -73,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb b/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb index 44b6a3f9157b..a4137a916de2 100644 --- a/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_response.rb b/lib/datadog_api_client/v2/models/downtime_response.rb index 8f49ac6285b3..cd8e664cccf9 100644 --- a/lib/datadog_api_client/v2/models/downtime_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_response.rb @@ -79,6 +79,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_response_attributes.rb b/lib/datadog_api_client/v2/models/downtime_response_attributes.rb index 802735da39c8..8e9b9ef45912 100644 --- a/lib/datadog_api_client/v2/models/downtime_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_response_attributes.rb @@ -182,6 +182,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_response_data.rb b/lib/datadog_api_client/v2/models/downtime_response_data.rb index 2ddb45297c59..5c57a8d668b4 100644 --- a/lib/datadog_api_client/v2/models/downtime_response_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_response_data.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb index 6684e71db6b2..225aa4406df1 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb @@ -84,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb index 281655f709ff..65ea83d029bd 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb @@ -80,22 +80,6 @@ def initialize(attributes = {}) self.start = attributes[:'start'] end end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb index 6a211992bc30..2a65555fd69e 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb @@ -100,6 +100,26 @@ def start=(start) @start = start end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb index 409c3c5a5fcd..c514a550c194 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb @@ -126,6 +126,26 @@ def rrule=(rrule) @rrule = rrule end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb index b543787a4696..2e883e4de63e 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb @@ -89,6 +89,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb index d4da079f224d..e273adab95b5 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb @@ -94,6 +94,26 @@ def recurrences=(recurrences) @recurrences = recurrences end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb index e1c5ef43abd8..0fad380c43c9 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb @@ -114,6 +114,26 @@ def recurrences=(recurrences) @recurrences = recurrences end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb index 170317388b8d..cc73a8c0bc06 100644 --- a/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb @@ -71,22 +71,6 @@ def initialize(attributes = {}) self.timezone = attributes[:'timezone'] end end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/downtime_update_request.rb b/lib/datadog_api_client/v2/models/downtime_update_request.rb index d84355f860bc..c0c7d88a1e40 100644 --- a/lib/datadog_api_client/v2/models/downtime_update_request.rb +++ b/lib/datadog_api_client/v2/models/downtime_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb b/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb index 9f6300af9a15..df504a51c8ca 100644 --- a/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb @@ -143,6 +143,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/downtime_update_request_data.rb b/lib/datadog_api_client/v2/models/downtime_update_request_data.rb index 355e22b0465a..8ffba0e94704 100644 --- a/lib/datadog_api_client/v2/models/downtime_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/downtime_update_request_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/event.rb b/lib/datadog_api_client/v2/models/event.rb index aa00c05b47b1..453fc4cdfeb1 100644 --- a/lib/datadog_api_client/v2/models/event.rb +++ b/lib/datadog_api_client/v2/models/event.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/event_attributes.rb b/lib/datadog_api_client/v2/models/event_attributes.rb index 2e8bb0f0f561..235cdb2f071e 100644 --- a/lib/datadog_api_client/v2/models/event_attributes.rb +++ b/lib/datadog_api_client/v2/models/event_attributes.rb @@ -248,6 +248,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/event_response.rb b/lib/datadog_api_client/v2/models/event_response.rb index 9c76a9df684f..6cbca2594979 100644 --- a/lib/datadog_api_client/v2/models/event_response.rb +++ b/lib/datadog_api_client/v2/models/event_response.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/event_response_attributes.rb b/lib/datadog_api_client/v2/models/event_response_attributes.rb index 5cef8ef376f1..3d6d4bae4b11 100644 --- a/lib/datadog_api_client/v2/models/event_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/event_response_attributes.rb @@ -94,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_compute.rb b/lib/datadog_api_client/v2/models/events_compute.rb index b2bbe669a2d3..353cb789e540 100644 --- a/lib/datadog_api_client/v2/models/events_compute.rb +++ b/lib/datadog_api_client/v2/models/events_compute.rb @@ -101,6 +101,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_group_by.rb b/lib/datadog_api_client/v2/models/events_group_by.rb index da15b0e8b5cf..78cc2b35c103 100644 --- a/lib/datadog_api_client/v2/models/events_group_by.rb +++ b/lib/datadog_api_client/v2/models/events_group_by.rb @@ -113,6 +113,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_group_by_sort.rb b/lib/datadog_api_client/v2/models/events_group_by_sort.rb index 33674f2cf6be..b06ef9885a5e 100644 --- a/lib/datadog_api_client/v2/models/events_group_by_sort.rb +++ b/lib/datadog_api_client/v2/models/events_group_by_sort.rb @@ -110,6 +110,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_list_request.rb b/lib/datadog_api_client/v2/models/events_list_request.rb index c31ffa8f227e..502ce7decb83 100644 --- a/lib/datadog_api_client/v2/models/events_list_request.rb +++ b/lib/datadog_api_client/v2/models/events_list_request.rb @@ -93,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_list_response.rb b/lib/datadog_api_client/v2/models/events_list_response.rb index 040f3ff47b69..1b224cfb510c 100644 --- a/lib/datadog_api_client/v2/models/events_list_response.rb +++ b/lib/datadog_api_client/v2/models/events_list_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_list_response_links.rb b/lib/datadog_api_client/v2/models/events_list_response_links.rb index a021603b32d0..13ff294fabfb 100644 --- a/lib/datadog_api_client/v2/models/events_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/events_list_response_links.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_query_filter.rb b/lib/datadog_api_client/v2/models/events_query_filter.rb index e8b9e4d806ac..46706821726a 100644 --- a/lib/datadog_api_client/v2/models/events_query_filter.rb +++ b/lib/datadog_api_client/v2/models/events_query_filter.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_query_options.rb b/lib/datadog_api_client/v2/models/events_query_options.rb index e5d3f1726389..d85720ab184f 100644 --- a/lib/datadog_api_client/v2/models/events_query_options.rb +++ b/lib/datadog_api_client/v2/models/events_query_options.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_request_page.rb b/lib/datadog_api_client/v2/models/events_request_page.rb index 4349dcdd5f9b..1b6f5ad84b39 100644 --- a/lib/datadog_api_client/v2/models/events_request_page.rb +++ b/lib/datadog_api_client/v2/models/events_request_page.rb @@ -92,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_response_metadata.rb b/lib/datadog_api_client/v2/models/events_response_metadata.rb index a41e08171692..4c007ca0ef8e 100644 --- a/lib/datadog_api_client/v2/models/events_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/events_response_metadata.rb @@ -104,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_response_metadata_page.rb b/lib/datadog_api_client/v2/models/events_response_metadata_page.rb index b70a9d9f2b10..04df9801e6ab 100644 --- a/lib/datadog_api_client/v2/models/events_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/events_response_metadata_page.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_scalar_query.rb b/lib/datadog_api_client/v2/models/events_scalar_query.rb index 8e60159420b6..2888702dd55b 100644 --- a/lib/datadog_api_client/v2/models/events_scalar_query.rb +++ b/lib/datadog_api_client/v2/models/events_scalar_query.rb @@ -143,6 +143,26 @@ def data_source=(data_source) @data_source = data_source end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_search.rb b/lib/datadog_api_client/v2/models/events_search.rb index b24a25ccb44b..f1fbaa97ea28 100644 --- a/lib/datadog_api_client/v2/models/events_search.rb +++ b/lib/datadog_api_client/v2/models/events_search.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_timeseries_query.rb b/lib/datadog_api_client/v2/models/events_timeseries_query.rb index cc7ee20a6863..170e84f6ac74 100644 --- a/lib/datadog_api_client/v2/models/events_timeseries_query.rb +++ b/lib/datadog_api_client/v2/models/events_timeseries_query.rb @@ -143,6 +143,26 @@ def data_source=(data_source) @data_source = data_source end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/events_warning.rb b/lib/datadog_api_client/v2/models/events_warning.rb index e83821ad6a00..3a4f81864029 100644 --- a/lib/datadog_api_client/v2/models/events_warning.rb +++ b/lib/datadog_api_client/v2/models/events_warning.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb b/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb index 3a3a93ffc30f..6b694ee2b605 100644 --- a/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb @@ -94,6 +94,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_create_request.rb b/lib/datadog_api_client/v2/models/fastly_account_create_request.rb index 98c6154ab3df..59385202ec09 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb index 637a26ec67e7..27f9da67abeb 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb @@ -114,6 +114,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb b/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb index e5f6d4c21cfc..8edce0b13053 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_response.rb b/lib/datadog_api_client/v2/models/fastly_account_response.rb index 5fe6d0edd206..ebc6d0bb8866 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_response_data.rb b/lib/datadog_api_client/v2/models/fastly_account_response_data.rb index c008de392dff..60e33cb8cca7 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_response_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_update_request.rb b/lib/datadog_api_client/v2/models/fastly_account_update_request.rb index 8f5ff98fc54f..c6ec1a5b9682 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb index 51b71dd5354c..feb7122ef2f6 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb b/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb index e7ae4d25eebc..2f29ab825a33 100644 --- a/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_accounts_response.rb b/lib/datadog_api_client/v2/models/fastly_accounts_response.rb index 33fe4f0f321a..fb6021b2aede 100644 --- a/lib/datadog_api_client/v2/models/fastly_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_accounts_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service.rb b/lib/datadog_api_client/v2/models/fastly_service.rb index 8cea2018056f..7fccc9c232dc 100644 --- a/lib/datadog_api_client/v2/models/fastly_service.rb +++ b/lib/datadog_api_client/v2/models/fastly_service.rb @@ -94,6 +94,26 @@ def id=(id) @id = id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service_attributes.rb b/lib/datadog_api_client/v2/models/fastly_service_attributes.rb index b83c9ec7209b..187e61437af3 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_attributes.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_attributes.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service_data.rb b/lib/datadog_api_client/v2/models/fastly_service_data.rb index 0348c1c0e4bb..ea5f931d7748 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_data.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_data.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service_request.rb b/lib/datadog_api_client/v2/models/fastly_service_request.rb index 8ed114561393..fe41a367b87c 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_request.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_service_response.rb b/lib/datadog_api_client/v2/models/fastly_service_response.rb index 58f92ca392fc..d5b8be80e55e 100644 --- a/lib/datadog_api_client/v2/models/fastly_service_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_service_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/fastly_services_response.rb b/lib/datadog_api_client/v2/models/fastly_services_response.rb index 3d5abfdf145e..4d01ad2f61b8 100644 --- a/lib/datadog_api_client/v2/models/fastly_services_response.rb +++ b/lib/datadog_api_client/v2/models/fastly_services_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/finding.rb b/lib/datadog_api_client/v2/models/finding.rb index 0740b8851f93..77a6175518d5 100644 --- a/lib/datadog_api_client/v2/models/finding.rb +++ b/lib/datadog_api_client/v2/models/finding.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/finding_attributes.rb b/lib/datadog_api_client/v2/models/finding_attributes.rb index 7da17f76558d..6b3e38fa137f 100644 --- a/lib/datadog_api_client/v2/models/finding_attributes.rb +++ b/lib/datadog_api_client/v2/models/finding_attributes.rb @@ -168,6 +168,26 @@ def resource_discovery_date=(resource_discovery_date) @resource_discovery_date = resource_discovery_date end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/finding_mute.rb b/lib/datadog_api_client/v2/models/finding_mute.rb index ce99eefcd1f9..6bfaf7c4376d 100644 --- a/lib/datadog_api_client/v2/models/finding_mute.rb +++ b/lib/datadog_api_client/v2/models/finding_mute.rb @@ -105,22 +105,6 @@ def initialize(attributes = {}) self.uuid = attributes[:'uuid'] end end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/finding_rule.rb b/lib/datadog_api_client/v2/models/finding_rule.rb index 82a0b093b487..9b615dd03d7c 100644 --- a/lib/datadog_api_client/v2/models/finding_rule.rb +++ b/lib/datadog_api_client/v2/models/finding_rule.rb @@ -69,22 +69,6 @@ def initialize(attributes = {}) self.name = attributes[:'name'] end end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/formula_limit.rb b/lib/datadog_api_client/v2/models/formula_limit.rb index 88837e7a0422..314b7fc4fda5 100644 --- a/lib/datadog_api_client/v2/models/formula_limit.rb +++ b/lib/datadog_api_client/v2/models/formula_limit.rb @@ -93,6 +93,26 @@ def count=(count) @count = count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/full_api_key.rb b/lib/datadog_api_client/v2/models/full_api_key.rb index c220bf6d941e..cd25da51b863 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb index a69dc93fd0d8..c038b2f464d9 100644 --- a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb @@ -141,6 +141,26 @@ def last4=(last4) @last4 = last4 end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/full_application_key.rb b/lib/datadog_api_client/v2/models/full_application_key.rb index 1cbf3ef127fe..84e4615338f9 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/full_application_key_attributes.rb b/lib/datadog_api_client/v2/models/full_application_key_attributes.rb index 6f37f7eee7f5..80ddb5fd6f7d 100644 --- a/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/full_application_key_attributes.rb @@ -133,6 +133,26 @@ def last4=(last4) @last4 = last4 end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb b/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb index fec3dd56be6b..424257e0b1f0 100644 --- a/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb +++ b/lib/datadog_api_client/v2/models/gcp_service_account_meta.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb b/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb index c317e9235407..8bca046b99bc 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_delegate_account.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb index 1879065807c2..899a40e10dd4 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb index 71e9a6524dcc..4aec31aaf0a0 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_delegate_account_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account.rb index 79a1a41a104e..16e73902bbf5 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb index e08ecf7a904d..09ff55cf1b27 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb @@ -135,6 +135,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb index 169d9a821bdf..1f33b6c865b4 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_create_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb index 0eb3b9ea9fa8..614c11d47405 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb index aae61e0deaa1..cc47a748b5a3 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb index b4be40de3390..0de8c16e0819 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb index 9001622dcc9b..0738a0111d4f 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_account_update_request_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb b/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb index 075f27d5eadc..ae5771f5ea2e 100644 --- a/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/gcpsts_service_accounts_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_device_attributes.rb b/lib/datadog_api_client/v2/models/get_device_attributes.rb index a4e5dcc4321f..a8c273fdc6df 100644 --- a/lib/datadog_api_client/v2/models/get_device_attributes.rb +++ b/lib/datadog_api_client/v2/models/get_device_attributes.rb @@ -229,6 +229,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_device_data.rb b/lib/datadog_api_client/v2/models/get_device_data.rb index 4b5300aab99e..ad2e21a75292 100644 --- a/lib/datadog_api_client/v2/models/get_device_data.rb +++ b/lib/datadog_api_client/v2/models/get_device_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_device_response.rb b/lib/datadog_api_client/v2/models/get_device_response.rb index 49cfdc04ffde..aaf23bc83808 100644 --- a/lib/datadog_api_client/v2/models/get_device_response.rb +++ b/lib/datadog_api_client/v2/models/get_device_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_finding_response.rb b/lib/datadog_api_client/v2/models/get_finding_response.rb index cee0b7223b23..8b562597e9fd 100644 --- a/lib/datadog_api_client/v2/models/get_finding_response.rb +++ b/lib/datadog_api_client/v2/models/get_finding_response.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_interfaces_data.rb b/lib/datadog_api_client/v2/models/get_interfaces_data.rb index 4f9e809efdd6..a26bab77a5ab 100644 --- a/lib/datadog_api_client/v2/models/get_interfaces_data.rb +++ b/lib/datadog_api_client/v2/models/get_interfaces_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/get_interfaces_response.rb b/lib/datadog_api_client/v2/models/get_interfaces_response.rb index fbda342cf006..da84a5806274 100644 --- a/lib/datadog_api_client/v2/models/get_interfaces_response.rb +++ b/lib/datadog_api_client/v2/models/get_interfaces_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/group_scalar_column.rb b/lib/datadog_api_client/v2/models/group_scalar_column.rb index a01a21357c40..3624e9eeb44b 100644 --- a/lib/datadog_api_client/v2/models/group_scalar_column.rb +++ b/lib/datadog_api_client/v2/models/group_scalar_column.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage.rb b/lib/datadog_api_client/v2/models/hourly_usage.rb index d688dd9be1af..71e7fcbfffce 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb b/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb index 1a4685eb3f72..9b49bc0c1c85 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb @@ -130,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb b/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb index 484887fbfcb4..d3e5dc0f596c 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb @@ -82,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb b/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb index d5b7d1f743b7..e602e13e6e1c 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb b/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb index b73c0c528dc7..883089974a2d 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb @@ -73,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/hourly_usage_response.rb b/lib/datadog_api_client/v2/models/hourly_usage_response.rb index b4639caf7fba..84dbc1412fb5 100644 --- a/lib/datadog_api_client/v2/models/hourly_usage_response.rb +++ b/lib/datadog_api_client/v2/models/hourly_usage_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/http_log_error.rb b/lib/datadog_api_client/v2/models/http_log_error.rb index c0ddce229941..b165533579fd 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/http_log_errors.rb b/lib/datadog_api_client/v2/models/http_log_errors.rb index 880303b1565e..a47d709b0ac8 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/http_log_item.rb b/lib/datadog_api_client/v2/models/http_log_item.rb index 32a92c27366e..38e4c04a9612 100644 --- a/lib/datadog_api_client/v2/models/http_log_item.rb +++ b/lib/datadog_api_client/v2/models/http_log_item.rb @@ -125,6 +125,26 @@ def message=(message) @message = message end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/httpci_app_error.rb b/lib/datadog_api_client/v2/models/httpci_app_error.rb index 8558179f4fb3..d5ee23375685 100644 --- a/lib/datadog_api_client/v2/models/httpci_app_error.rb +++ b/lib/datadog_api_client/v2/models/httpci_app_error.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/httpci_app_errors.rb b/lib/datadog_api_client/v2/models/httpci_app_errors.rb index b67ee6358e5b..db313b56ffde 100644 --- a/lib/datadog_api_client/v2/models/httpci_app_errors.rb +++ b/lib/datadog_api_client/v2/models/httpci_app_errors.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb b/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb index e8136103cf62..2766275a9a88 100644 --- a/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb +++ b/lib/datadog_api_client/v2/models/idp_metadata_form_data.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_data.rb b/lib/datadog_api_client/v2/models/incident_attachment_data.rb index 054315e4225f..771dbae9acea 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_data.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_data.rb @@ -143,6 +143,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb index 7585d0016f69..b69df29b0d86 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb @@ -112,6 +112,26 @@ def attachment_type=(attachment_type) @attachment_type = attachment_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb index ad82450ecedd..e3acd333f349 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb @@ -103,6 +103,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb b/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb index 94afb6a9a1db..a1f980470c0b 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb @@ -103,6 +103,26 @@ def attachment_type=(attachment_type) @attachment_type = attachment_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb b/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb index 21f275e97650..7a6bb9614987 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb b/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb index 983d87c3d4c9..1b77406e790e 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb b/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb index 4e79d42219f2..5311d24a8578 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb @@ -88,6 +88,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb b/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb index 9d6f49f6a48f..406fdad425af 100644 --- a/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +++ b/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb @@ -97,6 +97,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb b/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb index 967899925842..979d5b96ac05 100644 --- a/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +++ b/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb @@ -103,6 +103,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_attachments_response.rb b/lib/datadog_api_client/v2/models/incident_attachments_response.rb index ffe2a59f0671..10998f76eeda 100644 --- a/lib/datadog_api_client/v2/models/incident_attachments_response.rb +++ b/lib/datadog_api_client/v2/models/incident_attachments_response.rb @@ -96,6 +96,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_create_attributes.rb index bb3cfbe9e137..a71b9c580151 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -143,6 +143,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_create_data.rb b/lib/datadog_api_client/v2/models/incident_create_data.rb index 5be5f1b48b8c..b87d3daa9934 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_create_relationships.rb b/lib/datadog_api_client/v2/models/incident_create_relationships.rb index 590bc86c8db3..4c85d45026f0 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -73,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_create_request.rb b/lib/datadog_api_client/v2/models/incident_create_request.rb index afd69cd1e039..412402ae85af 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb index e56cd84c360f..328eb8fe7c35 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb @@ -84,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb index 7eab371dd540..c1229870cbbd 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb @@ -82,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb index a271d9defdcb..ed48d8fb95b4 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb @@ -157,6 +157,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb index 3a7b5337a207..c7b308bd7838 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb index ce412b9c937e..a1d9837bacf3 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb index dc827b63e926..b1c8ee6647f7 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb @@ -105,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb index 21fdfcf4a50c..0ded517d8eed 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb index 48cd1c9246c4..3275537cbdfb 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb index 81f53d70d97f..c139ab14c439 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb @@ -94,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb index f01c6744b087..dcdf2d5a8891 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_integration_relationships.rb b/lib/datadog_api_client/v2/models/incident_integration_relationships.rb index a8533a8aef65..fed14643480b 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb b/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb index b72e706bc09e..150c7d603b7f 100644 --- a/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb +++ b/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_notification_handle.rb b/lib/datadog_api_client/v2/models/incident_notification_handle.rb index 23b69053ce1d..f0cffab69227 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index df6ef86c8356..7ebcf26be734 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -94,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_response_attributes.rb index f701d69196f3..d4d9ceb9f3af 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -303,6 +303,26 @@ def title=(title) @title = title end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_data.rb b/lib/datadog_api_client/v2/models/incident_response_data.rb index 10f249298a52..23af292694fc 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_meta.rb b/lib/datadog_api_client/v2/models/incident_response_meta.rb index 91477ee8b0d5..72dd4566e8f3 100644 --- a/lib/datadog_api_client/v2/models/incident_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb index 2a468658a195..8b7e724c629e 100644 --- a/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_response_meta_pagination.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_response_relationships.rb b/lib/datadog_api_client/v2/models/incident_response_relationships.rb index 0b9cbf30697b..7d4d920a5af5 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -136,6 +136,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response.rb b/lib/datadog_api_client/v2/models/incident_search_response.rb index db0e774555a7..efc1ec9b2fca 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response.rb @@ -103,6 +103,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb index 27327ca2f20a..382ecf1f92f7 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_attributes.rb @@ -129,6 +129,26 @@ def total=(total) @total = total end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_data.rb index 6a7211bc8ea6..05c78f03dbb7 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb index d98ff48e5c25..73f1711b52c0 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_facets_data.rb @@ -177,6 +177,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb index 8608da941949..2d5c4c327932 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_field_facet_data.rb @@ -92,6 +92,26 @@ def count=(count) @count = count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb index d2f04ade67fc..033ecd274814 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_incidents_data.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_meta.rb b/lib/datadog_api_client/v2/models/incident_search_response_meta.rb index d76fdd7f0d36..b6be7dd00f93 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb index 04ddc313329b..b6dc9dec7376 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data.rb @@ -103,6 +103,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb index 5b2fc6aa1c03..cbb63e344266 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_numeric_facet_data_aggregates.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb index 4b8963c29698..88b2be4562e4 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_property_field_facet_data.rb @@ -114,6 +114,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb b/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb index 2ddc3d49911e..4a99ee5856c0 100644 --- a/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb +++ b/lib/datadog_api_client/v2/models/incident_search_response_user_facet_data.rb @@ -119,6 +119,26 @@ def count=(count) @count = count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb index e26b9b83c949..f99c18020114 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb @@ -83,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_create_data.rb b/lib/datadog_api_client/v2/models/incident_service_create_data.rb index cf2b9af8a06f..f16977fc1be3 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_data.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_create_request.rb b/lib/datadog_api_client/v2/models/incident_service_create_request.rb index fa2c05287982..b7b063e01bd0 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_relationships.rb b/lib/datadog_api_client/v2/models/incident_service_relationships.rb index 4426619f151a..f4b2e60e9b43 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_response.rb b/lib/datadog_api_client/v2/models/incident_service_response.rb index 500c37458a82..03645c4306b1 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -94,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb index 953b9a8e7f40..a9779cce538c 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_response_data.rb b/lib/datadog_api_client/v2/models/incident_service_response_data.rb index 80d3763fabde..5d525d32b7c3 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response_data.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb index 58c7eaf10d2d..868d2a468c09 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb @@ -83,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_update_data.rb b/lib/datadog_api_client/v2/models/incident_service_update_data.rb index 5b047abd6a11..87c5a3d70eba 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_data.rb @@ -110,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_service_update_request.rb b/lib/datadog_api_client/v2/models/incident_service_update_request.rb index a4c60708448c..7923f4a46823 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_services_response.rb b/lib/datadog_api_client/v2/models/incident_services_response.rb index ba757fd9c446..2c8f3b530a08 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -105,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb index 5bb8e8d4276a..ceedc7d328a6 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb @@ -83,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_create_data.rb b/lib/datadog_api_client/v2/models/incident_team_create_data.rb index c87c36e127ed..c3b812e7e206 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_data.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_create_request.rb b/lib/datadog_api_client/v2/models/incident_team_create_request.rb index 7e44322629ac..535d7a64f437 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_relationships.rb b/lib/datadog_api_client/v2/models/incident_team_relationships.rb index d9b3eec371ec..b94c2da84db3 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_response.rb b/lib/datadog_api_client/v2/models/incident_team_response.rb index cac7d8348893..58b9b81f1507 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -94,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb index d639ff6fc091..606514e7f361 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_response_data.rb b/lib/datadog_api_client/v2/models/incident_team_response_data.rb index 5a4c8ac1fc9c..1c015649bfde 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response_data.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb index d44a6a8c2609..268926f7b094 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb @@ -83,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_update_data.rb b/lib/datadog_api_client/v2/models/incident_team_update_data.rb index ae58374ac538..435c5a3a3a2b 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_data.rb @@ -110,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_team_update_request.rb b/lib/datadog_api_client/v2/models/incident_team_update_request.rb index 569bd568caf4..00ef374c6d76 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_teams_response.rb b/lib/datadog_api_client/v2/models/incident_teams_response.rb index e4a5632e8566..13c027ffcb96 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -105,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb index d37bb8e30ceb..a1af65674a46 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb @@ -112,6 +112,26 @@ def content=(content) @content = content end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb index 89ecda9b063b..0ea3f4045133 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb b/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb index 6256766b481c..abbaab0f9d9b 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb @@ -143,6 +143,26 @@ def source=(source) @source = source end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_attributes.rb b/lib/datadog_api_client/v2/models/incident_todo_attributes.rb index 28b09ee04ee1..e822c67892b8 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_attributes.rb @@ -159,6 +159,26 @@ def content=(content) @content = content end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_create_data.rb b/lib/datadog_api_client/v2/models/incident_todo_create_data.rb index cbf1bc28ba51..31883a848c28 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_create_request.rb b/lib/datadog_api_client/v2/models/incident_todo_create_request.rb index 75676318af37..b1c36148ab77 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_list_response.rb b/lib/datadog_api_client/v2/models/incident_todo_list_response.rb index ae1b4089b686..e7746e4baf3e 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_list_response.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_list_response.rb @@ -105,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb b/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb index 9ed715b7c105..16697eb7ac7b 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb b/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb index 47148686ac1e..01844afcd706 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_relationships.rb b/lib/datadog_api_client/v2/models/incident_todo_relationships.rb index 8071b3a8ae99..cd84592387d1 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_response.rb b/lib/datadog_api_client/v2/models/incident_todo_response.rb index d66231790f16..d65091af9a8b 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_response.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_response.rb @@ -94,6 +94,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_todo_response_data.rb b/lib/datadog_api_client/v2/models/incident_todo_response_data.rb index 1e315617b9bb..38b94f5b9d73 100644 --- a/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_todo_response_data.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_update_attributes.rb index 283993ca448c..512ae5d94e1d 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -140,6 +140,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_update_data.rb b/lib/datadog_api_client/v2/models/incident_update_data.rb index dfe1fdb7f274..c87b3da847d2 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_update_relationships.rb b/lib/datadog_api_client/v2/models/incident_update_relationships.rb index 0140faf4e99a..e787b83ce937 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -91,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incident_update_request.rb b/lib/datadog_api_client/v2/models/incident_update_request.rb index d0d2a3c80f3a..e8ff7c3c89d8 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index 8d34cfb63536..9e7d5fe83755 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -105,6 +105,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/intake_payload_accepted.rb b/lib/datadog_api_client/v2/models/intake_payload_accepted.rb index 6964c48f4c59..62f964664f1f 100644 --- a/lib/datadog_api_client/v2/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v2/models/intake_payload_accepted.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/interface_attributes.rb b/lib/datadog_api_client/v2/models/interface_attributes.rb index 5461ddf9a2e9..fab7b299e0f4 100644 --- a/lib/datadog_api_client/v2/models/interface_attributes.rb +++ b/lib/datadog_api_client/v2/models/interface_attributes.rb @@ -110,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb b/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb index 7cf3502aac73..0c3aa6f29c16 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_data.rb b/lib/datadog_api_client/v2/models/ip_allowlist_data.rb index d381b4314f52..a80a7924bc07 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_data.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_data.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb b/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb index 8c3a1dc6e625..d21f92889ed6 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb b/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb index bf972d372cd3..e9b02fe99151 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb b/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb index d2a9d6dcf1ac..e4d2e66ff17d 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_response.rb b/lib/datadog_api_client/v2/models/ip_allowlist_response.rb index 62545e159217..7de1c61d5896 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_response.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb b/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb index 1f97da214d9e..a608f7090f05 100644 --- a/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb +++ b/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jira_integration_metadata.rb b/lib/datadog_api_client/v2/models/jira_integration_metadata.rb index be68fcda254f..88e802588c37 100644 --- a/lib/datadog_api_client/v2/models/jira_integration_metadata.rb +++ b/lib/datadog_api_client/v2/models/jira_integration_metadata.rb @@ -85,6 +85,26 @@ def issues=(issues) @issues = issues end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb b/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb index 324377db9d06..d5510a211185 100644 --- a/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb +++ b/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb @@ -130,6 +130,26 @@ def project_key=(project_key) @project_key = project_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jira_issue.rb b/lib/datadog_api_client/v2/models/jira_issue.rb index a47a93a07565..5e0cc247580c 100644 --- a/lib/datadog_api_client/v2/models/jira_issue.rb +++ b/lib/datadog_api_client/v2/models/jira_issue.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jira_issue_result.rb b/lib/datadog_api_client/v2/models/jira_issue_result.rb index aa275c5d12e0..839def28f592 100644 --- a/lib/datadog_api_client/v2/models/jira_issue_result.rb +++ b/lib/datadog_api_client/v2/models/jira_issue_result.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jsonapi_error_item.rb b/lib/datadog_api_client/v2/models/jsonapi_error_item.rb index 1675773dcb4c..20986088d5c3 100644 --- a/lib/datadog_api_client/v2/models/jsonapi_error_item.rb +++ b/lib/datadog_api_client/v2/models/jsonapi_error_item.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/jsonapi_error_response.rb b/lib/datadog_api_client/v2/models/jsonapi_error_response.rb index fdf1759e4aa0..6e9651aa97b0 100644 --- a/lib/datadog_api_client/v2/models/jsonapi_error_response.rb +++ b/lib/datadog_api_client/v2/models/jsonapi_error_response.rb @@ -85,6 +85,26 @@ def errors=(errors) @errors = errors end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/leaked_key.rb b/lib/datadog_api_client/v2/models/leaked_key.rb index b2e5447d6fe7..9461782c78a1 100644 --- a/lib/datadog_api_client/v2/models/leaked_key.rb +++ b/lib/datadog_api_client/v2/models/leaked_key.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/leaked_key_attributes.rb b/lib/datadog_api_client/v2/models/leaked_key_attributes.rb index 3c981bfb61d1..4cb28da03ac5 100644 --- a/lib/datadog_api_client/v2/models/leaked_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/leaked_key_attributes.rb @@ -92,6 +92,26 @@ def date=(date) @date = date end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response.rb b/lib/datadog_api_client/v2/models/list_apis_response.rb index 8148868df2cd..b321e777fbce 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response_data.rb b/lib/datadog_api_client/v2/models/list_apis_response_data.rb index f82807f76d03..a8d3d3f2d92a 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_data.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb b/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb index 983a10426a0a..24499d2a8c56 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response_meta.rb b/lib/datadog_api_client/v2/models/list_apis_response_meta.rb index 610d1855e545..9e4e2ad4f660 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_meta.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb index 8da2e56a7b46..6181153e921e 100644 --- a/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_application_keys_response.rb b/lib/datadog_api_client/v2/models/list_application_keys_response.rb index 24a5557e497d..77acf50ece87 100644 --- a/lib/datadog_api_client/v2/models/list_application_keys_response.rb +++ b/lib/datadog_api_client/v2/models/list_application_keys_response.rb @@ -87,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_devices_response.rb b/lib/datadog_api_client/v2/models/list_devices_response.rb index 08235e5a7207..23bf93313ea3 100644 --- a/lib/datadog_api_client/v2/models/list_devices_response.rb +++ b/lib/datadog_api_client/v2/models/list_devices_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb b/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb index c6d4d6a1b3fd..fd0e2a20a7e4 100644 --- a/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb b/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb index 7c4e7621d897..5cf903fe637b 100644 --- a/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_downtimes_response.rb b/lib/datadog_api_client/v2/models/list_downtimes_response.rb index 5cdb5161ec20..4349eaa91620 100644 --- a/lib/datadog_api_client/v2/models/list_downtimes_response.rb +++ b/lib/datadog_api_client/v2/models/list_downtimes_response.rb @@ -87,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_findings_meta.rb b/lib/datadog_api_client/v2/models/list_findings_meta.rb index e35f4fbecffe..661daf438d62 100644 --- a/lib/datadog_api_client/v2/models/list_findings_meta.rb +++ b/lib/datadog_api_client/v2/models/list_findings_meta.rb @@ -87,22 +87,6 @@ def snapshot_timestamp=(snapshot_timestamp) end @snapshot_timestamp = snapshot_timestamp end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/list_findings_page.rb b/lib/datadog_api_client/v2/models/list_findings_page.rb index 3211670bec30..a3bb6e436273 100644 --- a/lib/datadog_api_client/v2/models/list_findings_page.rb +++ b/lib/datadog_api_client/v2/models/list_findings_page.rb @@ -69,22 +69,6 @@ def initialize(attributes = {}) self.total_filtered_count = attributes[:'total_filtered_count'] end end - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared diff --git a/lib/datadog_api_client/v2/models/list_findings_response.rb b/lib/datadog_api_client/v2/models/list_findings_response.rb index 0a76abc9943c..d2831565e361 100644 --- a/lib/datadog_api_client/v2/models/list_findings_response.rb +++ b/lib/datadog_api_client/v2/models/list_findings_response.rb @@ -105,6 +105,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_powerpacks_response.rb b/lib/datadog_api_client/v2/models/list_powerpacks_response.rb index 6a12142d51e9..0a7b578017eb 100644 --- a/lib/datadog_api_client/v2/models/list_powerpacks_response.rb +++ b/lib/datadog_api_client/v2/models/list_powerpacks_response.rb @@ -96,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_rules_response.rb b/lib/datadog_api_client/v2/models/list_rules_response.rb index dfaacf989867..444146cea09c 100644 --- a/lib/datadog_api_client/v2/models/list_rules_response.rb +++ b/lib/datadog_api_client/v2/models/list_rules_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb b/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb index a35222c90233..3246b75c6ae0 100644 --- a/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb +++ b/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_rules_response_links.rb b/lib/datadog_api_client/v2/models/list_rules_response_links.rb index ef05719f3ec3..0da42eb2fc50 100644 --- a/lib/datadog_api_client/v2/models/list_rules_response_links.rb +++ b/lib/datadog_api_client/v2/models/list_rules_response_links.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_tags_response.rb b/lib/datadog_api_client/v2/models/list_tags_response.rb index 40c70877e42c..165b8c929bb1 100644 --- a/lib/datadog_api_client/v2/models/list_tags_response.rb +++ b/lib/datadog_api_client/v2/models/list_tags_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_tags_response_data.rb b/lib/datadog_api_client/v2/models/list_tags_response_data.rb index 78f4d3eb3242..5f51b443b2b4 100644 --- a/lib/datadog_api_client/v2/models/list_tags_response_data.rb +++ b/lib/datadog_api_client/v2/models/list_tags_response_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb b/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb index 3be2bd600c28..2b8ff8d8999f 100644 --- a/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index 2c42f04d42e5..3e7741e47a26 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index e04e64a672f0..0ead271f7344 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -125,6 +125,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb index d6f9baf93974..ed3f673acc30 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb index f075a3a795fa..ac6a355ab90d 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb index 685d659a8aa1..fbda2b8ea95a 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -106,6 +106,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb b/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb index 75b138823549..466c5e7fe6dc 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb index 9a412424ae4c..f3f473842866 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb index cb1b6be83b03..c134501e76bf 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb index cd99665833eb..28d993d807e2 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index dce3472f7ab6..e90c25eb8395 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb index b3683b0ff284..7f926792fa8a 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -160,6 +160,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request.rb index 0c0834f8efcb..7593255530dc 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb index f29728501e9c..4bc705f1fbc0 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb @@ -161,6 +161,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb index f6c364a95b0d..20f3a0d27a9b 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb @@ -92,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_definition.rb index f6161e88c2b3..7d6711460c78 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb index fccd03a84203..ef38e7dfe4ea 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb @@ -161,6 +161,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb index cef9df2f4f28..4703ef0fe9fa 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb @@ -132,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb index 5564b325e9c7..3da43b725834 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb @@ -132,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb index 1a2099b9f2c2..7aaa1c2229d5 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb @@ -103,6 +103,26 @@ def tenant_id=(tenant_id) @tenant_id = tenant_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb index 7d09157dd39f..bb570892796c 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb @@ -92,6 +92,26 @@ def client_email=(client_email) @client_email = client_email end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb index d8a9c0cf401f..dc805933788d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb @@ -103,6 +103,26 @@ def role_name=(role_name) @role_name = role_name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_order.rb b/lib/datadog_api_client/v2/models/logs_archive_order.rb index 334ac7a8e3ec..2eb86fe1382d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb index a992dda80355..d6d8ef6c88be 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb @@ -86,6 +86,26 @@ def archive_ids=(archive_ids) @archive_ids = archive_ids end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb index 4e4448c6f40b..e29f4edce297 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index 2ed3ab2354eb..3a317a1384b5 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 5b09267f7902..ea4413635cc9 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -111,6 +111,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_group_by.rb b/lib/datadog_api_client/v2/models/logs_group_by.rb index 5fc1b8fbee66..47532cf0ee8c 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -130,6 +130,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb b/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb index 165c364bd3c8..42f10dadb9f2 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb @@ -126,6 +126,26 @@ def min=(min) @min = min end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_list_request.rb b/lib/datadog_api_client/v2/models/logs_list_request.rb index d3070a83990a..d4d25125a353 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -93,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_list_request_page.rb b/lib/datadog_api_client/v2/models/logs_list_request_page.rb index 33ebb40a060a..f96c6646ec54 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request_page.rb @@ -92,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_list_response.rb b/lib/datadog_api_client/v2/models/logs_list_response.rb index 75d4cfd99162..396fde6e6065 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_list_response_links.rb b/lib/datadog_api_client/v2/models/logs_list_response_links.rb index f50ad79236cf..89426a558899 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response_links.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_compute.rb index 77d29617ef77..b67c04bc25a5 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -102,6 +102,26 @@ def aggregation_type=(aggregation_type) @aggregation_type = aggregation_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb index 6012d33e4b5c..7068321a7eb8 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb @@ -103,6 +103,26 @@ def compute=(compute) @compute = compute end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_data.rb b/lib/datadog_api_client/v2/models/logs_metric_create_data.rb index 6e6e3c665c18..9e48db58c5df 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_request.rb b/lib/datadog_api_client/v2/models/logs_metric_create_request.rb index 8a2b8a9720f8..6fccdd1b530a 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_request.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_filter.rb b/lib/datadog_api_client/v2/models/logs_metric_filter.rb index 67688cb751fe..88c624061a68 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_group_by.rb b/lib/datadog_api_client/v2/models/logs_metric_group_by.rb index cafad7b07013..372e1963049d 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_group_by.rb @@ -92,6 +92,26 @@ def path=(path) @path = path end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response.rb b/lib/datadog_api_client/v2/models/logs_metric_response.rb index 82a588b966d2..f3b8450460a6 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb index 4e18da3b14ce..54c7fe792326 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb index 8424e5abf0c7..b43708c7cc2f 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb @@ -84,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_data.rb b/lib/datadog_api_client/v2/models/logs_metric_response_data.rb index d5ddb5bd7bea..d8d948183f7e 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb b/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb index 168fe895a2c8..74eeb71d1aea 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb b/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb index 9821255bf4e9..36480a12701f 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb index de408636af45..9f6c7df29c60 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb index 5df668c1b0d4..47042092173b 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_data.rb b/lib/datadog_api_client/v2/models/logs_metric_update_data.rb index 4d248898e5a3..8691f115a47c 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_request.rb b/lib/datadog_api_client/v2/models/logs_metric_update_request.rb index 0932b43e0942..2ec0ee5d18f6 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_request.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_metrics_response.rb b/lib/datadog_api_client/v2/models/logs_metrics_response.rb index 3cf54e85057c..7bb1f58fd83e 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_query_filter.rb b/lib/datadog_api_client/v2/models/logs_query_filter.rb index 320bfff997b9..206fe3982fe1 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -103,6 +103,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_query_options.rb b/lib/datadog_api_client/v2/models/logs_query_options.rb index cdce0b174c1a..31ea1a71e673 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_response_metadata.rb b/lib/datadog_api_client/v2/models/logs_response_metadata.rb index be2767a45b5d..47bddc2b7224 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -104,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb b/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb index 9efe66abccff..3eaf3a778d51 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index fa76bf720bf1..9293533c7f6f 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index a41644c9c1b2..2603080317c5 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_all_tags.rb b/lib/datadog_api_client/v2/models/metric_all_tags.rb index ef4637026c97..cea3b2611bbd 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb b/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb index 8a477cbe17d4..9e5f7824c115 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_all_tags_response.rb b/lib/datadog_api_client/v2/models/metric_all_tags_response.rb index ffcd0fd5be4e..b0bf6f70c583 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags_response.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb index d995b50165ea..ebbc04f67b82 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb index 8be19a1a7e69..77b445c39024 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb index 32bf4387786a..b95048faef74 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb index f62c21e5f218..e4f59668f390 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb index 6dfbd7c681f6..df0a5baa95d5 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb index d2893cb8674b..2860f78c97a9 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb index b76e62bb0889..59ceadff7d4b 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_response_data.rb b/lib/datadog_api_client/v2/models/metric_asset_response_data.rb index 088380dc179e..9f2e48a3e72b 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_response_data.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_response_data.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb index a58bab08c01e..cc98efa329d7 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb b/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb index 33279f8f3d3d..0f12bd4fc772 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb b/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb index 6d4c12df5d7d..088778500e4b 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_assets_response.rb b/lib/datadog_api_client/v2/models/metric_assets_response.rb index 909a309b98f1..197eee8c11e5 100644 --- a/lib/datadog_api_client/v2/models/metric_assets_response.rb +++ b/lib/datadog_api_client/v2/models/metric_assets_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb index 6323563734d2..065e3857a781 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb index 54d268bf662a..dd87cace3cd0 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb @@ -89,6 +89,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb index ead055567438..68fbdb5d9937 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb index 7faacf8472d3..06844b0f3f90 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb index f3cb712a876c..c57429754b3b 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_attributes.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb index 24f068e1f22a..727a0ffa138f 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb index b43ce74237f1..4d9d06d338f4 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_response.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb index ad010e89f5c3..be008570a176 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb @@ -113,6 +113,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb index e4381b6c1c8d..e5627a997666 100644 --- a/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb @@ -97,6 +97,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb index c8fed2834456..b504661b5398 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -103,6 +103,26 @@ def time=(time) @time = time end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb b/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb index df82a00f9df7..a3abcde1c3df 100644 --- a/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb b/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb index 34adb5a0633b..066e0f4fab80 100644 --- a/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb @@ -96,6 +96,26 @@ def popularity=(popularity) @popularity = popularity end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb index 843f88dc6652..7c2988a491e6 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb index 693bd1580d60..da1f3622cb6c 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_estimate.rb b/lib/datadog_api_client/v2/models/metric_estimate.rb index 199411c4268b..6fd4365cfb6a 100644 --- a/lib/datadog_api_client/v2/models/metric_estimate.rb +++ b/lib/datadog_api_client/v2/models/metric_estimate.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb b/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb index ee411935826e..1b014794beb0 100644 --- a/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_estimate_response.rb b/lib/datadog_api_client/v2/models/metric_estimate_response.rb index b44206ceca98..48a3b5cf0c79 100644 --- a/lib/datadog_api_client/v2/models/metric_estimate_response.rb +++ b/lib/datadog_api_client/v2/models/metric_estimate_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb index dc109dab7508..11441c2fad1d 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb index 49838e7568a4..5746d66c8d32 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_metadata.rb b/lib/datadog_api_client/v2/models/metric_metadata.rb index 6c351fd286c7..d441501f4745 100644 --- a/lib/datadog_api_client/v2/models/metric_metadata.rb +++ b/lib/datadog_api_client/v2/models/metric_metadata.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb index 904d9102821a..27af1af69127 100644 --- a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb index ba10bd1af968..cdc6c4c17668 100644 --- a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_origin.rb b/lib/datadog_api_client/v2/models/metric_origin.rb index d0b72ac9e1ce..74ed1facea51 100644 --- a/lib/datadog_api_client/v2/models/metric_origin.rb +++ b/lib/datadog_api_client/v2/models/metric_origin.rb @@ -123,6 +123,26 @@ def service=(service) @service = service end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_payload.rb b/lib/datadog_api_client/v2/models/metric_payload.rb index 83e359d173b6..9f726ab051aa 100644 --- a/lib/datadog_api_client/v2/models/metric_payload.rb +++ b/lib/datadog_api_client/v2/models/metric_payload.rb @@ -85,6 +85,26 @@ def series=(series) @series = series end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_point.rb b/lib/datadog_api_client/v2/models/metric_point.rb index da6cd844374a..28bf2d9de1d3 100644 --- a/lib/datadog_api_client/v2/models/metric_point.rb +++ b/lib/datadog_api_client/v2/models/metric_point.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_resource.rb b/lib/datadog_api_client/v2/models/metric_resource.rb index 015645b88d6d..7d2435bc0e76 100644 --- a/lib/datadog_api_client/v2/models/metric_resource.rb +++ b/lib/datadog_api_client/v2/models/metric_resource.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_series.rb b/lib/datadog_api_client/v2/models/metric_series.rb index e557bc94f2d0..3ac88a526c53 100644 --- a/lib/datadog_api_client/v2/models/metric_series.rb +++ b/lib/datadog_api_client/v2/models/metric_series.rb @@ -173,6 +173,26 @@ def points=(points) @points = points end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_slo_asset.rb b/lib/datadog_api_client/v2/models/metric_slo_asset.rb index 1aafbc331aaf..617c223ff578 100644 --- a/lib/datadog_api_client/v2/models/metric_slo_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_slo_asset.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb index 23ff44b6669e..54db2a0c41e1 100644 --- a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb +++ b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb index 31ff3d6b20df..98571d229250 100644 --- a/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb +++ b/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb b/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb index 822204567d19..bd0f9c27a944 100644 --- a/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb index ab4ae9b61f66..cff18367f3c8 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb index aa4fce31f2f7..59154b0d5973 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb @@ -141,6 +141,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb index e70aa9cf80b2..eee27d56415d 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb @@ -152,6 +152,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb index 2870b9cff110..2ffc94fff8e7 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb index 1bc7a6b593bc..aaae38173e18 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb index caabfdb39a2b..686b0b6701b8 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb index c4d8224167b6..09a40ecbce0f 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb @@ -114,6 +114,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb index e0f2f506ce45..08aacf00095d 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb index b5dff6d364a4..2068820e2ad7 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metric_volumes_response.rb b/lib/datadog_api_client/v2/models/metric_volumes_response.rb index da9859e67343..eaf03f10c449 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb index 756701d5e758..665a63af240e 100644 --- a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb +++ b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metrics_scalar_query.rb b/lib/datadog_api_client/v2/models/metrics_scalar_query.rb index a4b7a6df6959..c8b52d116a3e 100644 --- a/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +++ b/lib/datadog_api_client/v2/models/metrics_scalar_query.rb @@ -132,6 +132,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb b/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb index 78939c22e58e..0c2212647c03 100644 --- a/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb +++ b/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb @@ -112,6 +112,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb index 8431c517fe09..b908fdb03cea 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb @@ -103,6 +103,26 @@ def policy_type=(policy_type) @policy_type = policy_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb index 4bb46d8f5fa2..f16bcdfef208 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb @@ -103,6 +103,26 @@ def policy_type=(policy_type) @policy_type = policy_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb index 8abaa427aa85..4d44fef542e2 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb index b0bb8d385fb6..a2cdeaf5dedc 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb index 6a6e49bd8029..b876d4e038f9 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb index f72e85362e90..6bb811b0a186 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb index 13ba5ba32659..94397121a82c 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb index bc560cb60dcd..98602be75fea 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb index 6f42e3b9ae3c..88bc23210577 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb index 4eb56cbbcd02..152fcef35f03 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb index cf7d54279ce0..b2de29703b12 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb @@ -103,6 +103,26 @@ def tag_key=(tag_key) @tag_key = tag_key end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb index 2183092ac0db..c84c0d5eca0c 100644 --- a/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb +++ b/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb @@ -129,6 +129,26 @@ def valid_tag_values=(valid_tag_values) @valid_tag_values = valid_tag_values end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb b/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb index a6dfc343bf52..e483eb8c6ba0 100644 --- a/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb +++ b/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb index 6f9c97be1884..718f8c40f959 100644 --- a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb @@ -102,6 +102,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb index e00bd9420b10..8308aa2401c6 100644 --- a/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb +++ b/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb @@ -91,6 +91,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monitor_type.rb b/lib/datadog_api_client/v2/models/monitor_type.rb index ecf255865596..3c7780c52ea7 100644 --- a/lib/datadog_api_client/v2/models/monitor_type.rb +++ b/lib/datadog_api_client/v2/models/monitor_type.rb @@ -177,6 +177,26 @@ def group_status=(group_status) @group_status = group_status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb index 44c964f50526..456caaa7f6be 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb @@ -130,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb index 85a094b8a892..f09bed6c751e 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb index 9c1c50f31aed..69e6a794d75e 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb index a032b6950a44..aa08a485f88a 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb @@ -73,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb b/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb index 9be6e5bed36e..c8f75d96a8ef 100644 --- a/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb +++ b/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb b/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb index f0b66badf526..54d6af14db8f 100644 --- a/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb @@ -73,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb b/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb index 1453d11f1da8..e555d470c5a6 100644 --- a/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb +++ b/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/nullable_user_relationship.rb b/lib/datadog_api_client/v2/models/nullable_user_relationship.rb index 82920ab4ac07..5ff16102b043 100644 --- a/lib/datadog_api_client/v2/models/nullable_user_relationship.rb +++ b/lib/datadog_api_client/v2/models/nullable_user_relationship.rb @@ -73,6 +73,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb b/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb index 0f82311c2450..6e81ced20d13 100644 --- a/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb +++ b/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account.rb b/lib/datadog_api_client/v2/models/okta_account.rb index 377895264bf7..3ee96f7231c6 100644 --- a/lib/datadog_api_client/v2/models/okta_account.rb +++ b/lib/datadog_api_client/v2/models/okta_account.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_attributes.rb b/lib/datadog_api_client/v2/models/okta_account_attributes.rb index 290e374c0230..b8b5891225db 100644 --- a/lib/datadog_api_client/v2/models/okta_account_attributes.rb +++ b/lib/datadog_api_client/v2/models/okta_account_attributes.rb @@ -150,6 +150,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_request.rb b/lib/datadog_api_client/v2/models/okta_account_request.rb index a6cee0962f46..0c9e11600407 100644 --- a/lib/datadog_api_client/v2/models/okta_account_request.rb +++ b/lib/datadog_api_client/v2/models/okta_account_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_response.rb b/lib/datadog_api_client/v2/models/okta_account_response.rb index f5073b953a24..ea7c2b0409b6 100644 --- a/lib/datadog_api_client/v2/models/okta_account_response.rb +++ b/lib/datadog_api_client/v2/models/okta_account_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_response_data.rb b/lib/datadog_api_client/v2/models/okta_account_response_data.rb index dd99844315f0..d7f55c48ebc2 100644 --- a/lib/datadog_api_client/v2/models/okta_account_response_data.rb +++ b/lib/datadog_api_client/v2/models/okta_account_response_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_update_request.rb b/lib/datadog_api_client/v2/models/okta_account_update_request.rb index bc8ed9d146cb..37e1da80948d 100644 --- a/lib/datadog_api_client/v2/models/okta_account_update_request.rb +++ b/lib/datadog_api_client/v2/models/okta_account_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb index f72dd1b1870b..85dfa4a538b8 100644 --- a/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb @@ -130,6 +130,26 @@ def domain=(domain) @domain = domain end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb b/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb index d7c5add783d8..409f8f98159b 100644 --- a/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb +++ b/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/okta_accounts_response.rb b/lib/datadog_api_client/v2/models/okta_accounts_response.rb index df53f0d974f8..c9ab9f681f7c 100644 --- a/lib/datadog_api_client/v2/models/okta_accounts_response.rb +++ b/lib/datadog_api_client/v2/models/okta_accounts_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb index 18cef5d7089a..1b9bb913cb01 100644 --- a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +++ b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb index ca91f6e9523b..a41651f8762d 100644 --- a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb +++ b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb index e1756ff19200..e759b6d1afcf 100644 --- a/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb +++ b/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/open_api_endpoint.rb b/lib/datadog_api_client/v2/models/open_api_endpoint.rb index f5d0cc2c9c0e..39d0120a1c19 100644 --- a/lib/datadog_api_client/v2/models/open_api_endpoint.rb +++ b/lib/datadog_api_client/v2/models/open_api_endpoint.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/open_api_file.rb b/lib/datadog_api_client/v2/models/open_api_file.rb index 95f980909bf1..78dfdeeedc98 100644 --- a/lib/datadog_api_client/v2/models/open_api_file.rb +++ b/lib/datadog_api_client/v2/models/open_api_file.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb index be4cf5f1ade3..57cd06ef567f 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb @@ -136,6 +136,26 @@ def region=(region) @region = region end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb b/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb index 8b2921a940ee..18f0a0583693 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb b/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb index 90bf043c393a..8c7f6b2b82f4 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response.rb index 7af4205a108b..6df3198bd84b 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb index 4956bb9da1cd..706592cf4890 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb @@ -118,6 +118,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb index ad7a8a73ad70..e65546e63f3f 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb @@ -131,6 +131,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb index 683384f85f75..cbce442b7af2 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb @@ -118,6 +118,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb index c150c475b8be..c1af9eedaf86 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb @@ -131,6 +131,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb index 89da4c6e9f48..6b03b8b1ab5b 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_services_response.rb b/lib/datadog_api_client/v2/models/opsgenie_services_response.rb index 2dbb4cd8d01f..d0c5a8e5c7e4 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_services_response.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_services_response.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_get_response.rb b/lib/datadog_api_client/v2/models/org_config_get_response.rb index 00c06fa1966e..fa9bc19f3821 100644 --- a/lib/datadog_api_client/v2/models/org_config_get_response.rb +++ b/lib/datadog_api_client/v2/models/org_config_get_response.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_list_response.rb b/lib/datadog_api_client/v2/models/org_config_list_response.rb index 57d6ab3947c0..2f994daeaacc 100644 --- a/lib/datadog_api_client/v2/models/org_config_list_response.rb +++ b/lib/datadog_api_client/v2/models/org_config_list_response.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_read.rb b/lib/datadog_api_client/v2/models/org_config_read.rb index cc989e89f3e3..8e80d7083907 100644 --- a/lib/datadog_api_client/v2/models/org_config_read.rb +++ b/lib/datadog_api_client/v2/models/org_config_read.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_read_attributes.rb b/lib/datadog_api_client/v2/models/org_config_read_attributes.rb index 3ed43c717fc0..37070861fa5c 100644 --- a/lib/datadog_api_client/v2/models/org_config_read_attributes.rb +++ b/lib/datadog_api_client/v2/models/org_config_read_attributes.rb @@ -160,6 +160,26 @@ def value_type=(value_type) @value_type = value_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_write.rb b/lib/datadog_api_client/v2/models/org_config_write.rb index 370f05d13435..b5e09d20f816 100644 --- a/lib/datadog_api_client/v2/models/org_config_write.rb +++ b/lib/datadog_api_client/v2/models/org_config_write.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_write_attributes.rb b/lib/datadog_api_client/v2/models/org_config_write_attributes.rb index f9ad0d1a84bd..acbb4c13a3dd 100644 --- a/lib/datadog_api_client/v2/models/org_config_write_attributes.rb +++ b/lib/datadog_api_client/v2/models/org_config_write_attributes.rb @@ -83,6 +83,26 @@ def value=(value) @value = value end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/org_config_write_request.rb b/lib/datadog_api_client/v2/models/org_config_write_request.rb index 03876a80a37a..4e843733dde4 100644 --- a/lib/datadog_api_client/v2/models/org_config_write_request.rb +++ b/lib/datadog_api_client/v2/models/org_config_write_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index e85e368a9568..5726ef2b9e0f 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index 4d1e7e6235df..5f8fb0d87b12 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -128,6 +128,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb b/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb index 1d40f6100cce..8fdfc9f770ac 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_request.rb b/lib/datadog_api_client/v2/models/outcomes_batch_request.rb index 2d736c2d1aa7..802c6923e45b 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_request.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb b/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb index d376f369a657..ad01144362ac 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb b/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb index ba2ba9d9a76e..c363d8f115d2 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb @@ -132,6 +132,26 @@ def state=(state) @state = state end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_response.rb b/lib/datadog_api_client/v2/models/outcomes_batch_response.rb index 48af9b870c65..b6d3ac04a363 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_response.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_response.rb @@ -105,6 +105,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb b/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb index 257a4df9f518..31daf1922e3e 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb b/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb index 616cfdc7f6e8..5ea0818992ce 100644 --- a/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb +++ b/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response.rb b/lib/datadog_api_client/v2/models/outcomes_response.rb index 03bb1fb0f65c..6d7ae708773d 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response.rb @@ -87,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb b/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb index 2ab6a9d4443e..f70ee26cac16 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb b/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb index 7d24b45ab740..39fe4e1262c5 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb b/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb index 0b74cd7d5638..18a0ac71b6bc 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/outcomes_response_links.rb b/lib/datadog_api_client/v2/models/outcomes_response_links.rb index 66780090cea5..c44f6a2bd30a 100644 --- a/lib/datadog_api_client/v2/models/outcomes_response_links.rb +++ b/lib/datadog_api_client/v2/models/outcomes_response_links.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index d49305f7f531..0666d289812f 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_api_key.rb b/lib/datadog_api_client/v2/models/partial_api_key.rb index 64b9f972923d..64a7120cb52e 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb index 43f7cf3d9ee6..030f6db1b590 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb @@ -132,6 +132,26 @@ def last4=(last4) @last4 = last4 end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_application_key.rb b/lib/datadog_api_client/v2/models/partial_application_key.rb index d55008b82bfd..5cc02c460156 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb b/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb index 70ea3ef5ae35..32916a42dc79 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb @@ -124,6 +124,26 @@ def last4=(last4) @last4 = last4 end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/partial_application_key_response.rb b/lib/datadog_api_client/v2/models/partial_application_key_response.rb index 81663dfdeceb..68548e761d47 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key_response.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index 0d99af4b6ea3..a14c44b676c1 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index 4bf3cc5f9b4a..a60b488c3ed1 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -119,6 +119,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index 4641460c8e23..f3fa2f918f2e 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack.rb b/lib/datadog_api_client/v2/models/powerpack.rb index b1c592fe1e1e..316bf373d1dd 100644 --- a/lib/datadog_api_client/v2/models/powerpack.rb +++ b/lib/datadog_api_client/v2/models/powerpack.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_attributes.rb b/lib/datadog_api_client/v2/models/powerpack_attributes.rb index 9c176d51bfec..aa145f9742e7 100644 --- a/lib/datadog_api_client/v2/models/powerpack_attributes.rb +++ b/lib/datadog_api_client/v2/models/powerpack_attributes.rb @@ -145,6 +145,26 @@ def tags=(tags) @tags = tags end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_data.rb b/lib/datadog_api_client/v2/models/powerpack_data.rb index a1f04ad8955b..03d27c72e948 100644 --- a/lib/datadog_api_client/v2/models/powerpack_data.rb +++ b/lib/datadog_api_client/v2/models/powerpack_data.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_group_widget.rb b/lib/datadog_api_client/v2/models/powerpack_group_widget.rb index 969999759a0c..218f36a8eca9 100644 --- a/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +++ b/lib/datadog_api_client/v2/models/powerpack_group_widget.rb @@ -101,6 +101,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb b/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb index 7b961ecf6cac..f795f1225504 100644 --- a/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb +++ b/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb @@ -143,6 +143,26 @@ def widgets=(widgets) @widgets = widgets end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb b/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb index 4199d18180db..dd7e86b1257a 100644 --- a/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb +++ b/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb @@ -159,6 +159,26 @@ def y=(y) @y = y end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb b/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb index a4502a91bb69..50ab168349d6 100644 --- a/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb +++ b/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb @@ -159,6 +159,26 @@ def y=(y) @y = y end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb b/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb index fe4e910bc24c..0ec826ce6b39 100644 --- a/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb +++ b/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb @@ -92,6 +92,26 @@ def definition=(definition) @definition = definition end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_relationships.rb b/lib/datadog_api_client/v2/models/powerpack_relationships.rb index 6ab4d18d1fe3..04665fcce9b6 100644 --- a/lib/datadog_api_client/v2/models/powerpack_relationships.rb +++ b/lib/datadog_api_client/v2/models/powerpack_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_response.rb b/lib/datadog_api_client/v2/models/powerpack_response.rb index 9a0393ac259b..507e0c0e0399 100644 --- a/lib/datadog_api_client/v2/models/powerpack_response.rb +++ b/lib/datadog_api_client/v2/models/powerpack_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_response_links.rb b/lib/datadog_api_client/v2/models/powerpack_response_links.rb index a341b81f8d8c..07f6c806eaca 100644 --- a/lib/datadog_api_client/v2/models/powerpack_response_links.rb +++ b/lib/datadog_api_client/v2/models/powerpack_response_links.rb @@ -110,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpack_template_variable.rb b/lib/datadog_api_client/v2/models/powerpack_template_variable.rb index 1f37e23e5d62..935824732b85 100644 --- a/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +++ b/lib/datadog_api_client/v2/models/powerpack_template_variable.rb @@ -94,6 +94,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb b/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb index e71ba049f813..47e27f93ef74 100644 --- a/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb +++ b/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb index d8f0179f6a8e..0776f7eb730f 100644 --- a/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb @@ -136,6 +136,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summaries_meta.rb b/lib/datadog_api_client/v2/models/process_summaries_meta.rb index 8bf8509b0ba3..0413253a71f5 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb b/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb index 062584f489af..c94a06bd2cc0 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb @@ -97,6 +97,26 @@ def size=(size) @size = size end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summaries_response.rb b/lib/datadog_api_client/v2/models/process_summaries_response.rb index 50139dae83b5..a9fffc5346de 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index 7ce1d368da8a..de13ceeda81c 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/process_summary_attributes.rb b/lib/datadog_api_client/v2/models/process_summary_attributes.rb index b8bc25b88ada..bde735cf3dad 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -130,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project.rb b/lib/datadog_api_client/v2/models/project.rb index bdc1d5bf5311..fdb2575d957d 100644 --- a/lib/datadog_api_client/v2/models/project.rb +++ b/lib/datadog_api_client/v2/models/project.rb @@ -132,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_attributes.rb b/lib/datadog_api_client/v2/models/project_attributes.rb index ebc01d515bf4..4434a6afb3b2 100644 --- a/lib/datadog_api_client/v2/models/project_attributes.rb +++ b/lib/datadog_api_client/v2/models/project_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_create.rb b/lib/datadog_api_client/v2/models/project_create.rb index 28bb205194d5..f92834681004 100644 --- a/lib/datadog_api_client/v2/models/project_create.rb +++ b/lib/datadog_api_client/v2/models/project_create.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_create_attributes.rb b/lib/datadog_api_client/v2/models/project_create_attributes.rb index ff479b85fe2b..3c99a7ad5dd6 100644 --- a/lib/datadog_api_client/v2/models/project_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/project_create_attributes.rb @@ -103,6 +103,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_create_request.rb b/lib/datadog_api_client/v2/models/project_create_request.rb index b64f539cb535..464166815f6c 100644 --- a/lib/datadog_api_client/v2/models/project_create_request.rb +++ b/lib/datadog_api_client/v2/models/project_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_relationship.rb b/lib/datadog_api_client/v2/models/project_relationship.rb index 9b43097b5d78..d07d026f6e8a 100644 --- a/lib/datadog_api_client/v2/models/project_relationship.rb +++ b/lib/datadog_api_client/v2/models/project_relationship.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_relationship_data.rb b/lib/datadog_api_client/v2/models/project_relationship_data.rb index bafe4430efc7..aeaf2b3d0f9b 100644 --- a/lib/datadog_api_client/v2/models/project_relationship_data.rb +++ b/lib/datadog_api_client/v2/models/project_relationship_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_relationships.rb b/lib/datadog_api_client/v2/models/project_relationships.rb index f1f47a8d1b83..c6379ee7ec3d 100644 --- a/lib/datadog_api_client/v2/models/project_relationships.rb +++ b/lib/datadog_api_client/v2/models/project_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/project_response.rb b/lib/datadog_api_client/v2/models/project_response.rb index 45e5a80b4eb4..1ca981ed0dc7 100644 --- a/lib/datadog_api_client/v2/models/project_response.rb +++ b/lib/datadog_api_client/v2/models/project_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/projected_cost.rb b/lib/datadog_api_client/v2/models/projected_cost.rb index ad02b6bb9e56..672045715b7e 100644 --- a/lib/datadog_api_client/v2/models/projected_cost.rb +++ b/lib/datadog_api_client/v2/models/projected_cost.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/projected_cost_attributes.rb b/lib/datadog_api_client/v2/models/projected_cost_attributes.rb index fbb74f029539..473329b8c68c 100644 --- a/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +++ b/lib/datadog_api_client/v2/models/projected_cost_attributes.rb @@ -130,6 +130,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/projected_cost_response.rb b/lib/datadog_api_client/v2/models/projected_cost_response.rb index 1f521e11352d..8a6b2c0a346f 100644 --- a/lib/datadog_api_client/v2/models/projected_cost_response.rb +++ b/lib/datadog_api_client/v2/models/projected_cost_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/projects_response.rb b/lib/datadog_api_client/v2/models/projects_response.rb index 26b49830e1bf..2cd515f532f3 100644 --- a/lib/datadog_api_client/v2/models/projects_response.rb +++ b/lib/datadog_api_client/v2/models/projects_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/query_formula.rb b/lib/datadog_api_client/v2/models/query_formula.rb index a58006872d9c..57841f45acbc 100644 --- a/lib/datadog_api_client/v2/models/query_formula.rb +++ b/lib/datadog_api_client/v2/models/query_formula.rb @@ -93,6 +93,26 @@ def formula=(formula) @formula = formula end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb index 701d86d636d0..422cd1903485 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb index b986b125a571..fbe5b857219e 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb index dd9e2212f5c8..c464e34ab22d 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb index 3f33deec8717..9a7050f5e038 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb index 1b6b4019b45a..b155d8223486 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb index c22b25786e85..ddc23a971082 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb index dc0b8e9705be..b132646ed6aa 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb index d7379a1dd408..41203f1984ec 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb index fbba97e60224..9553b0678b04 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb index 602b7fbeec9c..778600b2a7ef 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb index 521ea32ddcc9..53b3d96a1ef6 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb index 83778aafa1cf..f9254ef44fdc 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_organization.rb b/lib/datadog_api_client/v2/models/relationship_to_organization.rb index d3d64e0ab655..dabc03a1a8de 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb b/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb index 9f60b52effda..8d8ba19feec9 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb index f1d608352400..c3e051c7ab9a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_outcome.rb b/lib/datadog_api_client/v2/models/relationship_to_outcome.rb index 9be1d45310c3..be3d19633193 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_outcome.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_outcome.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb b/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb index 039e7a07de35..d371dc3c76a6 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_permission.rb b/lib/datadog_api_client/v2/models/relationship_to_permission.rb index 5bf3551b60df..f84466c950b7 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb b/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb index 14668cb5f0de..dfd2419646ef 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb index 8cd26e60e549..cf50ad252a38 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_role.rb b/lib/datadog_api_client/v2/models/relationship_to_role.rb index d4a3d84e400a..aacda2dec221 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_role_data.rb b/lib/datadog_api_client/v2/models/relationship_to_role_data.rb index 361ca215bc32..d708817a92a1 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_roles.rb b/lib/datadog_api_client/v2/models/relationship_to_roles.rb index 361e99270934..7b03468aff9f 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_rule.rb b/lib/datadog_api_client/v2/models/relationship_to_rule.rb index bef16b9ef197..4575177742bb 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_rule.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_rule.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb b/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb index b69bfb606c03..b468aceb663c 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb b/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb index c1855f586314..555373178643 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb index 2619ee73a966..e533ad7516dc 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb index 455dd248ca4c..42672a5a9c8a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_team.rb b/lib/datadog_api_client/v2/models/relationship_to_team.rb index 8c16336ca623..70cab11457da 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_team_data.rb b/lib/datadog_api_client/v2/models/relationship_to_team_data.rb index d30399426924..80ad94e0575a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb b/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb index 542baed8fcb4..9d02fa725ffb 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_team_links.rb b/lib/datadog_api_client/v2/models/relationship_to_team_links.rb index 26e0c19c6035..b66766eaf7bd 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_team_links.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user.rb b/lib/datadog_api_client/v2/models/relationship_to_user.rb index ee042de3bc3f..fec9bfdda5ff 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_data.rb index 37ae815959a7..438568ea71a2 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb index 2ab14cec4bcd..cd3be9d08337 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb index e51925abc6e6..00915d027049 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb index 348eb87a7d17..c6690ef0fb61 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb index 944f5cfb7c5c..ec931318c453 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb index 2d8c6d46278a..d51707514aac 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb index e6a4d5d372a1..1b159f0b682b 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/relationship_to_users.rb b/lib/datadog_api_client/v2/models/relationship_to_users.rb index bec855deb11f..a3a159c2ad85 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb b/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb index bf18257d54ca..2cd54eb39488 100644 --- a/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb +++ b/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/response_meta_attributes.rb b/lib/datadog_api_client/v2/models/response_meta_attributes.rb index ec03890672a7..e19de5445794 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy.rb b/lib/datadog_api_client/v2/models/restriction_policy.rb index 2daef0816fbc..4766951a5204 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb b/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb index 09b4572829ba..ea0df9411c6a 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb @@ -85,6 +85,26 @@ def bindings=(bindings) @bindings = bindings end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy_binding.rb b/lib/datadog_api_client/v2/models/restriction_policy_binding.rb index 3d81be28ed25..23917da85db2 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_binding.rb @@ -108,6 +108,26 @@ def relation=(relation) @relation = relation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy_response.rb b/lib/datadog_api_client/v2/models/restriction_policy_response.rb index 9a44cdb59bd9..8527cf7bc31e 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_response.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_response.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb b/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb index 41afcc72ac62..ea529de2c738 100644 --- a/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb +++ b/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter.rb b/lib/datadog_api_client/v2/models/retention_filter.rb index c2281000faae..0861510c9911 100644 --- a/lib/datadog_api_client/v2/models/retention_filter.rb +++ b/lib/datadog_api_client/v2/models/retention_filter.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_all.rb b/lib/datadog_api_client/v2/models/retention_filter_all.rb index d9067935ffc4..dcf538faacc8 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_all.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_all.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb index 0bcd67508bc0..c48aafd0946e 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb @@ -156,6 +156,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_attributes.rb index 73cf5ffc54e4..c35d477e49ab 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_attributes.rb @@ -156,6 +156,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb index 50ce0621984e..4523a48917ea 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb @@ -164,6 +164,26 @@ def rate=(rate) @rate = rate end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_data.rb b/lib/datadog_api_client/v2/models/retention_filter_create_data.rb index 91574b160f7e..341f65606b6d 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_data.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_request.rb b/lib/datadog_api_client/v2/models/retention_filter_create_request.rb index dc9912c7488b..848aba61a317 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_request.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_create_response.rb b/lib/datadog_api_client/v2/models/retention_filter_create_response.rb index 0ae6c452683e..52f4e6c27df5 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_create_response.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_create_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_response.rb b/lib/datadog_api_client/v2/models/retention_filter_response.rb index 47478da4eba6..41825e4a1fcb 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_response.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb index 1b43e25a43df..22430337a593 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb @@ -164,6 +164,26 @@ def rate=(rate) @rate = rate end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_update_data.rb b/lib/datadog_api_client/v2/models/retention_filter_update_data.rb index d93ae5607876..20bd99e96080 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_update_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_update_request.rb b/lib/datadog_api_client/v2/models/retention_filter_update_request.rb index e78ebf786d6a..f4a80de96261 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_update_request.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb b/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb index 368a068b15b9..69f53722f692 100644 --- a/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb +++ b/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/retention_filters_response.rb b/lib/datadog_api_client/v2/models/retention_filters_response.rb index 108c25e5ba2c..98d8f95d0ceb 100644 --- a/lib/datadog_api_client/v2/models/retention_filters_response.rb +++ b/lib/datadog_api_client/v2/models/retention_filters_response.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index ca54aed67f32..8c4df78b6226 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -110,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index f9bc2f0988c5..c0e29cdee010 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index 5be496daeff0..89337d2f5938 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_clone_attributes.rb b/lib/datadog_api_client/v2/models/role_clone_attributes.rb index 6f88f5f7dd62..f849d1b073f4 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -83,6 +83,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_clone_request.rb b/lib/datadog_api_client/v2/models/role_clone_request.rb index 11aa9783559d..c9d9e47a5a19 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_attributes.rb b/lib/datadog_api_client/v2/models/role_create_attributes.rb index 02814eef7bb7..13ad28649751 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -101,6 +101,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_data.rb b/lib/datadog_api_client/v2/models/role_create_data.rb index d3c3454901a6..26f34df67ef8 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -101,6 +101,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_request.rb b/lib/datadog_api_client/v2/models/role_create_request.rb index b97fd5670fd4..75138206aaaa 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_response.rb b/lib/datadog_api_client/v2/models/role_create_response.rb index 4a79ab0dcd57..8e3e024bb548 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_create_response_data.rb b/lib/datadog_api_client/v2/models/role_create_response_data.rb index ff1c254e7017..4bd6abb0a421 100644 --- a/lib/datadog_api_client/v2/models/role_create_response_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_response_data.rb @@ -110,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index a4b1f53a6b51..1091fac689c1 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index 7f6a127d5db7..17eb79d8b58f 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_response_relationships.rb b/lib/datadog_api_client/v2/models/role_response_relationships.rb index b38e2b230039..e023d5b0ddd7 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_attributes.rb b/lib/datadog_api_client/v2/models/role_update_attributes.rb index f9bd9b738249..98223dbbb795 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -110,6 +110,26 @@ def user_count=(user_count) @user_count = user_count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_data.rb b/lib/datadog_api_client/v2/models/role_update_data.rb index e27ba341ec99..51b54e728d73 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -132,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_request.rb b/lib/datadog_api_client/v2/models/role_update_request.rb index 7b87a24f3e19..cb04be8f5708 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_response.rb b/lib/datadog_api_client/v2/models/role_update_response.rb index bbf7f3299ab3..d7f9bb7769bf 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/role_update_response_data.rb b/lib/datadog_api_client/v2/models/role_update_response_data.rb index 3361672e80bc..544e72297b8a 100644 --- a/lib/datadog_api_client/v2/models/role_update_response_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_response_data.rb @@ -110,6 +110,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index d2908efab7c3..91ba466815ae 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rule_attributes.rb b/lib/datadog_api_client/v2/models/rule_attributes.rb index e75891feb5aa..a518c9c22db4 100644 --- a/lib/datadog_api_client/v2/models/rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/rule_attributes.rb @@ -137,6 +137,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb b/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb index c53bd8a2aba1..161fd9b0a134 100644 --- a/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb +++ b/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb index 3e863c1c6487..10dad6422c92 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value_timeseries_point.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_aggregate_request.rb b/lib/datadog_api_client/v2/models/rum_aggregate_request.rb index 2a48a88ea4cd..6fb4a567573a 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregate_request.rb @@ -106,6 +106,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb b/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb index ecb220b8244a..7f81121f435f 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregate_sort.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb b/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb index b61e43a3e786..85ab5e0f0210 100644 --- a/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb +++ b/lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb b/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb index 5170356d5e70..7b99e54b060c 100644 --- a/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application.rb b/lib/datadog_api_client/v2/models/rum_application.rb index c0846832d166..7a314a50c8e7 100644 --- a/lib/datadog_api_client/v2/models/rum_application.rb +++ b/lib/datadog_api_client/v2/models/rum_application.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_attributes.rb index a02065268e72..04c1477e2dc1 100644 --- a/lib/datadog_api_client/v2/models/rum_application_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_attributes.rb @@ -265,6 +265,26 @@ def updated_by_handle=(updated_by_handle) @updated_by_handle = updated_by_handle end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_create.rb b/lib/datadog_api_client/v2/models/rum_application_create.rb index 8e181c757c7e..68f20a9839d3 100644 --- a/lib/datadog_api_client/v2/models/rum_application_create.rb +++ b/lib/datadog_api_client/v2/models/rum_application_create.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb index 5d3c9a919bce..d3a496f36057 100644 --- a/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb @@ -92,6 +92,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_create_request.rb b/lib/datadog_api_client/v2/models/rum_application_create_request.rb index 7c176377d187..ad7a55bdd6d1 100644 --- a/lib/datadog_api_client/v2/models/rum_application_create_request.rb +++ b/lib/datadog_api_client/v2/models/rum_application_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_list.rb b/lib/datadog_api_client/v2/models/rum_application_list.rb index 487cc7d50012..6e65862cfeb2 100644 --- a/lib/datadog_api_client/v2/models/rum_application_list.rb +++ b/lib/datadog_api_client/v2/models/rum_application_list.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb index 07c7f7c7e739..5eae39c30461 100644 --- a/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb @@ -245,6 +245,26 @@ def updated_by_handle=(updated_by_handle) @updated_by_handle = updated_by_handle end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_response.rb b/lib/datadog_api_client/v2/models/rum_application_response.rb index c3a69aca5ee3..34388b21ad84 100644 --- a/lib/datadog_api_client/v2/models/rum_application_response.rb +++ b/lib/datadog_api_client/v2/models/rum_application_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_update.rb b/lib/datadog_api_client/v2/models/rum_application_update.rb index e6634c12ca32..01ae304d87b4 100644 --- a/lib/datadog_api_client/v2/models/rum_application_update.rb +++ b/lib/datadog_api_client/v2/models/rum_application_update.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb index 4218ae40d92d..ef20a63bc912 100644 --- a/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_application_update_request.rb b/lib/datadog_api_client/v2/models/rum_application_update_request.rb index d02cc51143fa..5be324550c9b 100644 --- a/lib/datadog_api_client/v2/models/rum_application_update_request.rb +++ b/lib/datadog_api_client/v2/models/rum_application_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_applications_response.rb b/lib/datadog_api_client/v2/models/rum_applications_response.rb index ddb445ebbcb8..ef9cbbdeb566 100644 --- a/lib/datadog_api_client/v2/models/rum_applications_response.rb +++ b/lib/datadog_api_client/v2/models/rum_applications_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_bucket_response.rb b/lib/datadog_api_client/v2/models/rum_bucket_response.rb index b32c28e72bf8..791864998712 100644 --- a/lib/datadog_api_client/v2/models/rum_bucket_response.rb +++ b/lib/datadog_api_client/v2/models/rum_bucket_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_compute.rb b/lib/datadog_api_client/v2/models/rum_compute.rb index 294565e1eece..1971e409cb88 100644 --- a/lib/datadog_api_client/v2/models/rum_compute.rb +++ b/lib/datadog_api_client/v2/models/rum_compute.rb @@ -111,6 +111,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_event.rb b/lib/datadog_api_client/v2/models/rum_event.rb index db93fe9a623a..7329eb406f1b 100644 --- a/lib/datadog_api_client/v2/models/rum_event.rb +++ b/lib/datadog_api_client/v2/models/rum_event.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_event_attributes.rb b/lib/datadog_api_client/v2/models/rum_event_attributes.rb index 3f5990c28554..02e4f022da0e 100644 --- a/lib/datadog_api_client/v2/models/rum_event_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_event_attributes.rb @@ -96,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_events_response.rb b/lib/datadog_api_client/v2/models/rum_events_response.rb index c3a40c0ffd4e..215f6b81e309 100644 --- a/lib/datadog_api_client/v2/models/rum_events_response.rb +++ b/lib/datadog_api_client/v2/models/rum_events_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_group_by.rb b/lib/datadog_api_client/v2/models/rum_group_by.rb index 670fc4c2a401..08b65ee88692 100644 --- a/lib/datadog_api_client/v2/models/rum_group_by.rb +++ b/lib/datadog_api_client/v2/models/rum_group_by.rb @@ -129,6 +129,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb b/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb index 0d511e4d02fd..0cb875d5e49c 100644 --- a/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb @@ -126,6 +126,26 @@ def min=(min) @min = min end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_query_filter.rb b/lib/datadog_api_client/v2/models/rum_query_filter.rb index 8564970b2bbc..1e369efa8e6a 100644 --- a/lib/datadog_api_client/v2/models/rum_query_filter.rb +++ b/lib/datadog_api_client/v2/models/rum_query_filter.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_query_options.rb b/lib/datadog_api_client/v2/models/rum_query_options.rb index 29c7a3d3f505..b6abb6c26941 100644 --- a/lib/datadog_api_client/v2/models/rum_query_options.rb +++ b/lib/datadog_api_client/v2/models/rum_query_options.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_query_page_options.rb b/lib/datadog_api_client/v2/models/rum_query_page_options.rb index 387fa4de9a64..6c92017a274f 100644 --- a/lib/datadog_api_client/v2/models/rum_query_page_options.rb +++ b/lib/datadog_api_client/v2/models/rum_query_page_options.rb @@ -92,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_response_links.rb b/lib/datadog_api_client/v2/models/rum_response_links.rb index 1081e8bd5f86..f478702c05ea 100644 --- a/lib/datadog_api_client/v2/models/rum_response_links.rb +++ b/lib/datadog_api_client/v2/models/rum_response_links.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_response_metadata.rb b/lib/datadog_api_client/v2/models/rum_response_metadata.rb index 9619549261f3..f132ca797e55 100644 --- a/lib/datadog_api_client/v2/models/rum_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/rum_response_metadata.rb @@ -104,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_response_page.rb b/lib/datadog_api_client/v2/models/rum_response_page.rb index d7ccf70fcbac..f218617b167e 100644 --- a/lib/datadog_api_client/v2/models/rum_response_page.rb +++ b/lib/datadog_api_client/v2/models/rum_response_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_search_events_request.rb b/lib/datadog_api_client/v2/models/rum_search_events_request.rb index 34a173d1b5f7..916dc7c7e123 100644 --- a/lib/datadog_api_client/v2/models/rum_search_events_request.rb +++ b/lib/datadog_api_client/v2/models/rum_search_events_request.rb @@ -93,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/rum_warning.rb b/lib/datadog_api_client/v2/models/rum_warning.rb index 87dd315627dd..93483b3f37d5 100644 --- a/lib/datadog_api_client/v2/models/rum_warning.rb +++ b/lib/datadog_api_client/v2/models/rum_warning.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb b/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb index 4c8830b38bfd..6303a63f72a4 100644 --- a/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb +++ b/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb b/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb index 90c53f840e96..266d4a66ad95 100644 --- a/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb +++ b/lib/datadog_api_client/v2/models/saml_assertion_attribute_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb b/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb index f135c099a414..873a7debc74a 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_query_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb b/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb index effcbb42b5ca..b6893b8c9e68 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_query_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_request.rb b/lib/datadog_api_client/v2/models/scalar_formula_request.rb index 3bdfcd5607ec..6d218654f918 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_request.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_request.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb b/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb index 35ce39128bf1..a7b9d7362f9b 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_request_attributes.rb @@ -136,6 +136,26 @@ def to=(to) @to = to end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb b/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb index 44b957702615..b261aec2eadf 100644 --- a/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb +++ b/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_meta.rb b/lib/datadog_api_client/v2/models/scalar_meta.rb index b9cfc19a654c..87fa6073d5cc 100644 --- a/lib/datadog_api_client/v2/models/scalar_meta.rb +++ b/lib/datadog_api_client/v2/models/scalar_meta.rb @@ -78,6 +78,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/scalar_response.rb b/lib/datadog_api_client/v2/models/scalar_response.rb index c99a3c4dcad6..bc5774383f3e 100644 --- a/lib/datadog_api_client/v2/models/scalar_response.rb +++ b/lib/datadog_api_client/v2/models/scalar_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index 4dc86a32acb6..8bded6c2c26b 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_attributes.rb index 2007a5795e10..651e5a4fe497 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -139,6 +139,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb index 02547d1b52d9..dd776256dde4 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb @@ -165,6 +165,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_create_data.rb b/lib/datadog_api_client/v2/models/security_filter_create_data.rb index fc6a70022572..50c4119f38a5 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_data.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_create_request.rb b/lib/datadog_api_client/v2/models/security_filter_create_request.rb index 0f21b0ebef42..3bf509101f8f 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_request.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb index f2768a7be858..f434df72cee0 100644 --- a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb @@ -103,6 +103,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb index d2bfc6d64851..5ff70889dc17 100644 --- a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_meta.rb b/lib/datadog_api_client/v2/models/security_filter_meta.rb index 1cfe16e1cd85..db08a97ded94 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_response.rb b/lib/datadog_api_client/v2/models/security_filter_response.rb index baa9d565e9ac..0665aa4bf44c 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb index d09d867f6224..ad4aa4f93f59 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb @@ -130,6 +130,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_update_data.rb b/lib/datadog_api_client/v2/models/security_filter_update_data.rb index 895d8bfac472..4e432931fbcb 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filter_update_request.rb b/lib/datadog_api_client/v2/models/security_filter_update_request.rb index c223beaebe6b..a4cdf354fd2b 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_filters_response.rb b/lib/datadog_api_client/v2/models/security_filters_response.rb index 39d501e68699..99b298c6f6e6 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb index 372d4fb73644..1c7c372ad4ab 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb index 3b903f0ecf4f..11c072dcaeaa 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb index 3b86ae2b8381..d2e76ca2a393 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb @@ -95,6 +95,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb index a4dc320eefb0..f79eb84989d5 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb @@ -113,6 +113,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb index 1d6a6450290f..2155e271daec 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb index 19eee13e4f66..0e34ef33f38b 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb index 69a0fec3f5d8..0cfd69c28e7c 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb @@ -93,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb index bfa0a479c868..cc566c33f703 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb @@ -153,6 +153,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb index 88e812a88d11..9438c011df77 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb @@ -101,6 +101,26 @@ def index=(index) @index = index end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb index 9d67484848eb..08882dc98ac2 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb index ed8694151804..1818c0d17061 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb index 9602d3c366e3..141174781415 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb @@ -69,6 +69,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb index d68d7a3c4f70..0797b7466071 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb @@ -96,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb index b66c4c8cc836..00f141cf8e0c 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb @@ -192,6 +192,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb index 516d676ef3b2..e2dbb9ddff9a 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -84,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb index db9fe6225ecf..fa8c3a27d2bf 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb @@ -92,6 +92,26 @@ def assignee=(assignee) @assignee = assignee end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb index 07316809c102..d2f78a55ee5e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb @@ -83,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb index cebd657c8eeb..106492836d6e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb index 20f76346922b..be0ea4213f8f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb @@ -95,6 +95,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb index 611cbaf938fa..0acfec801e23 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb @@ -94,6 +94,26 @@ def incident_ids=(incident_ids) @incident_ids = incident_ids end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb index 4d10fcd131f4..8fa4f3bda1a8 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb @@ -83,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb index 740247708d3a..cddacf7e1d87 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb index e88f9515e081..c8e30e93e0a3 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb index fa4165aa54ec..1baff08c3519 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb index 1907aa5ddc13..cc04385fe110 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb @@ -92,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb index 5b1ba011d7d6..6d72f00996c9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb index de7b21391398..d182ceda8194 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb @@ -227,6 +227,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb index 75c81d1a850d..5c637281f164 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb @@ -227,6 +227,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb index 2dd505cbff1e..2e3521f3c809 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb @@ -143,6 +143,26 @@ def rule_id=(rule_id) @rule_id = rule_id end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb index d5bb2f67bc9b..69c62470592e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb @@ -226,6 +226,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb index 7055a61869dd..137dbe361678 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb @@ -163,6 +163,26 @@ def correlated_query_index=(correlated_query_index) @correlated_query_index = correlated_query_index end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb index ab8fde427250..904798e34daa 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb @@ -110,6 +110,26 @@ def state=(state) @state = state end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb index 85230501d592..2f64fc2341c1 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb @@ -101,6 +101,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb index b6a0c7601dad..5a75e981fc6f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb index a2a6f5600269..14908422f19e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb @@ -201,6 +201,26 @@ def state_update_timestamp=(state_update_timestamp) @state_update_timestamp = state_update_timestamp end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb index 4a58db65d889..656b331fbcfb 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb index 3d39e3681bae..68fc34c55957 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb index fe1b74b17da7..288a440bd5cc 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb @@ -86,6 +86,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb index c00b3c90f758..e4c93664687e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb index cb375d394012..5bced72987aa 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb index 7c90c615df2e..6303459cc260 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb index 45af4dffc68a..5798c5ff87f4 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb @@ -238,6 +238,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb index 3cdff60034ea..f5d38deb0460 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb @@ -238,6 +238,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb index 99b5415ad125..6a3a79b2b355 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb @@ -135,6 +135,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb index 418b9ceefc15..b83d203e192d 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb @@ -257,6 +257,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb index d8db73d119a0..3d8420242ce1 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb @@ -238,6 +238,26 @@ def queries=(queries) @queries = queries end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb index cadbadd492bb..77cce9903688 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb index 8d335c72e00d..3b33b0f2fd1f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb @@ -182,6 +182,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb index 93264174ba22..a5f8430ede56 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb @@ -159,6 +159,26 @@ def rule_query=(rule_query) @rule_query = rule_query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb index d6b3522ac4bf..4431910474fe 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb index 22e640f92e42..a92f181cb371 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb index 615ad695b838..7a8fcf2e3254 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb index eac8dfde06d0..17243b502d7e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb @@ -154,6 +154,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb index 353a2564b910..6a17dc448979 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb index a372a7b267b1..006bb3be7920 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb index 1fe9c561ba5f..c4a5b413f762 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb index a89581d34571..dea2b8432fae 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb index 2234f7bef95b..29b497cc5e66 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb @@ -94,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb index 7f31acab756f..c48eb4289b53 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb @@ -112,6 +112,26 @@ def status=(status) @status = status end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb b/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb index 7c167a31e2ba..62e3da8de684 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb @@ -127,6 +127,26 @@ def uuid=(uuid) @uuid = uuid end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_user.rb b/lib/datadog_api_client/v2/models/security_monitoring_user.rb index 26d194e8b82f..e3b9ae49bfaa 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_user.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_user.rb @@ -82,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb index 48ac4053c911..7336db7a0d47 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb @@ -103,6 +103,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb index 40a85dab83c1..fdf7f25e782b 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb index 44963ad4f42f..0b4fcc0fc2b4 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb index f5a0165deea8..10c965b51893 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb index 782977925b17..f1a2ab99ff55 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb index 0b6492f34da1..f24fdbf6e3c9 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb index 15ec769b6ba6..169ced859746 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb index 97e39e67a9ed..3b852679a062 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb index 8887916874bc..85f8918da707 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb index ee346a1f7657..7e4ebf2e7ac6 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb index a45db8986190..648940e094a0 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb @@ -103,6 +103,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb index b0810ebb0080..d065c3c93447 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb index ca9cd8a0bb88..9706cbb7ea93 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb index 1eb7632987d6..bf0663badc99 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb index d0163b194465..dfd590802a02 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb @@ -83,6 +83,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb index 762b6e318c0a..ae41e5e24e1c 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb index d9d64fc24635..b75f64efc8e2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb index 3447f900944b..485c3e03a77b 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb index b73834712e66..4bd85c15e828 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb index 9a37b2d936dd..a8ef4ba3182a 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb index 1742a0cf3385..bf6cad7fa870 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb index bbd4c89bf4e2..0ea70688c409 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb index 36bab583aab6..ef2ef874fbb9 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb @@ -103,6 +103,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb index febb85ce84f2..83316c067d42 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb index ce72fa4fb4d5..2f17967f9b02 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb @@ -118,6 +118,26 @@ def keywords=(keywords) @keywords = keywords end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb index 327925d3e0db..a4d52e965d1f 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb @@ -128,6 +128,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb index bf7ece0c5d20..df4f93f50d50 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb @@ -83,6 +83,26 @@ def version=(version) @version = version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb index 9167a4d578fd..d07c35e4e586 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb index 0169c76cb1e3..413d2cb6a6d2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb index e60ec75971fe..3c6d35515fae 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb index c0af282e0b24..daa2ab5c5bc2 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb @@ -178,6 +178,26 @@ def priority=(priority) @priority = priority end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb index b8bd954bb77b..17d1a764b027 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb index 216cb1ee96a2..c03636a8e000 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb @@ -103,6 +103,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb index 892514c80a8c..822d120b2dd3 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb index 18db83c27a89..c806a8227473 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb @@ -83,6 +83,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb index 43fc17482ded..2388d3fe80a9 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb index c6e0a1918761..38b8e9640c6a 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb index 7d558faff688..93b3457cb7bc 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb index f23c8da67e34..db589f559d22 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb index 39e77a4149b2..a81b8a4834fd 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb index 4e88772597a4..763cd309bcc5 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb @@ -103,6 +103,26 @@ def meta=(meta) @meta = meta end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb index 3d4784aa2716..db6a2dce542c 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb index 8963f2c265a2..2e90772f4a3a 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb index 0925e16d54af..3c2c805b66fc 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb @@ -136,6 +136,26 @@ def priority=(priority) @priority = priority end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb index c04b915e57a5..c7d20c16d8df 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb index 99869358b71c..b86e70c0325b 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb index 1b90935159fb..9c42b2894f79 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb b/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb index 5d077ab9145d..a8cdc559de9e 100644 --- a/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb +++ b/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb @@ -107,6 +107,26 @@ def number_of_chars=(number_of_chars) @number_of_chars = number_of_chars end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_account_create_attributes.rb b/lib/datadog_api_client/v2/models/service_account_create_attributes.rb index 2a2d5bc85d9a..04af35e547f0 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_attributes.rb @@ -121,6 +121,26 @@ def service_account=(service_account) @service_account = service_account end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_account_create_data.rb b/lib/datadog_api_client/v2/models/service_account_create_data.rb index 99a68c4f5c7c..2d71f08dfbb2 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_data.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_data.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_account_create_request.rb b/lib/datadog_api_client/v2/models/service_account_create_request.rb index 807cf015734a..10598811e01e 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_create_response.rb b/lib/datadog_api_client/v2/models/service_definition_create_response.rb index a2ba2f8ad7c6..a06d601dbef6 100644 --- a/lib/datadog_api_client/v2/models/service_definition_create_response.rb +++ b/lib/datadog_api_client/v2/models/service_definition_create_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_data.rb b/lib/datadog_api_client/v2/models/service_definition_data.rb index aa90340e0d99..f084099216ef 100644 --- a/lib/datadog_api_client/v2/models/service_definition_data.rb +++ b/lib/datadog_api_client/v2/models/service_definition_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb b/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb index 017cbc41fdfe..324f3c2f555f 100644 --- a/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/service_definition_data_attributes.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_get_response.rb b/lib/datadog_api_client/v2/models/service_definition_get_response.rb index bb770f0e32b0..4730ce5b48ef 100644 --- a/lib/datadog_api_client/v2/models/service_definition_get_response.rb +++ b/lib/datadog_api_client/v2/models/service_definition_get_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_meta.rb b/lib/datadog_api_client/v2/models/service_definition_meta.rb index 912f73269370..4883ad96b5e4 100644 --- a/lib/datadog_api_client/v2/models/service_definition_meta.rb +++ b/lib/datadog_api_client/v2/models/service_definition_meta.rb @@ -121,6 +121,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb b/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb index 1d4042582961..935476d52cd6 100644 --- a/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb +++ b/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1.rb b/lib/datadog_api_client/v2/models/service_definition_v1.rb index 14fbe0720f37..13cbf877f2f5 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1.rb @@ -164,6 +164,26 @@ def schema_version=(schema_version) @schema_version = schema_version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb b/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb index 4e839b6e7f4c..c32276fbdc1d 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_contact.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_info.rb b/lib/datadog_api_client/v2/models/service_definition_v1_info.rb index 54feed1fb1e2..e01bfc316894 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_info.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_info.rb @@ -110,6 +110,26 @@ def dd_service=(dd_service) @dd_service = dd_service end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb index 538fe026b599..ef8135a2b5b5 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_integrations.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_org.rb b/lib/datadog_api_client/v2/models/service_definition_v1_org.rb index 9de96c028d99..ac28a480a749 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_org.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_org.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb b/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb index 0ef305459c81..2f19c1227ecb 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb @@ -123,6 +123,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2.rb b/lib/datadog_api_client/v2/models/service_definition_v2.rb index 51da7cdf25f6..00b6a757179c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2.rb @@ -194,6 +194,26 @@ def schema_version=(schema_version) @schema_version = schema_version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb b/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb index c49c1855b063..0c6301871b81 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb @@ -112,6 +112,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb index 836a3d59d0b8..7b30bb7e3282 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb @@ -199,6 +199,26 @@ def schema_version=(schema_version) @schema_version = schema_version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb index a6f602148bdf..b67cd0185b77 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb index f78ee81e6cdf..f9a8bcbc6f2c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb index 33be060f70fb..f11229c13ee6 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb @@ -132,6 +132,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb index eeb0ce0fb30f..9ceb76f556f4 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb index 4594ce6d4476..c1dfe45f8a6c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb @@ -92,6 +92,26 @@ def service_url=(service_url) @service_url = service_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb index 6f6365425f1d..5373e2b7b5f9 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb index a79d449c3ad0..a9fcba7a0cb1 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb index f155719f5e29..3a808ec66897 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb @@ -230,6 +230,26 @@ def schema_version=(schema_version) @schema_version = schema_version end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb index df4c95a20ac2..a91cfe863940 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb index 06f124d774ef..812eaa1ab22a 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb index 426b87b69d29..144c829b00a2 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb @@ -132,6 +132,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb index 1aefa46de775..b08c2b57007f 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb @@ -92,6 +92,26 @@ def service_url=(service_url) @service_url = service_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb index 5befe2c7bdf5..4e0d4a94b5dd 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_email.rb b/lib/datadog_api_client/v2/models/service_definition_v2_email.rb index fbeae8e48877..eabadf3d6b74 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_email.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_email.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb b/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb index b46f5afb4077..e36d66280c43 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_integrations.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_link.rb b/lib/datadog_api_client/v2/models/service_definition_v2_link.rb index 1ee83eddffbd..9ac4f14086ba 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_link.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_link.rb @@ -123,6 +123,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb b/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb index 2f53e01a7951..9cdda8c3630c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb b/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb index 9115d2fae184..193c10ec34ce 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb @@ -92,6 +92,26 @@ def service_url=(service_url) @service_url = service_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb b/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb index 2771be4264e0..308f46431f4c 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb @@ -112,6 +112,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb b/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb index 0705cc0b811e..544f59402d9b 100644 --- a/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb +++ b/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_definitions_list_response.rb b/lib/datadog_api_client/v2/models/service_definitions_list_response.rb index 7185aa20b2d8..465e5092d435 100644 --- a/lib/datadog_api_client/v2/models/service_definitions_list_response.rb +++ b/lib/datadog_api_client/v2/models/service_definitions_list_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_now_ticket.rb b/lib/datadog_api_client/v2/models/service_now_ticket.rb index a8d252bcd150..43a48349f859 100644 --- a/lib/datadog_api_client/v2/models/service_now_ticket.rb +++ b/lib/datadog_api_client/v2/models/service_now_ticket.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/service_now_ticket_result.rb b/lib/datadog_api_client/v2/models/service_now_ticket_result.rb index 4d89e5f17559..1b0503f7687c 100644 --- a/lib/datadog_api_client/v2/models/service_now_ticket_result.rb +++ b/lib/datadog_api_client/v2/models/service_now_ticket_result.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slack_integration_metadata.rb b/lib/datadog_api_client/v2/models/slack_integration_metadata.rb index b6ef92a028b7..02877873af92 100644 --- a/lib/datadog_api_client/v2/models/slack_integration_metadata.rb +++ b/lib/datadog_api_client/v2/models/slack_integration_metadata.rb @@ -85,6 +85,26 @@ def channels=(channels) @channels = channels end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb b/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb index 0e91b2d1c096..8f85970f61c7 100644 --- a/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb +++ b/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb @@ -132,6 +132,26 @@ def redirect_url=(redirect_url) @redirect_url = redirect_url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_create_request.rb b/lib/datadog_api_client/v2/models/slo_report_create_request.rb index 85afdb810443..061d105453d1 100644 --- a/lib/datadog_api_client/v2/models/slo_report_create_request.rb +++ b/lib/datadog_api_client/v2/models/slo_report_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb b/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb index 66c56621bcc1..891cac21793d 100644 --- a/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb @@ -141,6 +141,26 @@ def to_ts=(to_ts) @to_ts = to_ts end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb b/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb index dcba13dd1d20..20018059e8cd 100644 --- a/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb +++ b/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb @@ -83,6 +83,26 @@ def attributes=(attributes) @attributes = attributes end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_post_response.rb b/lib/datadog_api_client/v2/models/slo_report_post_response.rb index 2146c0504078..f5e5a1381545 100644 --- a/lib/datadog_api_client/v2/models/slo_report_post_response.rb +++ b/lib/datadog_api_client/v2/models/slo_report_post_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb b/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb index bfbddeb3abf3..3606c3a983db 100644 --- a/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +++ b/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb b/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb index 6f6a3b353941..094196042c7c 100644 --- a/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +++ b/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb b/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb index 2839d041fe08..b82df4d0ccf0 100644 --- a/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb b/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb index 568f22f422b5..bf556b62b850 100644 --- a/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +++ b/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/span.rb b/lib/datadog_api_client/v2/models/span.rb index b677b8b48c27..cabcadfd4af9 100644 --- a/lib/datadog_api_client/v2/models/span.rb +++ b/lib/datadog_api_client/v2/models/span.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb b/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb index 1a997567c5de..4126c23b3b96 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb index 987492751650..3d82be50b8bc 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb index bd093f44d653..e931308bebc7 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_data.rb b/lib/datadog_api_client/v2/models/spans_aggregate_data.rb index 9dac7928340a..67fb9451f377 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_data.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_request.rb b/lib/datadog_api_client/v2/models/spans_aggregate_request.rb index d5aefb1541c1..145a0c944194 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb b/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb index c4a4213f55d9..e88d07e66ab3 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb @@ -97,6 +97,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_response.rb b/lib/datadog_api_client/v2/models/spans_aggregate_response.rb index 50d2e12c1283..a86d8a8de453 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb b/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb index b6139e475ced..ec23c01e36c6 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb @@ -95,6 +95,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb b/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb index 71c8cf249f2f..203f73a2bb5b 100644 --- a/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_attributes.rb b/lib/datadog_api_client/v2/models/spans_attributes.rb index 0dd7b4d5269c..e0d32b8548ea 100644 --- a/lib/datadog_api_client/v2/models/spans_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_attributes.rb @@ -213,6 +213,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_compute.rb b/lib/datadog_api_client/v2/models/spans_compute.rb index 6991434c5b2e..080097c19f84 100644 --- a/lib/datadog_api_client/v2/models/spans_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_compute.rb @@ -111,6 +111,26 @@ def aggregation=(aggregation) @aggregation = aggregation end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_filter.rb b/lib/datadog_api_client/v2/models/spans_filter.rb index a2a554e6e105..1dda6e9e23c2 100644 --- a/lib/datadog_api_client/v2/models/spans_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_filter.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_filter_create.rb b/lib/datadog_api_client/v2/models/spans_filter_create.rb index 151c3ac462fa..99e3fd636f04 100644 --- a/lib/datadog_api_client/v2/models/spans_filter_create.rb +++ b/lib/datadog_api_client/v2/models/spans_filter_create.rb @@ -83,6 +83,26 @@ def query=(query) @query = query end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_group_by.rb b/lib/datadog_api_client/v2/models/spans_group_by.rb index 0f116eece558..c59d0c716ad7 100644 --- a/lib/datadog_api_client/v2/models/spans_group_by.rb +++ b/lib/datadog_api_client/v2/models/spans_group_by.rb @@ -129,6 +129,26 @@ def facet=(facet) @facet = facet end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb b/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb index 5312395703f6..b127b4ccfdc1 100644 --- a/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb @@ -126,6 +126,26 @@ def min=(min) @min = min end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_request.rb b/lib/datadog_api_client/v2/models/spans_list_request.rb index 8f0f3b890cb4..25d9835ddcbc 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb b/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb index e4e0ffa1e307..4d40785c143c 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb @@ -93,6 +93,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_request_data.rb b/lib/datadog_api_client/v2/models/spans_list_request_data.rb index d6470c658abe..3b7aeb4e4efe 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request_data.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_request_page.rb b/lib/datadog_api_client/v2/models/spans_list_request_page.rb index 0bf227c2afb9..34663d15be6d 100644 --- a/lib/datadog_api_client/v2/models/spans_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/spans_list_request_page.rb @@ -92,6 +92,26 @@ def limit=(limit) @limit = limit end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_response.rb b/lib/datadog_api_client/v2/models/spans_list_response.rb index 810dca8df657..4e1c1a095748 100644 --- a/lib/datadog_api_client/v2/models/spans_list_response.rb +++ b/lib/datadog_api_client/v2/models/spans_list_response.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_response_links.rb b/lib/datadog_api_client/v2/models/spans_list_response_links.rb index 5ca72f6f41dd..43d910386f7c 100644 --- a/lib/datadog_api_client/v2/models/spans_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/spans_list_response_links.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb b/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb index 8a4cc2835315..c799a21bc0ea 100644 --- a/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb @@ -104,6 +104,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_compute.rb b/lib/datadog_api_client/v2/models/spans_metric_compute.rb index 618472fd2e03..c6ef1aef3d11 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_compute.rb @@ -102,6 +102,26 @@ def aggregation_type=(aggregation_type) @aggregation_type = aggregation_type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb b/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb index 2e676fa05d86..8125d129a04e 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb @@ -103,6 +103,26 @@ def compute=(compute) @compute = compute end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_create_data.rb b/lib/datadog_api_client/v2/models/spans_metric_create_data.rb index c230499442d3..5cfb6ed71155 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_create_data.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_create_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_create_request.rb b/lib/datadog_api_client/v2/models/spans_metric_create_request.rb index c5c558b89a11..241238825236 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_create_request.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_filter.rb b/lib/datadog_api_client/v2/models/spans_metric_filter.rb index 7dcb165d010d..10689fbcea6a 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_filter.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_group_by.rb b/lib/datadog_api_client/v2/models/spans_metric_group_by.rb index 1f75557adf0c..1f66e33249be 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_group_by.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_group_by.rb @@ -92,6 +92,26 @@ def path=(path) @path = path end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response.rb b/lib/datadog_api_client/v2/models/spans_metric_response.rb index 511184cb8cea..9e0017f0dc87 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb b/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb index 15be1f0aaaed..8a6f1eb2ab01 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb b/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb index a538023045fd..dae2e559e488 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb @@ -84,6 +84,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_data.rb b/lib/datadog_api_client/v2/models/spans_metric_response_data.rb index 7ba51c607947..febffe5d8fa2 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_data.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_data.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb b/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb index 06f22faed283..1b9699bfa452 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb b/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb index dd47b99a652b..cdd7f71982cf 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb b/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb index 33f6a6732d11..923b85e95558 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb @@ -85,6 +85,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb b/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb index 009ee277e901..b4e05371dd03 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_data.rb b/lib/datadog_api_client/v2/models/spans_metric_update_data.rb index aa19a7d87fa8..0ec2abbf03d3 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_data.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metric_update_request.rb b/lib/datadog_api_client/v2/models/spans_metric_update_request.rb index 82923b15b5c6..338ff5dd6402 100644 --- a/lib/datadog_api_client/v2/models/spans_metric_update_request.rb +++ b/lib/datadog_api_client/v2/models/spans_metric_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_metrics_response.rb b/lib/datadog_api_client/v2/models/spans_metrics_response.rb index 0f9904809463..07d056573e3d 100644 --- a/lib/datadog_api_client/v2/models/spans_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/spans_metrics_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_query_filter.rb b/lib/datadog_api_client/v2/models/spans_query_filter.rb index 74731b825a71..69f736b85798 100644 --- a/lib/datadog_api_client/v2/models/spans_query_filter.rb +++ b/lib/datadog_api_client/v2/models/spans_query_filter.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_query_options.rb b/lib/datadog_api_client/v2/models/spans_query_options.rb index 0c92eb4122ab..634efa14cd98 100644 --- a/lib/datadog_api_client/v2/models/spans_query_options.rb +++ b/lib/datadog_api_client/v2/models/spans_query_options.rb @@ -75,6 +75,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb b/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb index 76d40e9306c7..a0bf243e62a4 100644 --- a/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb @@ -66,6 +66,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spans_warning.rb b/lib/datadog_api_client/v2/models/spans_warning.rb index 01dc299f3f67..ebc08de2b7ad 100644 --- a/lib/datadog_api_client/v2/models/spans_warning.rb +++ b/lib/datadog_api_client/v2/models/spans_warning.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team.rb b/lib/datadog_api_client/v2/models/team.rb index 7fafe9166c93..ee4fbfd93847 100644 --- a/lib/datadog_api_client/v2/models/team.rb +++ b/lib/datadog_api_client/v2/models/team.rb @@ -132,6 +132,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_attributes.rb b/lib/datadog_api_client/v2/models/team_attributes.rb index d6df30ad25d4..df66d4cb6e2e 100644 --- a/lib/datadog_api_client/v2/models/team_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_attributes.rb @@ -249,6 +249,26 @@ def user_count=(user_count) @user_count = user_count end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_create.rb b/lib/datadog_api_client/v2/models/team_create.rb index 860d5604a38d..4850da551abe 100644 --- a/lib/datadog_api_client/v2/models/team_create.rb +++ b/lib/datadog_api_client/v2/models/team_create.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_create_attributes.rb b/lib/datadog_api_client/v2/models/team_create_attributes.rb index a432a00fbb4d..eef50aa2f117 100644 --- a/lib/datadog_api_client/v2/models/team_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_create_attributes.rb @@ -169,6 +169,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_create_relationships.rb b/lib/datadog_api_client/v2/models/team_create_relationships.rb index 5edc6eec695b..5a8fceb1ee2f 100644 --- a/lib/datadog_api_client/v2/models/team_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/team_create_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_create_request.rb b/lib/datadog_api_client/v2/models/team_create_request.rb index cba3bc06e70b..8f3f64841549 100644 --- a/lib/datadog_api_client/v2/models/team_create_request.rb +++ b/lib/datadog_api_client/v2/models/team_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link.rb b/lib/datadog_api_client/v2/models/team_link.rb index 2654c944c927..354b57ae00bd 100644 --- a/lib/datadog_api_client/v2/models/team_link.rb +++ b/lib/datadog_api_client/v2/models/team_link.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link_attributes.rb b/lib/datadog_api_client/v2/models/team_link_attributes.rb index 8aab72c600f7..54133b6163fb 100644 --- a/lib/datadog_api_client/v2/models/team_link_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_link_attributes.rb @@ -136,6 +136,26 @@ def url=(url) @url = url end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link_create.rb b/lib/datadog_api_client/v2/models/team_link_create.rb index 6a3861438c18..c78c86a985d6 100644 --- a/lib/datadog_api_client/v2/models/team_link_create.rb +++ b/lib/datadog_api_client/v2/models/team_link_create.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link_create_request.rb b/lib/datadog_api_client/v2/models/team_link_create_request.rb index e126ab9e982f..ccbb4a91e3a7 100644 --- a/lib/datadog_api_client/v2/models/team_link_create_request.rb +++ b/lib/datadog_api_client/v2/models/team_link_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_link_response.rb b/lib/datadog_api_client/v2/models/team_link_response.rb index 0d22b7421bb3..73f448f2ccfb 100644 --- a/lib/datadog_api_client/v2/models/team_link_response.rb +++ b/lib/datadog_api_client/v2/models/team_link_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_links_response.rb b/lib/datadog_api_client/v2/models/team_links_response.rb index 173f47a8af56..d28d2b3f68d3 100644 --- a/lib/datadog_api_client/v2/models/team_links_response.rb +++ b/lib/datadog_api_client/v2/models/team_links_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting.rb b/lib/datadog_api_client/v2/models/team_permission_setting.rb index 2381efd54a1c..27fa3b9568d8 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb b/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb index 60042c9001dc..59292c7d23a3 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb @@ -103,6 +103,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_response.rb b/lib/datadog_api_client/v2/models/team_permission_setting_response.rb index 0813430529a8..45a3fd7fb700 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_response.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_update.rb b/lib/datadog_api_client/v2/models/team_permission_setting_update.rb index 5f11f971b1ad..b3a4c28b5261 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_update.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_update.rb @@ -92,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb b/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb index 8f7c2117f156..3a6e0f02288f 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb b/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb index 9e258254885d..650c13465fd3 100644 --- a/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb +++ b/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_permission_settings_response.rb b/lib/datadog_api_client/v2/models/team_permission_settings_response.rb index 8fc2ab370cdd..474145882c88 100644 --- a/lib/datadog_api_client/v2/models/team_permission_settings_response.rb +++ b/lib/datadog_api_client/v2/models/team_permission_settings_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_relationships.rb b/lib/datadog_api_client/v2/models/team_relationships.rb index 69d6f2fc924f..bcd521b1916e 100644 --- a/lib/datadog_api_client/v2/models/team_relationships.rb +++ b/lib/datadog_api_client/v2/models/team_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_relationships_links.rb b/lib/datadog_api_client/v2/models/team_relationships_links.rb index 3bf58d2ef56b..a3898b6219e6 100644 --- a/lib/datadog_api_client/v2/models/team_relationships_links.rb +++ b/lib/datadog_api_client/v2/models/team_relationships_links.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_response.rb b/lib/datadog_api_client/v2/models/team_response.rb index e706754a527a..cc100360ade7 100644 --- a/lib/datadog_api_client/v2/models/team_response.rb +++ b/lib/datadog_api_client/v2/models/team_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_update.rb b/lib/datadog_api_client/v2/models/team_update.rb index 9433cd7f9432..25d56989c757 100644 --- a/lib/datadog_api_client/v2/models/team_update.rb +++ b/lib/datadog_api_client/v2/models/team_update.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_update_attributes.rb b/lib/datadog_api_client/v2/models/team_update_attributes.rb index e2ce84cd8934..ff188cc581ad 100644 --- a/lib/datadog_api_client/v2/models/team_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_update_attributes.rb @@ -193,6 +193,26 @@ def name=(name) @name = name end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_update_relationships.rb b/lib/datadog_api_client/v2/models/team_update_relationships.rb index 853e72ab7168..74c6e29fff9c 100644 --- a/lib/datadog_api_client/v2/models/team_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/team_update_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/team_update_request.rb b/lib/datadog_api_client/v2/models/team_update_request.rb index 3d26c4c9015a..5769778f2af1 100644 --- a/lib/datadog_api_client/v2/models/team_update_request.rb +++ b/lib/datadog_api_client/v2/models/team_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/teams_response.rb b/lib/datadog_api_client/v2/models/teams_response.rb index d7fa0aee529e..4637c2ac8bfd 100644 --- a/lib/datadog_api_client/v2/models/teams_response.rb +++ b/lib/datadog_api_client/v2/models/teams_response.rb @@ -96,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/teams_response_links.rb b/lib/datadog_api_client/v2/models/teams_response_links.rb index abfb341096d4..d6971279fe85 100644 --- a/lib/datadog_api_client/v2/models/teams_response_links.rb +++ b/lib/datadog_api_client/v2/models/teams_response_links.rb @@ -110,6 +110,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/teams_response_meta.rb b/lib/datadog_api_client/v2/models/teams_response_meta.rb index 7b332b25c44a..d0df35cf4663 100644 --- a/lib/datadog_api_client/v2/models/teams_response_meta.rb +++ b/lib/datadog_api_client/v2/models/teams_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb index ecc8737a1e51..d169f3dd87dd 100644 --- a/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb @@ -128,6 +128,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb b/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb index 0353d90c38c5..15f6c2d157fa 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_query_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb b/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb index 3ef283f827a4..fc593b0ea1a9 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_query_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_request.rb b/lib/datadog_api_client/v2/models/timeseries_formula_request.rb index f885559b4b6e..d2cc1099759d 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_request.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_request.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb b/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb index d3bcac05a688..e7aae8a68e2c 100644 --- a/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/timeseries_formula_request_attributes.rb @@ -148,6 +148,26 @@ def to=(to) @to = to end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_response.rb b/lib/datadog_api_client/v2/models/timeseries_response.rb index 0763fc7641f8..1608be3a93f9 100644 --- a/lib/datadog_api_client/v2/models/timeseries_response.rb +++ b/lib/datadog_api_client/v2/models/timeseries_response.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb b/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb index a2063a2c7cd6..f94629c3924e 100644 --- a/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/timeseries_response_attributes.rb @@ -89,6 +89,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/timeseries_response_series.rb b/lib/datadog_api_client/v2/models/timeseries_response_series.rb index 9aceba1bb410..2d4e27c32ff2 100644 --- a/lib/datadog_api_client/v2/models/timeseries_response_series.rb +++ b/lib/datadog_api_client/v2/models/timeseries_response_series.rb @@ -116,6 +116,26 @@ def query_index=(query_index) @query_index = query_index end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/unit.rb b/lib/datadog_api_client/v2/models/unit.rb index 565e6136ae0b..6fd70417303d 100644 --- a/lib/datadog_api_client/v2/models/unit.rb +++ b/lib/datadog_api_client/v2/models/unit.rb @@ -101,6 +101,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_open_api_response.rb b/lib/datadog_api_client/v2/models/update_open_api_response.rb index 1155c6794540..4fdbd9cf62d6 100644 --- a/lib/datadog_api_client/v2/models/update_open_api_response.rb +++ b/lib/datadog_api_client/v2/models/update_open_api_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb b/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb index ab1b9eece27b..ab4aee9e5a6a 100644 --- a/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_open_api_response_data.rb b/lib/datadog_api_client/v2/models/update_open_api_response_data.rb index cac9765cc59e..f1b577e82717 100644 --- a/lib/datadog_api_client/v2/models/update_open_api_response_data.rb +++ b/lib/datadog_api_client/v2/models/update_open_api_response_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_rule_request.rb b/lib/datadog_api_client/v2/models/update_rule_request.rb index 230a6fb34f37..3710a4709c95 100644 --- a/lib/datadog_api_client/v2/models/update_rule_request.rb +++ b/lib/datadog_api_client/v2/models/update_rule_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_rule_request_data.rb b/lib/datadog_api_client/v2/models/update_rule_request_data.rb index c790a3a081de..871c17d4b4dc 100644 --- a/lib/datadog_api_client/v2/models/update_rule_request_data.rb +++ b/lib/datadog_api_client/v2/models/update_rule_request_data.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_rule_response.rb b/lib/datadog_api_client/v2/models/update_rule_response.rb index 291ae12204d7..19d4dcaeba1c 100644 --- a/lib/datadog_api_client/v2/models/update_rule_response.rb +++ b/lib/datadog_api_client/v2/models/update_rule_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/update_rule_response_data.rb b/lib/datadog_api_client/v2/models/update_rule_response_data.rb index 9549bc69bae9..bac908be502d 100644 --- a/lib/datadog_api_client/v2/models/update_rule_response_data.rb +++ b/lib/datadog_api_client/v2/models/update_rule_response_data.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb b/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb index 01d7c2bf6b56..a590953f4b4e 100644 --- a/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb +++ b/lib/datadog_api_client/v2/models/usage_application_security_monitoring_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_attributes_object.rb b/lib/datadog_api_client/v2/models/usage_attributes_object.rb index d6639e7b8c33..ffd8644c4e96 100644 --- a/lib/datadog_api_client/v2/models/usage_attributes_object.rb +++ b/lib/datadog_api_client/v2/models/usage_attributes_object.rb @@ -112,6 +112,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_data_object.rb b/lib/datadog_api_client/v2/models/usage_data_object.rb index 979f6eefd336..0aab723fc922 100644 --- a/lib/datadog_api_client/v2/models/usage_data_object.rb +++ b/lib/datadog_api_client/v2/models/usage_data_object.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb b/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb index 84bda383cff6..84960bdb2747 100644 --- a/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb +++ b/lib/datadog_api_client/v2/models/usage_lambda_traced_invocations_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb b/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb index 2efe9ec08597..260323100be3 100644 --- a/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb +++ b/lib/datadog_api_client/v2/models/usage_observability_pipelines_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/usage_time_series_object.rb b/lib/datadog_api_client/v2/models/usage_time_series_object.rb index f2bad8bda47d..7f123cf073de 100644 --- a/lib/datadog_api_client/v2/models/usage_time_series_object.rb +++ b/lib/datadog_api_client/v2/models/usage_time_series_object.rb @@ -82,6 +82,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 648d42d0f790..57cf97829f91 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index ca8e4ba649ce..91d8aa455c80 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -173,6 +173,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_create_attributes.rb b/lib/datadog_api_client/v2/models/user_create_attributes.rb index e726b7422ba2..cafc4cfd157f 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -101,6 +101,26 @@ def email=(email) @email = email end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_create_data.rb b/lib/datadog_api_client/v2/models/user_create_data.rb index c04d233b2acf..1405f7caaf47 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_create_request.rb b/lib/datadog_api_client/v2/models/user_create_request.rb index 984161b0789f..29507599b0c3 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_data.rb b/lib/datadog_api_client/v2/models/user_invitation_data.rb index 758eb2d9f26f..27859d19db8e 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb b/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb index 5c98659e82d8..b87669c46036 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb index f862440429fc..26af6f9c6f59 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -83,6 +83,26 @@ def user=(user) @user = user end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_response.rb b/lib/datadog_api_client/v2/models/user_invitation_response.rb index e82ff014ee12..7fef94878fcf 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitation_response_data.rb b/lib/datadog_api_client/v2/models/user_invitation_response_data.rb index a86a7b23fad6..c50ed06b362c 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response_data.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitations_request.rb b/lib/datadog_api_client/v2/models/user_invitations_request.rb index 89e63bc2ce45..f755d91d5bc0 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_invitations_response.rb b/lib/datadog_api_client/v2/models/user_invitations_response.rb index 6184f06fa72a..47c1cceb2f2b 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -67,6 +67,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_relationship_data.rb b/lib/datadog_api_client/v2/models/user_relationship_data.rb index 9c91bcf60a3e..5b12437600f8 100644 --- a/lib/datadog_api_client/v2/models/user_relationship_data.rb +++ b/lib/datadog_api_client/v2/models/user_relationship_data.rb @@ -103,6 +103,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index 472f6605f69d..2950c9e65bb0 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index 2eed391830e1..1b78dd68ad6b 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_response_relationships.rb b/lib/datadog_api_client/v2/models/user_response_relationships.rb index b253157fb08e..d8f4e91f6eda 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -92,6 +92,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team.rb b/lib/datadog_api_client/v2/models/user_team.rb index a271799a56d7..962bfe24746f 100644 --- a/lib/datadog_api_client/v2/models/user_team.rb +++ b/lib/datadog_api_client/v2/models/user_team.rb @@ -121,6 +121,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_attributes.rb b/lib/datadog_api_client/v2/models/user_team_attributes.rb index 03d67d0cf5bf..a7ffec1bd835 100644 --- a/lib/datadog_api_client/v2/models/user_team_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_team_attributes.rb @@ -94,6 +94,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_create.rb b/lib/datadog_api_client/v2/models/user_team_create.rb index 60a76d158776..2fe95f61e066 100644 --- a/lib/datadog_api_client/v2/models/user_team_create.rb +++ b/lib/datadog_api_client/v2/models/user_team_create.rb @@ -101,6 +101,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_permission.rb b/lib/datadog_api_client/v2/models/user_team_permission.rb index e8afd073d96d..7660fce9739c 100644 --- a/lib/datadog_api_client/v2/models/user_team_permission.rb +++ b/lib/datadog_api_client/v2/models/user_team_permission.rb @@ -112,6 +112,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb b/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb index fd805976dc5f..968d897bdce5 100644 --- a/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_relationships.rb b/lib/datadog_api_client/v2/models/user_team_relationships.rb index df824d011047..a525edfdff45 100644 --- a/lib/datadog_api_client/v2/models/user_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_team_relationships.rb @@ -74,6 +74,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_request.rb b/lib/datadog_api_client/v2/models/user_team_request.rb index 563957da01aa..e8e512616fcc 100644 --- a/lib/datadog_api_client/v2/models/user_team_request.rb +++ b/lib/datadog_api_client/v2/models/user_team_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_response.rb b/lib/datadog_api_client/v2/models/user_team_response.rb index 811e9fa8a696..21e33e7053f9 100644 --- a/lib/datadog_api_client/v2/models/user_team_response.rb +++ b/lib/datadog_api_client/v2/models/user_team_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_update.rb b/lib/datadog_api_client/v2/models/user_team_update.rb index 66fd739cc463..bfdff8f07829 100644 --- a/lib/datadog_api_client/v2/models/user_team_update.rb +++ b/lib/datadog_api_client/v2/models/user_team_update.rb @@ -92,6 +92,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_team_update_request.rb b/lib/datadog_api_client/v2/models/user_team_update_request.rb index ac48aa7c779a..f13ccb41ad42 100644 --- a/lib/datadog_api_client/v2/models/user_team_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_team_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_teams_response.rb b/lib/datadog_api_client/v2/models/user_teams_response.rb index 705b226bc4f5..2e0d377121cc 100644 --- a/lib/datadog_api_client/v2/models/user_teams_response.rb +++ b/lib/datadog_api_client/v2/models/user_teams_response.rb @@ -96,6 +96,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_update_attributes.rb b/lib/datadog_api_client/v2/models/user_update_attributes.rb index 5702b940caf0..b1680102e00a 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -83,6 +83,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_update_data.rb b/lib/datadog_api_client/v2/models/user_update_data.rb index 8ea1d1f0a2c1..44dd7992737d 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -123,6 +123,26 @@ def type=(type) @type = type end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/user_update_request.rb b/lib/datadog_api_client/v2/models/user_update_request.rb index 82bb3cf5b74a..3041665e48b7 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -83,6 +83,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/users_relationship.rb b/lib/datadog_api_client/v2/models/users_relationship.rb index 293447b57fb5..cadff8079b12 100644 --- a/lib/datadog_api_client/v2/models/users_relationship.rb +++ b/lib/datadog_api_client/v2/models/users_relationship.rb @@ -85,6 +85,26 @@ def data=(data) @data = data end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index 06f6dbaadc1a..8f07c4f366e4 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -87,6 +87,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb index 7cfb369bd43f..6f4f75633a5e 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb index a8c6d9671352..208a8b2ddd96 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb index 8a0073a18a5b..6754c213474a 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb b/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb index 74d71425f37c..2fc0ffdb64de 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb b/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb index baba41d8f676..90c62aa8e9c0 100644 --- a/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb +++ b/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb b/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb index da52912152e6..068f01c6d868 100644 --- a/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb +++ b/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb @@ -76,6 +76,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb index 15d00c3cc5e2..c87b95937492 100644 --- a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb +++ b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb index 1b8261e7b3e5..e8c8407c75ad 100644 --- a/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb index 8d6f1d23f9b7..bc20541c8452 100644 --- a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb +++ b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb index 5f6588ecd8ee..c659bc1418bc 100644 --- a/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb +++ b/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb b/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb index deb6f5ded287..03fca32146da 100644 --- a/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb +++ b/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb index a7f0a78f7f35..81006e7e2814 100644 --- a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb +++ b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb index eb4abdd09170..512e22305e25 100644 --- a/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb @@ -65,6 +65,26 @@ def initialize(attributes = {}) end end + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private From 39f6d7ae73958eb9a21e260fbb67b30da3ef8ed0 Mon Sep 17 00:00:00 2001 From: Anika Maskara Date: Tue, 20 Aug 2024 10:29:46 -0400 Subject: [PATCH 08/11] Revert "raise error when additionalProperties is false and refactor to_hash" This reverts commit f353eca4ca80bdb874231279012c7935df5d1a33. --- .generator/src/generator/templates/model_base.j2 | 7 ++----- .generator/src/generator/templates/model_generic.j2 | 10 +++++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.generator/src/generator/templates/model_base.j2 b/.generator/src/generator/templates/model_base.j2 index 8e834b639b6d..e7734b55be2e 100644 --- a/.generator/src/generator/templates/model_base.j2 +++ b/.generator/src/generator/templates/model_base.j2 @@ -48,7 +48,7 @@ module {{ module_name }}::{{ version|upper }} return nil unless attributes.is_a?(Hash) unless self.respond_to?(:additional_properties) unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } - raise SchemaMismatchError, "Additional properties are not allowed" + return nil end end self.class.openapi_types.each_pair do |key, type| @@ -150,7 +150,7 @@ module {{ module_name }}::{{ version|upper }} to_hash end - # Returns the object in the form of hash, with additionalProperties support. + # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash # @!visibility private def to_hash @@ -164,9 +164,6 @@ module {{ module_name }}::{{ version|upper }} hash[param] = _to_hash(value) end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end hash end diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 023c6d256c1f..5782c91dd63a 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -241,9 +241,10 @@ end {%- endif %} {%- endfor %} -{%- if additionalProperties is false %} - # Returns the object in the form of hash without additionalProperties support - # @return [Hash] Returns the object in the form of hash +{%- if additionalProperties is not false %} + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash # @!visibility private def to_hash hash = {} @@ -256,6 +257,9 @@ hash[param] = _to_hash(value) end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end hash end {%- endif %} From f99086f3e0574e9fd043aa9be6cfaa8d1b57dbb9 Mon Sep 17 00:00:00 2001 From: Anika Maskara Date: Tue, 20 Aug 2024 10:30:40 -0400 Subject: [PATCH 09/11] revert to_hash change --- lib/datadog_api_client/v1/model_base.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/datadog_api_client/v1/model_base.rb b/lib/datadog_api_client/v1/model_base.rb index fda1f3037344..54436f7f508c 100644 --- a/lib/datadog_api_client/v1/model_base.rb +++ b/lib/datadog_api_client/v1/model_base.rb @@ -35,7 +35,7 @@ def build_from_hash(value) end def self.included(base) - base.extend(ClassMethods) + base.extend(ClassMethods) end end @@ -59,7 +59,7 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) unless self.respond_to?(:additional_properties) unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } - return nil + raise SchemaMismatchError, "Additional properties are not allowed" end end self.class.openapi_types.each_pair do |key, type| @@ -102,7 +102,7 @@ def _deserialize(type, value) return nil if value == nil case type.to_sym when :Time - Time.parse(value) + Time.parse(value) when :Date Date.parse(value) when :String @@ -180,7 +180,7 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param value [Object] Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash # @!visibility private def _to_hash(value) @@ -221,7 +221,7 @@ def openapi_nullable end def self.included(base) - base.extend(ClassMethods) + base.extend(ClassMethods) end end @@ -230,7 +230,6 @@ module BaseOneOfModel end module BaseOneOfModelNoDiscriminator - private SchemaMismatchError = Class.new(StandardError) From e13cedb988cfbd897d7f4db9961765795664e682 Mon Sep 17 00:00:00 2001 From: Anika Maskara Date: Tue, 20 Aug 2024 10:33:49 -0400 Subject: [PATCH 10/11] raise error --- .generator/src/generator/templates/model_base.j2 | 2 +- lib/datadog_api_client/v1/model_base.rb | 9 +++++---- lib/datadog_api_client/v2/model_base.rb | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.generator/src/generator/templates/model_base.j2 b/.generator/src/generator/templates/model_base.j2 index e7734b55be2e..f3c59487988c 100644 --- a/.generator/src/generator/templates/model_base.j2 +++ b/.generator/src/generator/templates/model_base.j2 @@ -48,7 +48,7 @@ module {{ module_name }}::{{ version|upper }} return nil unless attributes.is_a?(Hash) unless self.respond_to?(:additional_properties) unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } - return nil + raise SchemaMismatchError, "Additional properties are not allowed" end end self.class.openapi_types.each_pair do |key, type| diff --git a/lib/datadog_api_client/v1/model_base.rb b/lib/datadog_api_client/v1/model_base.rb index 54436f7f508c..203568f08509 100644 --- a/lib/datadog_api_client/v1/model_base.rb +++ b/lib/datadog_api_client/v1/model_base.rb @@ -35,7 +35,7 @@ def build_from_hash(value) end def self.included(base) - base.extend(ClassMethods) + base.extend(ClassMethods) end end @@ -102,7 +102,7 @@ def _deserialize(type, value) return nil if value == nil case type.to_sym when :Time - Time.parse(value) + Time.parse(value) when :Date Date.parse(value) when :String @@ -180,7 +180,7 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param value [Object] Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash # @!visibility private def _to_hash(value) @@ -221,7 +221,7 @@ def openapi_nullable end def self.included(base) - base.extend(ClassMethods) + base.extend(ClassMethods) end end @@ -230,6 +230,7 @@ module BaseOneOfModel end module BaseOneOfModelNoDiscriminator + private SchemaMismatchError = Class.new(StandardError) diff --git a/lib/datadog_api_client/v2/model_base.rb b/lib/datadog_api_client/v2/model_base.rb index 35a96e04229a..7bdfde0c6bcd 100644 --- a/lib/datadog_api_client/v2/model_base.rb +++ b/lib/datadog_api_client/v2/model_base.rb @@ -59,7 +59,7 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) unless self.respond_to?(:additional_properties) unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) } - return nil + raise SchemaMismatchError, "Additional properties are not allowed" end end self.class.openapi_types.each_pair do |key, type| From c66540159e97962a36e371be1a6849423d629750 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 20 Aug 2024 15:11:07 +0000 Subject: [PATCH 11/11] pre-commit fixes --- .../opsgenie_service_response_attributes.rb | 18 ----------------- .../opsgenie_service_update_attributes.rb | 20 +------------------ 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb index 9bae76a415d4..95e2184cd6c2 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb @@ -91,24 +91,6 @@ def initialize(attributes = {}) end end - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - # @!visibility private - def valid? - return false if !@name.nil? && @name.to_s.length > 100 - true - end - - # Custom attribute writer method with validation - # @param name [Object] Object to be assigned - # @!visibility private - def name=(name) - if !name.nil? && name.to_s.length > 100 - fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.' - end - @name = name - end - # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private diff --git a/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb b/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb index 17c1b696c2c5..053af4f1ac82 100644 --- a/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb @@ -100,24 +100,6 @@ def initialize(attributes = {}) end end - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - # @!visibility private - def valid? - return false if !@name.nil? && @name.to_s.length > 100 - true - end - - # Custom attribute writer method with validation - # @param name [Object] Object to be assigned - # @!visibility private - def name=(name) - if !name.nil? && name.to_s.length > 100 - fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.' - end - @name = name - end - # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private @@ -137,7 +119,7 @@ def to_hash end hash end - + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private